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

ArrayIndexOutOfBoundsException when parsing large pom files with M2Eclipse metadata

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open (View Workflow)
    • Priority: Minor
    • Resolution: Unresolved
    • Component/s: maven-plugin
    • Labels:
      None
    • Environment:
      Maven Integration Plugin 3.1.2
      Maven Installation set to version 3.5.2 or newer
    • Similar Issues:

      Description

      Creating a maven module job, with a goal of verify, and this pom file ( https://github.com/codehaus-plexus/plexus-utils/files/796580/pom.xml.txt ), results in:

      ERROR: Processing failed due to a bug in the code. Please report this to the issue tracker (https://jenkins.io/redirect/report-an-issue).
      java.lang.ArrayIndexOutOfBoundsException: 8222
      	at org.codehaus.plexus.util.xml.pull.MXParser.parsePI(MXParser.java:2502)
      	at org.codehaus.plexus.util.xml.pull.MXParser.nextImpl(MXParser.java:1283)
      	at org.codehaus.plexus.util.xml.pull.MXParser.next(MXParser.java:1131)
      	at org.codehaus.plexus.util.xml.pull.MXParser.nextTag(MXParser.java:1116)
      	at org.apache.maven.model.io.xpp3.MavenXpp3ReaderEx.parsePluginExecution(MavenXpp3ReaderEx.java:3541)
      	at org.apache.maven.model.io.xpp3.MavenXpp3ReaderEx.parsePlugin(MavenXpp3ReaderEx.java:3336)
      	at org.apache.maven.model.io.xpp3.MavenXpp3ReaderEx.parseBuildBase(MavenXpp3ReaderEx.java:1398)
      	at org.apache.maven.model.io.xpp3.MavenXpp3ReaderEx.parseProfile(MavenXpp3ReaderEx.java:3751)
      	at org.apache.maven.model.io.xpp3.MavenXpp3ReaderEx.parseModel(MavenXpp3ReaderEx.java:2809)
      	at org.apache.maven.model.io.xpp3.MavenXpp3ReaderEx.read(MavenXpp3ReaderEx.java:4627)
      	at org.apache.maven.model.io.xpp3.MavenXpp3ReaderEx.read(MavenXpp3ReaderEx.java:837)
      	at org.apache.maven.model.io.DefaultModelReader.read(DefaultModelReader.java:118)
      	at org.apache.maven.model.io.DefaultModelReader.read(DefaultModelReader.java:91)
      	at org.apache.maven.model.building.DefaultModelProcessor.read(DefaultModelProcessor.java:77)
      	at org.apache.maven.model.building.DefaultModelBuilder.readModel(DefaultModelBuilder.java:453)
      	at org.apache.maven.model.building.DefaultModelBuilder.build(DefaultModelBuilder.java:256)
      	at org.apache.maven.project.DefaultProjectBuilder.build(DefaultProjectBuilder.java:411)
      	at org.apache.maven.project.DefaultProjectBuilder.build(DefaultProjectBuilder.java:380)
      	at org.apache.maven.project.DefaultProjectBuilder.build(DefaultProjectBuilder.java:344)
      	at hudson.maven.MavenEmbedder.buildProjects(MavenEmbedder.java:361)
      	at hudson.maven.MavenEmbedder.readProjects(MavenEmbedder.java:331)
      	at hudson.maven.MavenModuleSetBuild$PomParser.invoke(MavenModuleSetBuild.java:1328)
      	at hudson.maven.MavenModuleSetBuild$PomParser.invoke(MavenModuleSetBuild.java:1125)
      	at hudson.FilePath.act(FilePath.java:1076)
      	at hudson.FilePath.act(FilePath.java:1059)
      	at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.parsePoms(MavenModuleSetBuild.java:986)
      	at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.doRun(MavenModuleSetBuild.java:691)
      	at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:504)
      	at hudson.model.Run.execute(Run.java:1815)
      	at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:543)
      	at hudson.model.ResourceController.execute(ResourceController.java:97)
      	at hudson.model.Executor.run(Executor.java:429)
      

      Creating, instead, a freestyle project with an invoke top-level maven target, and otherwise exactly the same parameters, succeeds as expected.

      This looks like https://github.com/codehaus-plexus/plexus-utils/issues/22 - which suggests that the maven integration plugin isn't using the specified maven installation, but is instead using some specific out-of-date version of plexus-utils.

        Attachments

          Activity

          There are no comments yet on this issue.

            People

            • Assignee:
              Unassigned
              Reporter:
              jchatham jchatham
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: