解决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 对文件的权限是每次配置环境的时候需要考虑进去的事情。

posted @ 2021-04-03 16:59  徐春晖  阅读(1714)  评论(0编辑  收藏  举报