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

Makes Maven errors more readable

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Duplicate
    • Icon: Blocker Blocker
    • maven-plugin
    • None
    • 1.407

      When a parsing error occurs in Jenkins (but I think it is the same when this is the maven build which fails - to be verified) the error reported by Jenkins is less readable (and incomplete) compared to the original one done by Maven.
      For exemple for a wrong inheritance in Maven I have :

      [ERROR] The build could not read 3 projects -> [Help 1]
      [ERROR]   
      [ERROR]   The project org.exoplatform.XXXX:email-sender:1.0-Alpha11-SNAPSHOT (/Users/arnaud/Code/eXo/XXXX-trunk.svn/dev-resources/email-sender/pom.xml) has 1 error
      [ERROR]     Non-resolvable parent POM: Could not find artifact org.exoplatform.XXXX:XXXX-parent:pom:1.0-Alpha11-SNAPSHOT in exo-fr-mirror (http://repository.exoplatform.org/public) and 'parent.relativePath' points at wrong local POM @ line 4, column 12 -> [Help 2]
      [ERROR]   
      [ERROR]   The project org.exoplatform.XXXX:configuration-editor:1.0-Alpha11-SNAPSHOT (/Users/arnaud/Code/eXo/XXXX-trunk.svn/dev-resources/configuration-editor/pom.xml) has 1 error
      [ERROR]     Non-resolvable parent POM: Failure to find org.exoplatform.XXXX:XXXX-parent:pom:1.0-Alpha11-SNAPSHOT in http://repository.exoplatform.org/public was cached in the local repository, resolution will not be reattempted until the update interval of exo-fr-mirror has elapsed or updates are forced and 'parent.relativePath' points at wrong local POM @ line 3, column 12 -> [Help 2]
      [ERROR]   
      [ERROR]   The project org.exoplatform.XXXX:jcr-configuration-helper:1.0-Alpha11-SNAPSHOT (/Users/arnaud/Code/eXo/XXXX-trunk.svn/dev-resources/jcr-configuration-helper/pom.xml) has 1 error
      [ERROR]     Non-resolvable parent POM: Failure to find org.exoplatform.XXXX:XXXX-parent:pom:1.0-Alpha11-SNAPSHOT in http://repository.exoplatform.org/public was cached in the local repository, resolution will not be reattempted until the update interval of exo-fr-mirror has elapsed or updates are forced and 'parent.relativePath' points at wrong local POM @ line 5, column 12 -> [Help 2]
      [ERROR] 
      [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
      [ERROR] Re-run Maven using the -X switch to enable full debug logging.
      [ERROR] 
      [ERROR] For more information about the errors and possible solutions, please read the following articles:
      [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException
      [ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/UnresolvableModelException
      
      

      In Jenkins I have

      ERROR: Ignore Problem expanding maven opts macros org.jenkinsci.plugins.tokenmacro.TokenMacro
      Found mavenVersion 3.0.3 from file jar:file:/home/swfhudson/data/tools/maven-3.0.x/apache-maven-3.0.3/lib/maven-core-3.0.3.jar!/META-INF/maven/org.apache.maven/maven-core/pom.properties
      No emails were triggered.
      Parsing POMs
      failed to transfer Unable to locate resource in repository
      failed to transfer Unable to locate resource in repository
      failed to transfer Unable to locate resource in repository
      failed to transfer Unable to locate resource in repository
      failed to transfer Unable to locate resource in repository
      failed to transfer Unable to locate resource in repository
      failed to transfer Unable to locate resource in repository
      failed to transfer Unable to locate resource in repository
      ERROR: Failed to parse POMs
      org.apache.maven.project.ProjectBuildingException: Some problems were encountered while processing the POMs:
      [FATAL] Non-resolvable parent POM: Could not find artifact org.exoplatform.XXXX:XXXX-parent:pom:1.0-Alpha11-SNAPSHOT in exo.private (http://repository.exoplatform.org/private) and 'parent.relativePath' points at wrong local POM @ line 4, column 12
      [FATAL] Non-resolvable parent POM: Could not find artifact org.exoplatform.XXXX:XXXX-parent:pom:1.0-Alpha11-SNAPSHOT in exo.private (http://repository.exoplatform.org/private) and 'parent.relativePath' points at wrong local POM @ line 3, column 12
      [FATAL] Non-resolvable parent POM: Could not find artifact org.exoplatform.XXXX:XXXX-parent:pom:1.0-Alpha11-SNAPSHOT in exo.private (http://repository.exoplatform.org/private) and 'parent.relativePath' points at wrong local POM @ line 5, column 12
      
      	at org.apache.maven.project.DefaultProjectBuilder.build(DefaultProjectBuilder.java:339)
      	at hudson.maven.MavenEmbedder.buildProjects(MavenEmbedder.java:360)
      	at hudson.maven.MavenEmbedder.readProjects(MavenEmbedder.java:330)
      	at hudson.maven.MavenModuleSetBuild$PomParser.invoke(MavenModuleSetBuild.java:1277)
      	at hudson.maven.MavenModuleSetBuild$PomParser.invoke(MavenModuleSetBuild.java:1110)
      	at hudson.FilePath.act(FilePath.java:757)
      	at hudson.FilePath.act(FilePath.java:739)
      	at hudson.maven.MavenModuleSetBuild$RunnerImpl.parsePoms(MavenModuleSetBuild.java:817)
      	at hudson.maven.MavenModuleSetBuild$RunnerImpl.doRun(MavenModuleSetBuild.java:617)
      	at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:423)
      	at hudson.model.Run.run(Run.java:1362)
      	at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:467)
      	at hudson.model.ResourceController.execute(ResourceController.java:88)
      	at hudson.model.Executor.run(Executor.java:145)
      Email was triggered for: Failure
      Email was triggered for: Still Failing
      Trigger Failure was overridden by another trigger and will not send an email.
      Sending email for trigger: Still Failing
      ERROR: Ignore Problem expanding maven opts macros org.jenkinsci.plugins.tokenmacro.TokenMacro
      

      It really deserves the maven integration.

            Unassigned Unassigned
            aheritier Arnaud Héritier
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: