在最近 进行学习jenkins 部署项目的时候出现问题
Parsing POMs 22:24:20 ERROR: Failed to parse POMs 22:24:20 org.apache.maven.project.ProjectBuildingException: Some problems were encountered while processing the POMs: 22:24:20 [FATAL] Non-resolvable parent POM for com.cy:generation:1.0.1-SNAPSHOT: Failure to transfer org.springframework.boot:spring-boot-starter-parent:pom:1.5.9.RELEASE from http://XXX.XXX.XXX:XXXX/repository/maven-public/ was cached in the local repository, resolution will not be reattempted until the update interval of aliyun-nexus has elapsed or updates are forced. Original error: Could not transfer artifact org.springframework.boot:spring-boot-starter-parent:pom:1.5.9.RELEASE from/to aliyun-nexus (http://XXX.XXX.XXX:XXXX/repository/maven-public/): Connect to 47.104.216.153:9998 [/47.104.216.153] failed: Connection refused (Connection refused) and 'parent.relativePath' points at no local POM @ line 14, column 10
部署项目是在 本地 正常编译运行的, 但是在jenkins 中 一直无法编译。
解决方法
找到 jenkins 默认的工作空间
mvn clean
mvn install
解决方法参考了(https://blog.youkuaiyun.com/gm371200587/article/details/87913797)