1. 程式人生 > >eclipse匯入maven專案,pom檔案報錯解決辦法

eclipse匯入maven專案,pom檔案報錯解決辦法

Project build error: Non-resolvable parent POM for com.example:demo:0.0.1-SNAPSHOT: Failure to transfer org.springframework.boot:spring-boot-starter-parent:pom:2.0.0.M5 fromhttps://repo.spring.io/snapshot was cached inthelocal repository, resolution will not be reattempted untilthe update interval of

spring-snapshots has elapsed or updates are forced. Original error: Could not transfer artifact org.springframework.boot:spring-boot-starter-parent:pom:2.0.0.M5 from/to spring-snapshots (https://repo.spring.io/snapshot): connect timed out and'parent.relativePath' points at no local POM pom.xml /demo
line14 Maven pom Loading Problem

父節點報錯,註解報錯

解決辦法:update專案,選中專案,alt+F5,勾選Force Update of Snapshots/Releases,執行更新,下載jar包等,下載完後項目就不糊報錯了

轉載連結:http://blog.csdn.net/daihuimaozideren/article/details/78393555?locationNum=10&fps=1?>