在筆者將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 對文件的權限是每次配置環境的時候需要考慮進去的事情。