org.apache.maven.lifecycle.LifecycleExecutionException: Error assembling WAR

Jenkins JIRA | kgeis | 9 years ago
  1. 0

    This is the same as issue #503. I was not able to re-open that one. I'm getting it in 1.132. [INFO] ------------------------------------------------------------------------ [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] Error assembling WAR Embedded error: The attribute "Hudson-Build-Number" may not occur more than once in the same section [INFO] ------------------------------------------------------------------------ [INFO] Trace org.apache.maven.lifecycle.LifecycleExecutionException: Error assembling WAR at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:564) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:480) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:459) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:311) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:278) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:143) at org.apache.maven.lifecycle.LifecycleExecutorInterceptor.execute(LifecycleExecutorInterceptor.java:35) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:334) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125) at org.apache.maven.cli.MavenCli.main(MavenCli.java:280) 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:585) at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) at hudson.maven.agent.Main.launch(Main.java:97) at hudson.maven.MavenBuild$Builder.call(MavenBuild.java:175) at hudson.maven.MavenBuild$Builder.call(MavenBuild.java:143) at hudson.remoting.UserRequest.perform(UserRequest.java:69) at hudson.remoting.UserRequest.perform(UserRequest.java:23) at hudson.remoting.Request$2.run(Request.java:178) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675) at java.lang.Thread.run(Thread.java:595) Caused by: org.apache.maven.plugin.MojoExecutionException: Error assembling WAR at org.apache.maven.plugin.war.WarMojo.execute(WarMojo.java:135) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:443) at hudson.maven.agent.PluginManagerInterceptor.executeMojo(PluginManagerInterceptor.java:132) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:539) ... 24 more Caused by: org.codehaus.plexus.archiver.jar.ManifestException: The attribute "Hudson-Build-Number" may not occur more than once in the same section at org.codehaus.plexus.archiver.jar.Manifest$Section.addAttributeAndCheck(Manifest.java:727) at org.codehaus.plexus.archiver.jar.Manifest$Section.addConfiguredAttribute(Manifest.java:658) at org.codehaus.plexus.archiver.jar.Manifest.addConfiguredAttribute(Manifest.java:1000) at org.apache.maven.archiver.MavenArchiver.createArchive(MavenArchiver.java:354) at org.apache.maven.plugin.war.WarMojo.performPackaging(WarMojo.java:177) at org.apache.maven.plugin.war.WarMojo.execute(WarMojo.java:127) ... 27 more

    Jenkins JIRA | 9 years ago | kgeis
    org.apache.maven.lifecycle.LifecycleExecutionException: Error assembling WAR

    Root Cause Analysis

    1. org.codehaus.plexus.archiver.jar.ManifestException

      The attribute "Hudson-Build-Number" may not occur more than once in the same section

      at org.codehaus.plexus.archiver.jar.Manifest$Section.addAttributeAndCheck()
    2. Plexus Archiver Component
      Manifest.addConfiguredAttribute
      1. org.codehaus.plexus.archiver.jar.Manifest$Section.addAttributeAndCheck(Manifest.java:727)
      2. org.codehaus.plexus.archiver.jar.Manifest$Section.addConfiguredAttribute(Manifest.java:658)
      3. org.codehaus.plexus.archiver.jar.Manifest.addConfiguredAttribute(Manifest.java:1000)
      3 frames
    3. Apache Maven Archiver
      MavenArchiver.createArchive
      1. org.apache.maven.archiver.MavenArchiver.createArchive(MavenArchiver.java:354)
      1 frame
    4. org.apache.maven
      WarMojo.execute
      1. org.apache.maven.plugin.war.WarMojo.performPackaging(WarMojo.java:177)
      2. org.apache.maven.plugin.war.WarMojo.execute(WarMojo.java:127)
      2 frames
    5. Maven Plugin
      DefaultPluginManager.executeMojo
      1. org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:443)
      1 frame
    6. Hudson M2
      PluginManagerInterceptor.executeMojo
      1. hudson.maven.agent.PluginManagerInterceptor.executeMojo(PluginManagerInterceptor.java:132)
      1 frame
    7. Maven Core
      DefaultMaven.execute
      1. org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:539)
      2. org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:480)
      3. org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:459)
      4. org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:311)
      5. org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:278)
      6. org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:143)
      7. org.apache.maven.lifecycle.LifecycleExecutorInterceptor.execute(LifecycleExecutorInterceptor.java:35)
      8. org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:334)
      9. org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125)
      9 frames
    8. M3 Interceptor
      MavenCli.main
      1. org.apache.maven.cli.MavenCli.main(MavenCli.java:280)
      1 frame
    9. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      4. java.lang.reflect.Method.invoke(Method.java:585)
      4 frames
    10. Plexus
      Launcher.launch
      1. org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
      2. org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
      2 frames
    11. Hudson M2
      Main.launch
      1. hudson.maven.agent.Main.launch(Main.java:97)
      1 frame
    12. Hudson Maven Embedder
      MavenBuild$Builder.call
      1. hudson.maven.MavenBuild$Builder.call(MavenBuild.java:175)
      2. hudson.maven.MavenBuild$Builder.call(MavenBuild.java:143)
      2 frames
    13. Hudson :: Remoting Layer
      Request$2.run
      1. hudson.remoting.UserRequest.perform(UserRequest.java:69)
      2. hudson.remoting.UserRequest.perform(UserRequest.java:23)
      3. hudson.remoting.Request$2.run(Request.java:178)
      3 frames
    14. Java RT
      Thread.run
      1. java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
      2. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
      3. java.lang.Thread.run(Thread.java:595)
      3 frames