org.apache.maven.lifecycle.LifecycleExecutionException

Error assembling WAR

Solutions on the web1224

  • via Apache's JIRA Issue Tracker by Laurent Dauvilaire, 11 months ago
    Error assembling WAR
  • via Jenkins JIRA by kgeis, 9 months ago
    Error assembling WAR
  • via Stack Overflow by NickJ
    , 1 year ago
    Failed to execute goal org.apache.maven.plugins:maven-war-plugin:2.1.1:war (default-war) on project jpa: Error assembling WAR: resources/instructions/entrance.pdf not found.
  • Stack 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

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    You are the first who have seen this exception. Write a tip to help other users and build your expert profile.