ERROR: Failed to parse POMs解决方法
最近在做jenkins构建项目发布时遇到这个问题,ERROR: Failed to parse POMsjava.io.IOException: Can't read POM: /opt/gamma/.jenkins/jobs/indra-parent/workspace/pom.xmlat jenkins.plugins.maveninfo.extractor.properties....
·
最近在做jenkins构建项目发布时遇到这个问题,
ERROR: Failed to parse POMs
java.io.IOException: Can't read POM: /opt/gamma/.jenkins/jobs/indra-parent/workspace/pom.xml
at jenkins.plugins.maveninfo.extractor.properties.PomPropertiesFinder.findProperties(PomPropertiesFinder.java:54)
at jenkins.plugins.maveninfo.extractor.MavenInfoExtractor.extract(MavenInfoExtractor.java:58)
at jenkins.plugins.maveninfo.extractor.MavenInfoEnvironment.tearDown(MavenInfoEnvironment.java:42)
at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.doRun(MavenModuleSetBuild.java:882)
at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:534)
at hudson.model.Run.execute(Run.java:1720)
at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:531)
at hudson.model.ResourceController.execute(ResourceController.java:98)
at hudson.model.Executor.run(Executor.java:410)
maven实际上已经构建成功了,最后发现是pom.xml头问题
The error was caused by a corrupt XML header which contained merge conflicts.
将头修改为下面 之后就正常了
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
更多推荐
已为社区贡献1条内容
所有评论(0)