Hi Jake, I don't know about your fork error, I successfully forked the compiler both on Linux and Windows. But you can pass parameters to the Maven JVM using an env var called MAVEN_OPTS with value e.g. ' -Xms16m -Xmx64m ' (for further options, check bin\mvn.bat).
Hope this helps, - Yann 2006/2/21, Jake Pezaro <[EMAIL PROTECTED]>: > > i need to do some memory-intensive java compilation (918 files, 678 in > one directory alone, largest .java file is around 500K). setting the > -J-Xmx argument should fix it. the problems i encountered are: > > - i must fork the process in order to do it as the maven compiler will > not accept this option > - forking the process fails with the following error (possibly due to > the command line options being 82789 characters long): > > Caused by: java.io.IOException: CreateProcess: CMD.EXE /X /C javac -d > c:\dev\workspace\CheltenhamWeb-2-2-1\target\classes -classpath > c:\dev\...<very long command > line>\axis-saaj-1.3.jar;C:\DOCUME~1\user\.m2\repository\axi? > at java.lang.Win32Process.create(Native Method) > at java.lang.Win32Process.<init>(Win32Process.java:66) > at java.lang.Runtime.execInternal(Native Method) > at java.lang.Runtime.exec(Runtime.java:566) > at > org.codehaus.plexus.util.cli.Commandline.execute(Commandline.java:692) > ... 24 more > > i am not sure how to solve this. is there a way to increase the > compiler memory without forking the process? is there a way to fix the > problem i am having forking the javac process? any suggestions welcome. > > thanks > > jake > > ______________________________________________________________________ > This email has been scanned by the MessageLabs Email Security System. > For more information please visit http://www.messagelabs.com/email > ______________________________________________________________________ >