Mick,

On first glance, that seems like an error from the OS, saying the command line is too long.

However, I am surprised that Maven would be invoking javac with a command line. I expected that Maven would invoke the compiler in the same JVM (no command line). If there is some part of your build that is keeping Maven from invoking javac within the same JVM, you might consider finding a way to eliminate the "forced forking".

I think there is some kind of option (env variable) you can set to make Windows support longer command lines. You might search for that and try it.

As a last resort, you might try making the path to your local repository shorter (by reconfiguring it in settings.xml). "C:\.m2\repository" or something like that would knock down the character count considerably.

Or I could be off the mark entirely, and the error has nothing to do with a long command line string. :-)

-Max

Mick Knutson wrote:
THis seems odd:

[INFO] [compiler:compile]
Compiling 11 source files to C:\pw-90\core\target\classes
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Compilation failure

Failure executing javac,  but could not parse the error:
The following character string is too long:
-d C:\pw-90\core\target\classes -classpath "C:\pw-90\core\target\classes;C:\Documents and Settings\mknutson\.m2\repository\o rg\springframework\spring-remoting\1.2.7\spring-remoting-1.2.7.jar;C:\Documents and Settings\mknutson\.m2\repository\aopallia nce\aopallitory\log4j\log4j\1.2.8\log4j-1.2.8.jar;C:\Documents and Settings\mknutson\.m2\repository\org\springframework\sprin g-context\1.2.7\spring-context-1.2.7.jar;C:\Documents and Settings\mknutson\.m2\repository\commons-httpclient\commons-httpcli ent\3.0\commons-httpclient-3.0.jar;C:\Documents and Settings\mknutson\.m2\repository\commons-lang\commons-lang\2.1\commons-la ng-2.1.jar;C:\Documents and Settings\mknutson\.m2\repository\logkit\logkit\1.0.1\logkit-1.0.1.jar;C:\Documents and Settings\m knutson\.m2\repository\commons-dbcp\commons-dbcp\1.2\commons-dbcp-1.2.jar;C:\Documents and Settings\mknutson\.m2\repository\o rg\springframework\spring-webmvc\1.2.7\spring-webmvc-1.2.7.jar;C:\Documents and Settings\mknutson\.m2\repository\org\springfr amework\spring-jdbc\1.2.7\spring-jdbc-1.2.7.jar;C:\Documents and Settings\mknutson\.m2\repository\commons-collections\commons -collections\3.1\commons-collections-3.1.jar;C:\Documents and Settings\mknutson\.m2\repository\avalon-framework\avalon-framew ork\4.1.3\avalon-framework-4.1.3.jar;C:\Documents and Settings\mknutson\.m2\repository\org\springframework\spring-mock\1.2.8\ spring-mock-1.2.8.jar;C:\Documents and Settings\mknutson\.m2\repository\oro\oro\2.0.8\oro-2.0.8.jar;C:\Documents and Settings \mknutson\.m2\repository\commons-beanutils\commons-beanutils\1.6.1\commons-beanutils-1.6.1.jar;C:\Documents and Settings\mknu tson\.m2\repository\org\springframework\spring-web\1.2.7\spring-web-1.2.7.jar;C:\Documents and Settings\mknutson\.m2\reposito ry\org\springframework\spring-beans\1.2.7\spring-beans-1.2.7.jar;C:\Documents and Settings\mknutson\.m2\repository\org\spring framework\spring-dao\1.2.7\spring-dao-1.2.7.jar;C:\Documents and Settings\mknutson\.m2\repository\xerces\xercesImpl\2.0.2\xer cesImpl-2.0.2.jar;C:\Documents and Settings\mknutson\.m2\repository\org\springframework\spring-aop\1.2.7\spring-aop-1.2.7.jar ;C:\Documents and Settings\mknutson\.m2\repository\org\acegisecurity\acegi-security\1.0.1\acegi-security-1.0.1.jar;C:\Documen ts and Settings\mknutson\.m2\repository\commons-codec\commons-codec\1.3\commons-codec-1.3.jar;C:\Documents and Settings\mknut son\.m2\repository\commons-logging\commons-logging\1.1\commons-logging-1.1.jar;C:\Documents and Settings\mknutson\.m2\reposit ory\javax\servlet\servlet-api\2.3\servlet-api-2.3.jar;C:\Documents and Settings\mknutson\.m2\repository\dom4j\dom4j\1.6.1\dom 4j-1.6.1.jar;C:\Documents and Settings\mknutson\.m2\repository\org\springframework\spring\1.2.8\spring-1.2.8.jar;C:\Documents and Settings\mknutson\.m2\repository\org\springframework\spring-core\1.2.7\spring-core-1.2.7.jar;C:\Documents and Settings\m knutson\.m2\repository\xml-apis\xml-apis\1.0.b2\xml-apis-1.0.b2.jar;C:\Documents and Settings\mknutson\.m2\repository\commons -pool\commons-pool\1.2\commons-pool-1.2.jar;" C:\pw-90\core\src\main\java\com\prounlimited\util\security\vote\ProBasicAclEntr yVoter.java C:\pw-90\core\src\main\java\com\prounlimited\util\xml\XMLParseException.java C:\pw-90\core\src\main\java\com\prou nlimited\util\UtilException.java C:\pw-90\core\src\main\java\com\prounlimited\util\lang\ChrBuffer.java C:\pw-90\core\src\main \java\com\prounlimited\util\xml\XMLParser.java C:\pw-90\core\src\main\java\com\prounlimited\util\lang\KeyVal.java C:\pw-90\co re\src\main\java\com\prounlimited\util\AppLogger.java C:\pw-90\core\src\main\java\com\prounlimited\util\ObjectViewer.java C:\ pw-90\core\src\main\java\com\prounlimited\util\security\acl\basic\ProNamedEntityObjectIdentity.java C:\pw-90\core\src\main\ja va\com\prounlimited\util\WandFormat.java C:\pw-90\core\src\main\java\com\prounlimited\


[INFO] ------------------------------------------------------------------------
[INFO] Trace
org.apache.maven.BuildFailureException: Compilation failure
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:555) 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.CompilationFailureException: Compilation failure at org.apache.maven.plugin.AbstractCompilerMojo.execute(AbstractCompilerMojo.java:505) at org.apache.maven.plugin.CompilerMojo.execute(CompilerMojo.java:111) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:412) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:534)
       ... 16 more
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1 minute 35 seconds
[INFO] Finished at: Tue Jun 27 11:29:59 PDT 2006
[INFO] Final Memory: 6M/11M
[INFO] ------------------------------------------------------------------------

C:\pw-90>




---
Thank You
Mick Knutson

BASE logic, inc.
(415) 648-1804 (San Francisco, CA)
http://www.BASELogic.com

http://www.djmick.com
---



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to