ubuntu下maven报仓库问题

ubuntu下maven:Could not transfer artifact org.springframework.boot:spring-boot-starter-parent:pom:2.1.17.RELEASE from/to aliyunmaven (https://maven.aliyun.com/repository/public): /opt/rep/org/springframework/boot/spring-boot-starter-parent/2.1.17.RELEASE/spring-boot-starter-parent-2.1.17.RELEASE.pom.part.lock (没有那个文件或目录)
报错:
修改仓库文件所用权用户我这里为/opt/repository
sudo chown 用户名 /opt/repository/ -R

新版阿里云仓库镜像为https:

aliyunmaven
*
阿里云公共仓库
https://maven.aliyun.com/repository/public

若下载不成功:
ubuntu下maven报仓库问题

在Vm options 添加:
-Dmaven.wagon.http.ssl.insecure=true -Dmaven.wagon.http.ssl.allowall=true

修改完成执行mvn install即可。