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

POM validation errors are less detailled in Hudson than in M3

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • maven-plugin
    • None

      A project isn't building for a problem of inheritence.
      The error reported by Hudson :

      Parsing POMs
      downloaded artifact http://repository.exoplatform.org/public//org/crsh/crsh.shell/1.0.0-beta18-SNAPSHOT/maven-metadata.xml
      downloaded artifact http://repository.exoplatform.org/public//org/crsh/crsh.parent/1.0.0-beta18-SNAPSHOT/maven-metadata.xml
      ERROR: Failed to parse POMs
      org.apache.maven.project.ProjectBuildingException: Some problems were encountered while processing the POMs:
      [WARNING] 'parent.relativePath' points at org.crsh:crsh.parent instead of org.crsh:crsh.shell, please verify your project structure @ line 2, column 11
      [ERROR] 'dependencies.dependency.version' for org.crsh:crsh.cmdline:jar is missing. @ line 19, column 17
      
      	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)
      

      The error reported by Maven 3 :

      [ERROR] The build could not read 1 project -> [Help 1]
      [ERROR]   
      [ERROR]   The project org.crsh:crsh.shell.core:1.0.0-beta18-SNAPSHOT (/Users/arnaud/Code/Google/crsh-trunk.svn/shell/core/pom.xml) has 1 error
      [ERROR]     'dependencies.dependency.version' for org.crsh:crsh.cmdline:jar is missing. @ line 19, column 17
      [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
      

      Hudson output is less readable and has less informations(in Maven we have the path of the erroneous file)

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

              Created:
              Updated: