Details

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

      Description

      Hudson 1.393-SNAPSHOT (perhaps 1.392 ?)
      Parsing a Maven 2 project fails with :

      ERROR: Processing failed due to a bug in the code. Please report this to hudson-users@googlegroups.com
      java.lang.NullPointerException
      	at hudson.maven.MavenModuleSetBuild$PomParser.toPomInfo(MavenModuleSetBuild.java:1121)
      	at hudson.maven.MavenModuleSetBuild$PomParser.toPomInfo(MavenModuleSetBuild.java:1140)
      	at hudson.maven.MavenModuleSetBuild$PomParser.toPomInfo(MavenModuleSetBuild.java:1140)
      	at hudson.maven.MavenModuleSetBuild$PomParser.invoke(MavenModuleSetBuild.java:1107)
      	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)
      project=hudson.maven.MavenModuleSet@9c4289[jcr-1.10.x-ci]
      project.getModules()=[hudson.maven.MavenModule@12d294f[jcr-1.10.x-ci/exo-jcr:exo-jcr.applications.openofficeplugin], hudson.maven.MavenModule@139008b[jcr-1.10.x-ci/org.exoplatform.jcr:exo.jcr.applications.browser], hudson.maven.MavenModule@152a64d[jcr-1.10.x-ci/org.exoplatform.jcr:exo.jcr.applications.config], hudson.maven.MavenModule@1242cc9[jcr-1.10.x-ci/org.exoplatform.jcr:exo.jcr.applications.console], hudson.maven.MavenModule@1f85b60[jcr-1.10.x-ci/org.exoplatform.jcr:exo.jcr.applications.fckeditor], hudson.maven.MavenModule@3729c5[jcr-1.10.x-ci/org.exoplatform.jcr:exo.jcr.applications.jboss], hudson.maven.MavenModule@1976572[jcr-1.10.x-ci/org.exoplatform.jcr:exo.jcr.applications.jboss-ear], hudson.maven.MavenModule@855379[jcr-1.10.x-ci/org.exoplatform.jcr:exo.jcr.applications.jonas], hudson.maven.MavenModule@12b48e5[jcr-1.10.x-ci/org.exoplatform.jcr:exo.jcr.applications.openofficeplugin], hudson.maven.MavenModule@bee95a[jcr-1.10.x-ci/org.exoplatform.jcr:exo.jcr.applications.repoload], hudson.maven.MavenModule@1ca4868[jcr-1.10.x-ci/org.exoplatform.jcr:exo.jcr.applications.rest], hudson.maven.MavenModule@157e563[jcr-1.10.x-ci/org.exoplatform.jcr:exo.jcr.applications.rmi-client], hudson.maven.MavenModule@194e3fe[jcr-1.10.x-ci/org.exoplatform.jcr:exo.jcr.applications.rmi-server], hudson.maven.MavenModule@4563a[jcr-1.10.x-ci/org.exoplatform.jcr:exo.jcr.applications.webdav], hudson.maven.MavenModule@b92a0e[jcr-1.10.x-ci/org.exoplatform.jcr:exo.jcr.benchmark], hudson.maven.MavenModule@7835ec[jcr-1.10.x-ci/org.exoplatform.jcr:exo.jcr.component.aws], hudson.maven.MavenModule@1c38fe[jcr-1.10.x-ci/org.exoplatform.jcr:exo.jcr.component.core], hudson.maven.MavenModule@e1cfa7[jcr-1.10.x-ci/org.exoplatform.jcr:exo.jcr.component.ext], hudson.maven.MavenModule@10811b5[jcr-1.10.x-ci/org.exoplatform.jcr:exo.jcr.component.ftp], hudson.maven.MavenModule@c2bd13[jcr-1.10.x-ci/org.exoplatform.jcr:exo.jcr.component.rmi], hudson.maven.MavenModule@10b3611[jcr-1.10.x-ci/org.exoplatform.jcr:exo.jcr.component.webdav], hudson.maven.MavenModule@10abc94[jcr-1.10.x-ci/org.exoplatform.jcr:exo.jcr.connectors.ejb21], hudson.maven.MavenModule@1e2c00f[jcr-1.10.x-ci/org.exoplatform.jcr:exo.jcr.connectors.ejb21.bean], hudson.maven.MavenModule@1af5853[jcr-1.10.x-ci/org.exoplatform.jcr:exo.jcr.connectors.ejb21.client], hudson.maven.MavenModule@cfe446[jcr-1.10.x-ci/org.exoplatform.jcr:exo.jcr.connectors.ejb21.config], hudson.maven.MavenModule@93b63c[jcr-1.10.x-ci/org.exoplatform.jcr:exo.jcr.connectors.ejb30], hudson.maven.MavenModule@1a12fe6[jcr-1.10.x-ci/org.exoplatform.jcr:exo.jcr.connectors.ejb30.bean], hudson.maven.MavenModule@14fd510[jcr-1.10.x-ci/org.exoplatform.jcr:exo.jcr.connectors.ejb30.client], hudson.maven.MavenModule@2d0e1c[jcr-1.10.x-ci/org.exoplatform.jcr:exo.jcr.connectors.ejb30.config], hudson.maven.MavenModule@1f960c4[jcr-1.10.x-ci/org.exoplatform.jcr:exo.jcr.connectors.localadapter], hudson.maven.MavenModule@1401c44[jcr-1.10.x-ci/org.exoplatform.jcr:exo.jcr.connectors.rmiadapter], hudson.maven.MavenModule@1ffbc2e[jcr-1.10.x-ci/org.exoplatform.jcr:exo.jcr.ear], hudson.maven.MavenModule@9b8dc1[jcr-1.10.x-ci/org.exoplatform.jcr:exo.jcr.framework.command], hudson.maven.MavenModule@779d17[jcr-1.10.x-ci/org.exoplatform.jcr:exo.jcr.framework.ftpclient], hudson.maven.MavenModule@ea7211[jcr-1.10.x-ci/org.exoplatform.jcr:exo.jcr.framework.web], hudson.maven.MavenModule@1e6f1f4[jcr-1.10.x-ci/org.exoplatform.jcr:exo.jcr.packaging], hudson.maven.MavenModule@116d461[jcr-1.10.x-ci/org.exoplatform.jcr:exo.jcrapplications.jonas-ear], hudson.maven.MavenModule@1d13c39[jcr-1.10.x-ci/org.exoplatform.jcr:exo.jcrapplications.tomcat5], hudson.maven.MavenModule@1c8cc59[jcr-1.10.x-ci/org.exoplatform.jcr:exo.jcrapplications.tomcat6], hudson.maven.MavenModule@1dfee20[jcr-1.10.x-ci/org.exoplatform.jcr:jcr-parent], hudson.maven.MavenModule@8ab562[jcr-1.10.x-ci/org.exoplatform.jcr:jcr.packaging.module]]
      project.getRootModule()=hudson.maven.MavenModule@1dfee20[jcr-1.10.x-ci/org.exoplatform.jcr:jcr-parent]
      FATAL: null
      java.lang.NullPointerException
      	at hudson.maven.MavenModuleSetBuild$PomParser.toPomInfo(MavenModuleSetBuild.java:1121)
      	at hudson.maven.MavenModuleSetBuild$PomParser.toPomInfo(MavenModuleSetBuild.java:1140)
      	at hudson.maven.MavenModuleSetBuild$PomParser.toPomInfo(MavenModuleSetBuild.java:1140)
      	at hudson.maven.MavenModuleSetBuild$PomParser.invoke(MavenModuleSetBuild.java:1107)
      	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 build : http://ci.exoplatform.org/job/jcr-1.10.x-ci/2565/console
      The project : http://svn.exoplatform.org/projects/jcr/branches/1.10.x/
      You'll probably need this repo to DL releases and SNAPSHOTS : http://repository.exoplatform.org/public/

        Issue Links

          Activity

          Hide
          aheritier Arnaud Héritier added a comment -

          Patch to fix the issue (Don't forget to index by POM path and not by basedir )

          Show
          aheritier Arnaud Héritier added a comment - Patch to fix the issue (Don't forget to index by POM path and not by basedir )
          Hide
          aheritier Arnaud Héritier added a comment -
          Show
          aheritier Arnaud Héritier added a comment - Pull request : https://github.com/hudson/hudson/pull/9
          Hide
          olamy olamy added a comment -

          pull request done.
          Thanks !

          Show
          olamy olamy added a comment - pull request done. Thanks !
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in hudson
          User: Arnaud Héritier
          Path:
          maven-plugin/src/main/java/hudson/maven/MavenModuleSetBuild.java
          http://hudson-labs.org/commit/core/555a44f17c9a5dde47c36a6e6ee0c3057dd95f8c
          Log:
          JENKINS-8391 : Modules have to be indexed by POM path and not by basedir to be compatible with Maven

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in hudson User: Arnaud Héritier Path: maven-plugin/src/main/java/hudson/maven/MavenModuleSetBuild.java http://hudson-labs.org/commit/core/555a44f17c9a5dde47c36a6e6ee0c3057dd95f8c Log: JENKINS-8391 : Modules have to be indexed by POM path and not by basedir to be compatible with Maven
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in hudson
          User: Olivier Lamy
          Path:
          changelog.html
          http://hudson-labs.org/commit/core/67ab54db963dc66a08bd56cc500509da7ea5816a
          Log:
          update changelog for JENKINS-8391

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in hudson User: Olivier Lamy Path: changelog.html http://hudson-labs.org/commit/core/67ab54db963dc66a08bd56cc500509da7ea5816a Log: update changelog for JENKINS-8391

            People

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

              Dates

              • Created:
                Updated:
                Resolved: