[ http://jira.codehaus.org/browse/MWAR-35?page=comments#action_64647 ]
Laurent Dauvilaire commented on MWAR-35: ---------------------------------------- addon to my previous comment: it also works with ant when replacing the '.' characters by 'x' compile-core: [echo] Compile core java sources. [javac] Compiling 40 source files to D:\Home\LDauvilaire\src\Repository\SVN\JHub\modules\display-webapp\modules\hub-internal\xx\xx\xx\xx\target\dev\3.0.20\hub-webapp-internal\webapp\WEB-INF\classes [echo] Include non java core resources on destination. [copy] Copied 1 empty directory to 1 empty directory under D:\Home\LDauvilaire\src\Repository\SVN\JHub\modules\display-webapp\modules\hub-internal\xx\xx\xx\xx\target\dev\3.0.20\hub-webapp-internal\webapp\WEB-INF\classes compile: [echo] Compile java sources. [javac] Compiling 167 source files to D:\Home\LDauvilaire\src\Repository\SVN\JHub\modules\display-webapp\modules\hub-internal\xx\xx\xx\xx\target\dev\3.0.20\hub-webapp-internal\webapp\WEB-INF\classes [echo] Include non java resources on destination. [copy] Copying 8 files to D:\Home\LDauvilaire\src\Repository\SVN\JHub\modules\display-webapp\modules\hub-internal\xx\xx\xx\xx\target\dev\3.0.20\hub-webapp-internal\webapp\WEB-INF\classes [copy] Copied 4 empty directories to 2 empty directories under D:\Home\LDauvilaire\src\Repository\SVN\JHub\modules\display-webapp\modules\hub-internal\xx\xx\xx\xx\target\dev\3.0.20\hub-webapp-internal\webapp\WEB-INF\classes dist: [jar] Building jar: D:\Home\LDauvilaire\src\Repository\SVN\JHub\modules\display-webapp\modules\hub-internal\xx\xx\xx\xx\target\dev\3.0.20\hub-webapp-internal\hub-webapp-internal-3.0.20\display-ldv-3.0.20.jar [zip] Building zip: D:\Home\LDauvilaire\src\Repository\SVN\JHub\modules\display-webapp\modules\hub-internal\xx\xx\xx\xx\target\dev\3.0.20\hub-webapp-internal\hub-webapp-internal-3.0.20\display-ldv-3.0.20.zip [jar] Building jar: D:\Home\LDauvilaire\src\Repository\SVN\JHub\modules\display-webapp\modules\hub-internal\xx\xx\xx\xx\target\dev\3.0.20\hub-webapp-internal\hub-webapp-internal-3.0.20\display-ldv.war BUILD SUCCESSFUL > War packaging fails with long file names > ---------------------------------------- > > Key: MWAR-35 > URL: http://jira.codehaus.org/browse/MWAR-35 > Project: Maven 2.x War Plugin > Type: Bug > Versions: 2.0 > Environment: Windows, Maven 2.0.4 > Reporter: Laurent Dauvilaire > > > 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 -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira