org.apache.maven.lifecycle.LifecycleExecutionException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • The package action fails when file name are too long. Note: the file creating the error can be created by hand. (echo yes > d:\Home\LDauvilaire\src\Repository\SVN\JHub\modules\display-webapp\modules\hub-internal\..\..\..\..\target\dev\3.0.20\hub-webapp-internal\hub-webapp-internal-3.0.20\fceditor\editor\dialog\fck_spellerpages\spellerpages\server-scripts\spellchecker.cfm) See stack trace below: [INFO] [war:war] [INFO] Exploding webapp... [INFO] Copy webapp resources to d:\Home\LDauvilaire\src\Repository\SVN\JHub\modules\display-webapp\modules\hub-internal\..\..\..\..\target\dev\3.0.20\hub-webapp-internal\hub-webapp-internal-3.0.20 [INFO] ------------------------------------------------------------------------ [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] Error assembling WAR Embedded error: Could not explode webapp... d:\Home\LDauvilaire\src\Repository\SVN\JHub\modules\display-webapp\modules\hub-internal\..\..\..\..\target\dev\3.0.20\hub-webapp-internal\hub-webapp-internal-3.0.20\fceditor\editor\dialog\fck_spellerpages\spellerpages\server-scripts\spellchecker.cfm (The filename, directory name, or volume label syntax is incorrect) [INFO] ------------------------------------------------------------------------ [INFO] Trace org.apache.maven.lifecycle.LifecycleExecutionException: Error assembling WAR at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:559) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:475) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:454) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:306) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:273) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:140) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115) at org.apache.maven.cli.MavenCli.main(MavenCli.java:256) 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 org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430) at org.codehaus.classworlds.Launcher.main(Launcher.java:375) Caused by: org.apache.maven.plugin.MojoExecutionException: Error assembling WAR at org.apache.maven.plugin.war.WarMojo.execute(WarMojo.java:91) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:412) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:534) ... 16 more Caused by: org.apache.maven.plugin.MojoExecutionException: Could not explode webapp... at org.apache.maven.plugin.war.AbstractWarMojo.buildExplodedWebapp(AbstractWarMojo.java:202) at org.apache.maven.plugin.war.WarMojo.performPackaging(WarMojo.java:108) at org.apache.maven.plugin.war.WarMojo.execute(WarMojo.java:86) ... 18 more Caused by: java.io.FileNotFoundException: d:\Home\LDauvilaire\src\Repository\SVN\JHub\modules\display-webapp\modules\hub-internal\..\..\..\..\target\dev\3.0.20\hub-webapp-internal\hub-webapp-internal-3.0.20\fceditor\editor\dialog\fck_spellerpages\spellerpages\server-scripts\spellchecker.cfm (The filename, directory name, or volume label syntax is incorrect) at java.io.FileOutputStream.open(Native Method) at java.io.FileOutputStream.<init>(FileOutputStream.java:179) at java.io.FileOutputStream.<init>(FileOutputStream.java:131) at org.codehaus.plexus.util.FileUtils.copyFile(FileUtils.java:821) at org.apache.maven.plugin.war.AbstractWarMojo.copyResources(AbstractWarMojo.java:230) at org.apache.maven.plugin.war.AbstractWarMojo.buildExplodedWebapp(AbstractWarMojo.java:196) ... 20 more
    via by Laurent Dauvilaire,
  • Web project doesn&#39;t apply the changes
    via Stack Overflow by Tiago Neto
    ,
  • We've got a Crucible plugin that comes with a bunch of dependencies that are bundled by the atlassian plugin packager. Unfortunately, "mvn package" fails complaining it cannot copy a LICENSE file to target/classes: org.apache.maven.lifecycle.LifecycleExecutionException: Error copying file 'license/LICENSE' to '/Users/ervzijst/Documents/workspace/jackrabbit-scm-plugin/target/classes/license/LICENSE' at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:583) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:499) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:478) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:330) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:291) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:142) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129) at org.apache.maven.cli.MavenCli.main(MavenCli.java:287) 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 org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430) at org.codehaus.classworlds.Launcher.main(Launcher.java:375) Caused by: org.apache.maven.plugin.MojoExecutionException: Error copying file 'license/LICENSE' to '/Users/ervzijst/Documents/workspace/jackrabbit-scm-plugin/target/classes/license/LICENSE' at com.atlassian.maven.plugins.pdk.BundleJarsMojo.copyDependencyContents(BundleJarsMojo.java:388) at com.atlassian.maven.plugins.pdk.BundleJarsMojo.bundleDependencies(BundleJarsMojo.java:203) at com.atlassian.maven.plugins.pdk.BundleJarsMojo.execute(BundleJarsMojo.java:100) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:451) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:558) ... 16 more Caused by: java.io.FileNotFoundException: /Users/ervzijst/Documents/workspace/jackrabbit-scm-plugin/target/classes/license/LICENSE (Not a directory) at java.io.FileOutputStream.open(Native Method) at java.io.FileOutputStream.<init>(FileOutputStream.java:179) at java.io.FileOutputStream.<init>(FileOutputStream.java:131) at org.codehaus.plexus.util.FileUtils.copyFile(FileUtils.java:797) at com.atlassian.maven.plugins.pdk.BundleJarsMojo.copyFileIfModified(BundleJarsMojo.java:267) at com.atlassian.maven.plugins.pdk.BundleJarsMojo.copyDependencyContents(BundleJarsMojo.java:384) ... 20 more After closer inspection, this seems to be caused by the fact that some of the dependency jars have a file named "license" in the root, while others have a directory "license/" in the root. What seems to happen is that during packaging, atlassian plugins first expands a jar file that comes with a file "license" (which ends up in target/classes) and then proceeds to expand a jar that contains "license/license.txt". This directory cannot be written over the existing file and maven dies. After I ran a script that removes every license file and directory from every jar file in ~/m2/**/*jar (not recommended unless you have some time to kill ;) ) it worked. I guess plugins should not all be expanded in the same directory, but instead be copied into a lib/ dir in the target jar. P.S. Our pom files contain: <parent> <groupId>com.atlassian.crucible.plugin.base</groupId> <artifactId>crucible-plugin-base</artifactId> <version>1-SNAPSHOT</version> </parent>
    via by Erik van Zijst,
  • TeamCity is leaking caches/git file descriptors
    via by Unknown author,
  • Marker Issues
    via GitHub by TheSeize
    ,
    • org.apache.maven.lifecycle.LifecycleExecutionException: Error assembling WAR at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:559) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:475) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:454) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:306) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:273) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:140) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115) at org.apache.maven.cli.MavenCli.main(MavenCli.java:256) 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 org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430) at org.codehaus.classworlds.Launcher.main(Launcher.java:375) Caused by: org.apache.maven.plugin.MojoExecutionException: Error assembling WAR at org.apache.maven.plugin.war.WarMojo.execute(WarMojo.java:91) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:412) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:534) ... 16 more Caused by: org.apache.maven.plugin.MojoExecutionException: Could not explode webapp... at org.apache.maven.plugin.war.AbstractWarMojo.buildExplodedWebapp(AbstractWarMojo.java:202) at org.apache.maven.plugin.war.WarMojo.performPackaging(WarMojo.java:108) at org.apache.maven.plugin.war.WarMojo.execute(WarMojo.java:86) ... 18 more Caused by: java.io.FileNotFoundException: d:\Home\LDauvilaire\src\Repository\SVN\JHub\modules\display-webapp\modules\hub-internal\..\..\..\..\target\dev\3.0.20\hub-webapp-internal\hub-webapp-internal-3.0.20\fceditor\editor\dialog\fck_spellerpages\spellerpages\server-scripts\spellchecker.cfm (The filename, directory name, or volume label syntax is incorrect) at java.io.FileOutputStream.open(Native Method) at java.io.FileOutputStream.<init>(FileOutputStream.java:179) at java.io.FileOutputStream.<init>(FileOutputStream.java:131) at org.codehaus.plexus.util.FileUtils.copyFile(FileUtils.java:821) at org.apache.maven.plugin.war.AbstractWarMojo.copyResources(AbstractWarMojo.java:230) at org.apache.maven.plugin.war.AbstractWarMojo.buildExplodedWebapp(AbstractWarMojo.java:196) ... 20 more

    Users with the same issue

    filipebatistafilipebatista
    4 times, last one,
    MattyMatty
    1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    AxeloAxelo
    2 times, last one,
    rprp
    1 times, last one,
    150 more bugmates