springboot 報錯

Could not transfer artifact org.springframework.boot:spring-boot-starter-parent:pom:2.0.3.RELEASE

connect timed out and 'parent.relativePath' points at no local POM

倆個步驟解決

1、設置maven-settings.xml  中的鏡像爲阿里鏡像,默認的好像無法下載

            <mirror>
<id>alimaven</id>
<name>aliyun maven</name>
<url>http://maven.aliyun.com/nexus/content/groups/public/</url>
<mirrorOf>central</mirrorOf>

</mirror>

2、注意切換公司內網,這是個坑,最後直接用手機熱點解決的

3、eclipse操作:

    run as -->  mvn compile


    mvn --> update project

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章