-
Bug
-
Resolution: Unresolved
-
Major
-
None
-
Jenkins 2.172
Pipeline Utility Steps 2.3.0
The readMavenPom step (ReadMavenPomStep) fails when a project POM contains new POM attributes introduced in Maven 3.6.0 or 3.6.1.
For instance, my project is making use of 'child.site.url.inherit.append.path' introduced in Maven 3.6.1. The build fails with the following error:
13:28:51 org.codehaus.plexus.util.xml.pull.XmlPullParserException: Unknown attribute 'child.site.url.inherit.append.path' for tag 'site' (position: START_TAG seen ...sitory>\r\n <site child.site.url.inherit.append.path="false">... @61:58) 13:28:51 at org.apache.maven.model.io.xpp3.MavenXpp3Reader.checkUnknownAttribute(MavenXpp3Reader.java:161) 13:28:51 at org.apache.maven.model.io.xpp3.MavenXpp3Reader.parseSite(MavenXpp3Reader.java:3798) 13:28:51 at org.apache.maven.model.io.xpp3.MavenXpp3Reader.parseDistributionManagement(MavenXpp3Reader.java:1663) 13:28:51 at org.apache.maven.model.io.xpp3.MavenXpp3Reader.parseModel(MavenXpp3Reader.java:2212) 13:28:51 at org.apache.maven.model.io.xpp3.MavenXpp3Reader.read(MavenXpp3Reader.java:3852) 13:28:51 at org.apache.maven.model.io.xpp3.MavenXpp3Reader.read(MavenXpp3Reader.java:595) 13:28:51 at org.apache.maven.model.io.xpp3.MavenXpp3Reader.read(MavenXpp3Reader.java:609) 13:28:51 at org.apache.maven.model.io.xpp3.MavenXpp3Reader.read(MavenXpp3Reader.java:638) 13:28:51 at org.jenkinsci.plugins.pipeline.utility.steps.maven.ReadMavenPomStep$Execution.run(ReadMavenPomStep.java:151) 13:28:51 at org.jenkinsci.plugins.pipeline.utility.steps.maven.ReadMavenPomStep$Execution.run(ReadMavenPomStep.java:124) 13:28:51 at org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution.lambda$start$0(SynchronousNonBlockingStepExecution.java:47) 13:28:51 at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) 13:28:51 at java.util.concurrent.FutureTask.run(FutureTask.java:266) 13:28:51 at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) 13:28:51 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) 13:28:51 at java.lang.Thread.run(Thread.java:748) 13:28:51 Finished: FAILURE