新的jenkins服务器,自己配的maven,地址都是对的,就是在下载依赖的时候,报没有文件夹,如下

Parsing POMs
Failed to transfer Could not transfer artifact com.pig4cloud:pigx-cloud-dependencies-parent:pom:Hoxton.SR3 from/to alimaven (https://maven.aliyun.com/repository/central): /usr/local/apache-maven-3.8.1/ck/com/pig4cloud/pigx-cloud-dependencies-parent/Hoxton.SR3/pigx-cloud-dependencies-parent-Hoxton.SR3.pom.part.lock (No such file or directory)
Failed to transfer Could not transfer artifact org.springframework.boot:spring-boot-dependencies:pom:2.2.6.RELEASE from/to aliyun (http://maven.aliyun.com/nexus/content/groups/public): /usr/local/apache-maven-3.8.1/ck/org/springframework/boot/spring-boot-dependencies/2.2.6.RELEASE/spring-boot-dependencies-2.2.6.RELEASE.pom.part.lock (No such file or directory)

在这里插入图片描述

这边问题为,下载依赖到我本地仓库的时候,jenkins没有权限访问maven仓库的文件夹。

我将仓库(/usr/local/apache-maven-3.8.1/ck)文件夹,使用chmod指令修改为所有权限即可。

chmod 777 ck
Logo

权威|前沿|技术|干货|国内首个API全生命周期开发者社区

更多推荐