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

Maven assembly plugin fails

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      When I try to use maven assembly 2.2 with maven 3.0.2 it fails with exception:

      [HUDSON] Recording test results
      [INFO] 
      [INFO] --- maven-jar-plugin:2.3.1:jar (default-jar) @ batch-service-activation ---
      [INFO] Building jar: /data/hudson/jobs/batch-svc-act-prod/workspace/target/batch-service-activation-2.0-SNAPSHOT.jar
      projectSucceeded sk.datalan.t-mobile.camib:batch-service-activation:2.0-SNAPSHOT
      [HUDSON] Archiving /data/hudson/jobs/batch-svc-act-prod/workspace/pom.xml to /data/hudson/jobs/batch-svc-act-prod/modules/sk.datalan.t-mobile.camib$batch-service-activation/builds/2011-02-21_13-31-32/archive/sk.datalan.t-mobile.camib/batch-service-activation/2.0-SNAPSHOT/pom.xml
      [HUDSON] Archiving /data/hudson/jobs/batch-svc-act-prod/workspace/target/batch-service-activation-2.0-SNAPSHOT.jar to /data/hudson/jobs/batch-svc-act-prod/modules/sk.datalan.t-mobile.camib$batch-service-activation/builds/2011-02-21_13-31-32/archive/sk.datalan.t-mobile.camib/batch-service-activation/2.0-SNAPSHOT/batch-service-activation-2.0-SNAPSHOT.jar
      [HUDSON] Collecting dependencies info
      [INFO]                                                                         
      [INFO] ------------------------------------------------------------------------
      [INFO] Building Extranet :: Batch Service Activation 2.0-SNAPSHOT
      [INFO] ------------------------------------------------------------------------
      mojo forkStarted org.apache.maven.plugins:maven-assembly-plugin:2.2(default-cli)
      projectFailed sk.datalan.t-mobile.camib:batch-service-activation:2.0-SNAPSHOT
      sessionEnded
      [INFO] ------------------------------------------------------------------------
      [INFO] BUILD FAILURE
      [INFO] ------------------------------------------------------------------------
      [INFO] Total time: 21.925s
      [INFO] Finished at: Mon Feb 21 13:32:29 CET 2011
      [INFO] Final Memory: 13M/84M
      [INFO] ------------------------------------------------------------------------
      mavenExecutionResult exceptions not empty
      org.apache.maven.InternalErrorException: Internal error: java.lang.NullPointerException
      	at org.apache.maven.lifecycle.internal.BuilderCommon.handleBuildError(BuilderCommon.java:128)
      	at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:95)
      	at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
      	at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
      	at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
      	at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:319)
      	at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
      	at org.jvnet.hudson.maven3.launcher.Maven3Launcher.main(Maven3Launcher.java:79)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      	at java.lang.reflect.Method.invoke(Method.java:597)
      	at org.codehaus.plexus.classworlds.launcher.Launcher.launchStandard(Launcher.java:329)
      	at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:239)
      	at org.jvnet.hudson.maven3.agent.Maven3Main.launch(Maven3Main.java:145)
      	at hudson.maven.Maven3Builder.call(Maven3Builder.java:124)
      	at hudson.maven.Maven3Builder.call(Maven3Builder.java:71)
      	at hudson.remoting.UserRequest.perform(UserRequest.java:114)
      	at hudson.remoting.UserRequest.perform(UserRequest.java:48)
      	at hudson.remoting.Request$2.run(Request.java:270)
      	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
      	at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
      	at java.util.concurrent.FutureTask.run(FutureTask.java:138)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
      	at java.lang.Thread.run(Thread.java:619)
      Caused by: java.lang.NullPointerException
      	at hudson.maven.MojoInfo.intercept(MojoInfo.java:208)
      	at hudson.maven.reporters.MavenArtifactArchiver.preExecute(MavenArtifactArchiver.java:79)
      	at hudson.maven.Maven3Builder$MavenExecutionListener.reccordMojoStarted(Maven3Builder.java:513)
      	at hudson.maven.Maven3Builder$MavenExecutionListener.forkStarted(Maven3Builder.java:649)
      	at org.apache.maven.lifecycle.internal.DefaultExecutionEventCatapult.fire(DefaultExecutionEventCatapult.java:94)
      	at org.apache.maven.lifecycle.internal.DefaultExecutionEventCatapult.fire(DefaultExecutionEventCatapult.java:42)
      	at org.apache.maven.lifecycle.internal.MojoExecutor.executeForkedExecutions(MojoExecutor.java:328)
      	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:199)
      	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
      	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
      	at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
      	... 24 more
      
      

        Attachments

          Issue Links

            Activity

            Hide
            davija James Davis added a comment -

            I just installed the latest jenkins version that was released 9/11 and this bug still exists. If I have the maven assembly plugin using the assembly goal, it will break the build for hudson. However the maven (using 3.0.3) build works just fine outside of hudson.

            I understand that assembly:assembly is deprecated, however they broke functionality in assembly:single so we still need to use the deprecated version until they fix their bug.

            Show
            davija James Davis added a comment - I just installed the latest jenkins version that was released 9/11 and this bug still exists. If I have the maven assembly plugin using the assembly goal, it will break the build for hudson. However the maven (using 3.0.3) build works just fine outside of hudson. I understand that assembly:assembly is deprecated, however they broke functionality in assembly:single so we still need to use the deprecated version until they fix their bug.
            Hide
            yadavjpr Kailash Yadav added a comment -

            any update on when this will get fixed?

            Show
            yadavjpr Kailash Yadav added a comment - any update on when this will get fixed?
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Kohsuke Kawaguchi
            Path:
            changelog.html
            maven-plugin/src/main/java/hudson/maven/Maven3Builder.java
            maven-plugin/src/main/java/hudson/maven/MojoInfo.java
            http://jenkins-ci.org/commit/jenkins/4f3a285ab41a306520b1a1fe7ec50ca2c0821841
            Log:
            [FIXED JENKINS-8837] set a dummy mojo object in Maven3, and documented
            that this feature is now deprecated.

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Kohsuke Kawaguchi Path: changelog.html maven-plugin/src/main/java/hudson/maven/Maven3Builder.java maven-plugin/src/main/java/hudson/maven/MojoInfo.java http://jenkins-ci.org/commit/jenkins/4f3a285ab41a306520b1a1fe7ec50ca2c0821841 Log: [FIXED JENKINS-8837] set a dummy mojo object in Maven3, and documented that this feature is now deprecated.
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Kohsuke Kawaguchi
            Path:
            maven-plugin/src/main/java/hudson/maven/Maven3Builder.java
            maven-plugin/src/main/java/hudson/maven/MojoInfo.java
            http://jenkins-ci.org/commit/jenkins/48576a9163066aa84e541ca7be03c554902aeb6f
            Log:
            [FIXED JENKINS-8837] set a dummy mojo object in Maven3, and documented that this feature is now deprecated.

            Cherry-picked-from: 4f3a285ab41a306520b1a1fe7ec50ca2c0821841

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Kohsuke Kawaguchi Path: maven-plugin/src/main/java/hudson/maven/Maven3Builder.java maven-plugin/src/main/java/hudson/maven/MojoInfo.java http://jenkins-ci.org/commit/jenkins/48576a9163066aa84e541ca7be03c554902aeb6f Log: [FIXED JENKINS-8837] set a dummy mojo object in Maven3, and documented that this feature is now deprecated. Cherry-picked-from: 4f3a285ab41a306520b1a1fe7ec50ca2c0821841
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Kohsuke Kawaguchi
            Path:
            src/main/java/hudson/maven/Maven3Builder.java
            src/main/java/hudson/maven/MojoInfo.java
            http://jenkins-ci.org/commit/maven-plugin/76d7f9978ebd9198e5f7e8f5704819d23383bad7
            Log:
            [FIXED JENKINS-8837] set a dummy mojo object in Maven3, and documented
            that this feature is now deprecated.

            Originally-Committed-As: 4f3a285ab41a306520b1a1fe7ec50ca2c0821841

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Kohsuke Kawaguchi Path: src/main/java/hudson/maven/Maven3Builder.java src/main/java/hudson/maven/MojoInfo.java http://jenkins-ci.org/commit/maven-plugin/76d7f9978ebd9198e5f7e8f5704819d23383bad7 Log: [FIXED JENKINS-8837] set a dummy mojo object in Maven3, and documented that this feature is now deprecated. Originally-Committed-As: 4f3a285ab41a306520b1a1fe7ec50ca2c0821841

              People

              • Assignee:
                olamy Olivier Lamy
                Reporter:
                hlavki hlavki
              • Votes:
                5 Vote for this issue
                Watchers:
                8 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: