本文主要是介绍Jenkins Build报错:[ERROR] Some problems were encountered while processing the POMs,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
环境如下
CentOS Linux release 7.5.1804
Jenkins 2.249.1
Maven 3.3.9
Java version: 1.8.0
错误日志如下
[ERROR] [ERROR] Some problems were encountered while processing the POMs:
[FATAL] Non-parseable POM /usr/local/maven/apache-maven-3.3.9/repository/com/fasterxml/jackson/jackson-bom/2.11.4/jackson-bom-2.11.4.pom: unexpected markup <!d (position: START_DOCUMENT seen \n<!d... @2:4) @ /usr/local/maven/apache-maven-3.3.9/repository/com/fasterxml/jackson/jackson-bom/2.11.4/jackson-bom-2.11.4.pom, line 2, column 4@
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]
[ERROR] The project {projectName}:1.0-SNAPSHOT (/var/lib/jenkins/workspace/{projectName}/pom.xml) has 1 error
[ERROR] Non-parseable POM /usr/local/maven/apache-maven-3.3.9/repository/com/fasterxml/jackson/jackson-bom/2.11.4/jackson-bom-2.11.4.pom: unexpected markup <!d (position: START_DOCUMENT seen \n<!d... @2:4) @ /usr/local/maven/apache-maven-3.3.9/repository/com/fasterxml/jackson/jackson-bom/2.11.4/jackson-bom-2.11.4.pom, line 2, column 4 -> [Help 2]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException
[ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/ModelParseException
Build step 'Invoke top-level Maven targets' marked build as failure
Finished: FAILURE
错误日志截图版:
原因:
根据日志,去查看该pom文件,发现pom文件是html文件,尝试删除该文件,重新拉取,依然这样。
解决方案:
因为有很多依赖都报这样的错,所以删除Centos上面的所有的依赖,本地Windows电脑上拉取项目所有的依赖,再打包上传到Centos里面。
重新进行Jenkins的Build,运行成功
暂时不知道具体的原因,为啥会下载一个错误的pom文件下来。
这篇关于Jenkins Build报错:[ERROR] Some problems were encountered while processing the POMs的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!