亚洲乱码中文字幕综合,中国熟女仑乱hd,亚洲精品乱拍国产一区二区三区,一本大道卡一卡二卡三乱码全集资源,又粗又黄又硬又爽的免费视频

解決IDEA springboot"spring-boot-maven-plugin"報(bào)紅問(wèn)題

 更新時(shí)間:2021年04月16日 11:50:00   作者:碼農(nóng)波哥  
這篇文章主要介紹了解決IDEA springboot"spring-boot-maven-plugin"報(bào)紅問(wèn)題,本文給大家介紹的非常詳細(xì),對(duì)大家的學(xué)習(xí)或工作具有一定的參考借鑒價(jià)值,需要的朋友可以參考下

使用環(huán)境

項(xiàng)目環(huán)境:Idea 2020.2.3、 Maven 3.6.3 、springboot 2.1.4

本人在創(chuàng)建springboot項(xiàng)目時(shí)spring-boot-maven-plugin 及Idea右側(cè)Plugins劃紅,導(dǎo)致項(xiàng)目啟動(dòng)打包有問(wèn)題。雖然項(xiàng)目能跑,但是后續(xù)開(kāi)發(fā)中可能會(huì)出現(xiàn)不可預(yù)知的問(wèn)題。太礙眼決定把它解決掉。

可能原因:

1、maven沒(méi)有刷新;
2、Maven插件下載速度太慢,從國(guó)外的中央倉(cāng)庫(kù)下載;
3、也有可能是本地springboot版本問(wèn)題等....

分析思路:

1、到倉(cāng)庫(kù)中發(fā)現(xiàn)有這插件,然后clean install 以后reimport還是飄紅。

2、那我們找到Maven地址中的setting.xml中的mirrors標(biāo)簽添加以下內(nèi)容,maven再次下載jar包時(shí),idea中看到,從阿里云提供的地址下載,速度比中央倉(cāng)庫(kù)快

<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
                      https://maven.apache.org/xsd/settings-1.0.0.xsd">
    <localRepository>C:\Users\xxx\.m2\repository</localRepository> <!--這個(gè)地方改成自己本地路徑-->
    <interactiveMode/>
    <offline/>
    <pluginGroups/>
    <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>repo1.maven.org</id> 
            <name>Repo1 Maven of https://repo1.maven.org/maven2/</name> 
            <url>https://repo1.maven.org/maven2/</url> 
            <mirrorOf>central</mirrorOf> 
        </mirror>
        <!--
        -->
    </mirrors>
    <proxies/>
    <profiles>
        <profile>
            <id>downloadSources</id>
            <properties>
                <downloadSources>true</downloadSources>
                <downloadJavadocs>true</downloadJavadocs>          
            </properties>
        </profile>
    </profiles>
    <activeProfiles>
      <activeProfile>downloadSources</activeProfile>
    </activeProfiles>
</settings>
<mirror> 
<id>alimaven</id> 
<name>aliyun maven</name> 
<url>http://maven.aliyun.com/nexus/content/groups/public/</url> 
<mirrorOf>central</mirrorOf> 
</mirror> 

但是以上兩個(gè)方法依然沒(méi)有解決,因?yàn)轫?xiàng)目都是其它同事一直能跑起來(lái)過(guò)的,那就說(shuō)明程序肯定沒(méi)問(wèn)題。主要我之前也是跑得好好的,也就換了一下系統(tǒng),Idea版本也安裝到2020.2.3 版本而已,到此心里感覺(jué)到了崩潰的邊緣,只想說(shuō)這是為什么......

然后實(shí)在找不到問(wèn)題所在 ,最后試著改了改pom.xml文件

<version>2.2.2.RELEASE</version>

居然和版本有關(guān)系,問(wèn)題就解決了。

有的網(wǎng)友說(shuō)檢查maven倉(cāng)庫(kù)地址,將改為C:\Users\xxx\.m2\repository,默認(rèn)地址。大家也可以試試。這種問(wèn)題可能還是本地版本不太對(duì)應(yīng)導(dǎo)致,希望能幫助到大家。

也可以能有其他的問(wèn)題,這方法不一定完全適應(yīng),僅供參考

如果大家有遇到Java-springboot的問(wèn)題都可以加QQ群進(jìn)行交流:Java技術(shù)交流群:554101646

到此這篇關(guān)于解決IDEA springboot"spring-boot-maven-plugin"報(bào)紅問(wèn)題的文章就介紹到這了,更多相關(guān)"spring-boot-maven-plugin報(bào)紅內(nèi)容請(qǐng)搜索腳本之家以前的文章或繼續(xù)瀏覽下面的相關(guān)文章希望大家以后多多支持腳本之家!

相關(guān)文章

最新評(píng)論