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)

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • maven-plugin
    • None
    • 1.393-SNAPSHOT

      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)
      

          [JENKINS-8445] Parsing poms fails if a module is a path to a pom (and not to a directory)

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

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

          Olivier Lamy added a comment -

          issue only for maven2 builds

          Olivier Lamy added a comment - issue only for maven2 builds

          Olivier Lamy added a comment -

          close for 1.394

          Olivier Lamy added a comment - close for 1.394

          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

          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

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

              Created:
              Updated:
              Resolved: