原文:Failure to transfer org.springframework.boot:spring-boot-starter-parent:pom:2.0.1.RELEASE from https://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempt

第一次用 Spring Starter Project 創建一個Spring應用時,POM 文件報錯: Project build error: Non resolvable parent POM for com.example:demo : . . SNAPSHOT: Failure to transfer org.springframework.boot:spring boot starter ...

2018-04-14 00:39 0 9165 推薦指數:

查看詳情

https://repo.maven.apache.org/maven2 was cached in the local repository

這個錯誤是說項目的依賴由於本地倉庫的緩存沒有引進來。 解決思路:先找到本地倉庫下相關依賴的文件夾,刪除掉,再回到項目執行mvn package,依賴就可以成功引進來了。 參考:https://blog.csdn.net/zhairuiping1989/article/details ...

Sat Aug 15 07:02:00 CST 2020 0 2430
 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM