spring-boot-maven-plugin引入出現(xiàn)爆紅(已解決)
換了一臺電腦,重新進(jìn)行idea安裝配置。然后打開原來的項目結(jié)果引入spring-boot-maven-plugin出現(xiàn)爆紅,而且spring-boot-starter-parent也不能引入。
二、解決辦法1.檢查環(huán)境配置,主要是settings.xml此文件配置情況是否正確,是否加入阿里云鏡像。最好用idea工具打開檢查一下是否規(guī)范,此次我的問題就出在settings.xml報錯了(網(wǎng)上隨意復(fù)制粘貼了一個)。settings.xml配置文件以及idea工具打開查看的方式如下所示。
<?xml version='1.0' encoding='UTF-8'?><settings xmlns='http://maven.apache.org/SETTINGS/1.0.0' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd'><!-- 配置本地倉庫地址 --><!--<localRepository>E:mavenrepository</localRepository>--><!-- 配置下載Jar包的鏡像倉庫地址 --><mirrors> <mirror> <id>alimaven</id> <name>aliyun maven</name> <url>http://maven.aliyun.com/nexus/content/groups/public/</url> <mirrorOf>central</mirrorOf> </mirror> <mirror> <id>uk</id> <name>Human Readable Name for this Mirror.</name> <url>http://uk.maven.org/maven2/</url><mirrorOf>central</mirrorOf> </mirror> <mirror> <id>nexus</id> <name>internal nexus repository</name> <url>http://repo.maven.apache.org/maven2</url> <mirrorOf>central</mirrorOf> </mirror></mirrors><profiles><!-- 下載源代碼和Javadoc --><profile><id>downloadSources</id><properties><downloadSources>true</downloadSources><downloadJavadocs>true</downloadJavadocs></properties></profile></profiles><!-- 激活在profiles的配置項 --><activeProfiles><activeProfile>downloadSources</activeProfile></activeProfiles></settings>
2.檢查代碼是否出錯,加上具體版本號。
參考:https://blog.csdn.net/weixin_41988224/article/details/104388981
到此這篇關(guān)于spring-boot-maven-plugin引入出現(xiàn)爆紅(已解決)的文章就介紹到這了,更多相關(guān)spring-boot-maven-plugin爆紅內(nèi)容請搜索好吧啦網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章希望大家以后多多支持好吧啦網(wǎng)!
相關(guān)文章:
1. asp(vbs)Rs.Open和Conn.Execute的詳解和區(qū)別及&H0001的說明2. 如何通過axios發(fā)起Ajax請求(最新推薦)3. Android :okhttp+Springmvc文件解析器實現(xiàn)android向服務(wù)器上傳照片4. Vue打包部署到Nginx時,css樣式不生效的解決方式5. xml文件的結(jié)構(gòu)解讀第1/2頁6. 關(guān)于ajax異步訪問數(shù)據(jù)的問題7. 基于SpringBoot集成測試遠(yuǎn)程連接Redis服務(wù)的教程詳解8. Vue組件通信$attrs、$listeners實現(xiàn)原理解析9. HTML iframe標(biāo)簽用法案例詳解10. 前端ajax請求+后端java實現(xiàn)的下載zip壓縮包功能示例
