解決MacBookPro M1下用Idea導入springboot所需的maven包錯誤:Could not transfer artifact


在筆者將maven裝好並配置好環境變量之后,在idea打開一個springboot項目,出現如下錯誤:

錯誤信息;

Could not transfer artifact org.springframework.boot:spring-boot-starter-parent:pom:1.5.14.RELEASE from/to nexus-aliyun (http://maven.aliyun.com/nexus/content/groups/public): /var/lib/maven/repo/org/springframework/boot/spring-boot-starter-parent/1.5.14.RELEASE/spring-boot-starter-parent-1.5.14.RELEASE.pom.part.lock (No such file or directory) and 'parent.relativePath' points at no local POM @ line 5, column 13

 

1. 嘗試過忽略證書驗證,參考:

   無效

2. 嘗試過更換localRepository的位置

   無效

3. 最后考慮權限問題:參考:https://blog.csdn.net/qq_33278354/article/details/103684956

   問題得到解決

mac 對文件的權限是每次配置環境的時候需要考慮進去的事情。


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM