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
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
Jake, I got around this problem while attempting to compile with JDK
1.3. What I did was modify the Plexus JavaCompiler to use a file list
instead of the command line. The challenge is creating a mojo
component. Here's the code in case you want to do the same:
File fileList = new