Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-57002

readMavenPom step does not support latest POM attributes

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      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

       

        Attachments

          Activity

          Hide
          nico_echegut Nicolas Echegut added a comment -

          pipeline-utility-steps-plugin is using maven-model 3.5.4: https://github.com/jenkinsci/pipeline-utility-steps-plugin/blob/master/pom.xml#L90

          I built a snapshot of the plugin with maven-model 3.6.1 to fix this issue in my Jenkins instance.

          Show
          nico_echegut Nicolas Echegut added a comment - pipeline-utility-steps-plugin is using maven-model 3.5.4:  https://github.com/jenkinsci/pipeline-utility-steps-plugin/blob/master/pom.xml#L90 I built a snapshot of the plugin with maven-model 3.6.1 to fix this issue in my Jenkins instance.

            People

            Assignee:
            rsandell rsandell
            Reporter:
            nico_echegut Nicolas Echegut
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated: