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

Parsing poms fails if a module is a path to a pom (and not to a directory)

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Component/s: maven-plugin
    • Labels:
      None
    • Environment:
      1.393-SNAPSHOT

      Description

      Yes it's dirty but it is supported by M2 and M3
      Here is the error :

      [FATAL] Non-readable POM /home/swfhudson/data/jobs/jcr-1.10.x-ci/workspace/connectors/ejb/ejb21/build-ear.xml/pom.xml: /home/swfhudson/data/jobs/jcr-1.10.x-ci/workspace/connectors/ejb/ejb21/build-ear.xml/pom.xml (Not a directory) @ 
      
      	at org.apache.maven.project.DefaultProjectBuilder.build(DefaultProjectBuilder.java:325)
      	at hudson.maven.MavenEmbedder.buildProjects(MavenEmbedder.java:360)
      	at hudson.maven.MavenEmbedder.readProjects(MavenEmbedder.java:330)
      	at hudson.maven.MavenEmbedder.readProject(MavenEmbedder.java:321)
      	at hudson.maven.MavenModuleSetBuild$PomParser.readChilds(MavenModuleSetBuild.java:1184)
      	at hudson.maven.MavenModuleSetBuild$PomParser.readChilds(MavenModuleSetBuild.java:1188)
      	at hudson.maven.MavenModuleSetBuild$PomParser.invoke(MavenModuleSetBuild.java:1107)
      	at hudson.maven.MavenModuleSetBuild$PomParser.invoke(MavenModuleSetBuild.java:985)
      	at hudson.FilePath.act(FilePath.java:756)
      	at hudson.FilePath.act(FilePath.java:738)
      	at hudson.maven.MavenModuleSetBuild$RunnerImpl.parsePoms(MavenModuleSetBuild.java:691)
      	at hudson.maven.MavenModuleSetBuild$RunnerImpl.doRun(MavenModuleSetBuild.java:527)
      	at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:417)
      	at hudson.model.Run.run(Run.java:1362)
      	at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:401)
      	at hudson.model.ResourceController.execute(ResourceController.java:88)
      	at hudson.model.Executor.run(Executor.java:145)
      

        Issue Links

          Activity

          Hide
          aheritier Arnaud Héritier added a comment -

          before that there was a NPE. I fixed the issue, it worked and you introduced this new bug.

          Show
          aheritier Arnaud Héritier added a comment - before that there was a NPE. I fixed the issue, it worked and you introduced this new bug.
          Hide
          olamy olamy added a comment -

          issue only for maven2 builds

          Show
          olamy olamy added a comment - issue only for maven2 builds
          Hide
          olamy olamy added a comment -

          close for 1.394

          Show
          olamy olamy added a comment - close for 1.394
          Hide
          dogfood dogfood added a comment -

          Integrated in hudson_main_trunk #419
          JENKINS-8445 Parsing poms fails if a module is a path to a pom (and not to a directory)
          update changelog for JENKINS-8445

          Olivier Lamy :
          Files :

          • test/src/test/java/hudson/maven/MavenBuildTest.java
          • test/src/test/java/hudson/maven/Maven3BuildTest.java
          • maven-plugin/src/main/java/hudson/maven/MavenModuleSetBuild.java

          Olivier Lamy :
          Files :

          • changelog.html
          Show
          dogfood dogfood added a comment - Integrated in hudson_main_trunk #419 JENKINS-8445 Parsing poms fails if a module is a path to a pom (and not to a directory) update changelog for JENKINS-8445 Olivier Lamy : Files : test/src/test/java/hudson/maven/MavenBuildTest.java test/src/test/java/hudson/maven/Maven3BuildTest.java maven-plugin/src/main/java/hudson/maven/MavenModuleSetBuild.java Olivier Lamy : Files : changelog.html

            People

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

              Dates

              • Created:
                Updated:
                Resolved: