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

M2 POMs aren't parsed if there is a M3 control error like an invalid scope in a plugin dep.

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Component/s: maven-plugin
    • Labels:
      None
    • Environment:
      1.392
    • Similar Issues:

      Description

      ERROR: Failed to parse POMs
      org.apache.maven.project.ProjectBuildingException: Some problems were encountered while processing the POMs:
      [ERROR] 'build.plugins.plugin[org.apache.maven.plugins:maven-antrun-plugin].dependencies.dependency.scope' for org.codehaus.cargo:cargo-core-uberjar:jar must be one of [compile, runtime, system] but is 'test'. @ line 275, column 26
      
      	at org.apache.maven.project.DefaultProjectBuilder.build(DefaultProjectBuilder.java:325)
      	at hudson.maven.MavenEmbedder.readProjects(MavenEmbedder.java:342)
      	at hudson.maven.MavenModuleSetBuild$PomParser.invoke(MavenModuleSetBuild.java:1083)
      	at hudson.maven.MavenModuleSetBuild$PomParser.invoke(MavenModuleSetBuild.java:983)
      	at hudson.FilePath.act(FilePath.java:756)
      	at hudson.FilePath.act(FilePath.java:738)
      	at hudson.maven.MavenModuleSetBuild$RunnerImpl.parsePoms(MavenModuleSetBuild.java:690)
      	at hudson.maven.MavenModuleSetBuild$RunnerImpl.doRun(MavenModuleSetBuild.java:526)
      	at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:417)
      	at hudson.model.Run.run(Run.java:1362)
      	at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:400)
      	at hudson.model.ResourceController.execute(ResourceController.java:88)
      	at hudson.model.Executor.run(Executor.java:145)
      

        Attachments

          Activity

          Hide
          aheritier Arnaud Héritier added a comment -

          Testcase

          Show
          aheritier Arnaud Héritier added a comment - Testcase
          Hide
          olamy Olivier Lamy added a comment -

          fixed

          Show
          olamy Olivier Lamy added a comment - fixed
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in hudson
          User: Olivier Lamy
          Path:
          maven-plugin/src/main/java/hudson/maven/MavenEmbedderRequest.java
          maven-plugin/src/main/java/hudson/maven/MavenModuleSetBuild.java
          maven-plugin/src/main/java/hudson/maven/MavenUtil.java
          test/src/test/java/hudson/maven/Maven3BuildTest.java
          test/src/test/java/hudson/maven/MavenBuildTest.java
          test/src/test/resources/hudson/maven/test-pom-8395.xml
          http://hudson-labs.org/commit/core/312f24305acaca553500930c87d6b049c585745a
          Log:
          JENKINS-8395 M2 POMs aren't parsed if there is a M3 control error like an invalid scope in a plugin dep.
          use different validation level depending on maven version used.

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in hudson User: Olivier Lamy Path: maven-plugin/src/main/java/hudson/maven/MavenEmbedderRequest.java maven-plugin/src/main/java/hudson/maven/MavenModuleSetBuild.java maven-plugin/src/main/java/hudson/maven/MavenUtil.java test/src/test/java/hudson/maven/Maven3BuildTest.java test/src/test/java/hudson/maven/MavenBuildTest.java test/src/test/resources/hudson/maven/test-pom-8395.xml http://hudson-labs.org/commit/core/312f24305acaca553500930c87d6b049c585745a Log: JENKINS-8395 M2 POMs aren't parsed if there is a M3 control error like an invalid scope in a plugin dep. use different validation level depending on maven version used.
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in hudson
          User: Olivier Lamy
          Path:
          changelog.html
          maven-plugin/src/main/java/hudson/maven/MavenModule.java
          maven-plugin/src/main/java/hudson/maven/MavenModuleSet.java
          maven-plugin/src/main/java/hudson/maven/MavenModuleSetBuild.java
          test/src/test/java/hudson/maven/Maven3BuildTest.java
          http://hudson-labs.org/commit/core/0049d2408bc98e34f7e5cf4afc5308295902a5e6
          Log:
          update changelog for JENKINS-8395 and fix junit

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in hudson User: Olivier Lamy Path: changelog.html maven-plugin/src/main/java/hudson/maven/MavenModule.java maven-plugin/src/main/java/hudson/maven/MavenModuleSet.java maven-plugin/src/main/java/hudson/maven/MavenModuleSetBuild.java test/src/test/java/hudson/maven/Maven3BuildTest.java http://hudson-labs.org/commit/core/0049d2408bc98e34f7e5cf4afc5308295902a5e6 Log: update changelog for JENKINS-8395 and fix junit

            People

            Assignee:
            olamy Olivier Lamy
            Reporter:
            aheritier Arnaud Héritier
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: