Command Line argument too long
------------------------------
Key: MNG-2629
URL: http://jira.codehaus.org/browse/MNG-2629
Project: Maven 2
Issue Type: Bug
Components: Command Line
Environment: XP, command prompt
Reporter: Manri Offermann
Priority: Critical
When Maven is started from command line (for example 'mvn clean compile'), the
compile process fails, when compiling a large number of files or if working
path name is long. Reason: "Under Windows XP, the command line is limited to
8190 characters." (googled)
example error:
Caused by: java.io.IOException: CreateProcess: CMD.EXE /X /C javac -d
D:\projects\wazap-core\target\main\classes -classpath
"D:\projects\wazap-core\target\main\classes;E:\Documents and
Settings\tsasaki\.m2\repository\objectweb\ow-monolog\2.1.1\ow-monolog-2.1.1.jar;E:\Documents
and
Settings\tsasaki\.m2\repository\concurrent\concurrent\1.3.4\concurrent-1.3.4.jar;E:\Documents
and
Settings\tsasaki\.m2\repository\struts\struts\1.1\struts-1.1.jar;E:\Documents
and
Settings\tsasaki\.m2\repository\aopalliance\aopalliance\1.0\aopalliance-1.0.jar;E:\Documents
and Settings\tsasaki\.m2\repository\javax\jsp\jsp\2.0\jsp-2.0.jar;E:\Documents
and
Settings\tsasaki\.m2\repository\commons\commons-pool\1.2\commons-pool-1.2.jar;E:\Documents
and Settings\tsasaki\.m2\repository\ant\ant\1.6.5\ant-1.6.5.jar;E:\Documents
and
Settings\tsasaki\.m2\repository\spring\spring\1.2.8\spring-1.2.8.jar;E:\Documents
and
Settings\tsasaki\.m2\repository\woodstox\woodstox\3.0.0\woodstox-3.0.0.jar;E:\Documents
and Settings\tsasaki\.m2\repository\jp\co\eastbeam\eastbeam-web\1.0-SNAP?
at java.lang.ProcessImpl.create(Native Method)
at java.lang.ProcessImpl.<init>(Unknown Source)
at java.lang.ProcessImpl.start(Unknown Source)
at java.lang.ProcessBuilder.start(Unknown Source)
at java.lang.Runtime.exec(Unknown Source)
at org.codehaus.plexus.util.cli.Commandline.execute(Commandline.java:692)
... 16 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