问题:
ERROR: Failed to parse POMs
org.apache.maven.project.ProjectBuildingException: Some problems were encountered while processing the POMs:
[FATAL] Non-resolvable parent POM for com.hhy.taobao.api.order:hhy-taobao-api-order:1.0-SNAPSHOT: Could not transfer artifact org.springframework.boot:spring-boot-starter-parent:pom:2.1.0.RELEASE from/to nexus-releases (http://192.168.3.12:8081/nexus/content/groups/public): /usr/local/repository/org/springframework/boot/spring-boot-starter-parent/2.1.0.RELEASE/spring-boot-starter-parent-2.1.0.RELEASE.pom.part.lock (No such file or directory) and 'parent.relativePath' points at wrong local POM @ line 11, column 13
解决:
只要遇到这样的问题,不要多想,肯定是你配置问题(给几个方向:1、检查文件权限是否够755(chmod -R 755);2、Jenkins检查配置路径是否正确;3、构建maven时,配置路径是否正确,比如maven中seting.xml配置路径是否是容器内的/var/jenkins_home/.m2/repository路径)
注意:docker安装的jenkins的话,其他的配件路径配置,配置镜像内部配件路径。比如jdk、maven直接安装到docker容器内