You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by Graham Leggett <mi...@sharp.fm> on 2006/07/19 21:20:42 UTC
OutOfMemoryError when compiling with javac
Hi all,
I have a maven 1 configuration that builds the IFX and ACORD schemas
using xmlbeans. This step works, however the second step - compiling the
generated code - fails with an OutOfMemoryError.
I tried setting the MAVEN_OPTS environment variable to jack up the -Xmx
to 2GB of RAM, but this has no effect, and the build fails.
The build is failing for one of the following reasons, I am not sure
which one is the case:
- Does adding -Xmx2048M to MAVEN_OPTS affect the amount of RAM available
to javac when it is called by maven, or is there a different option that
should be used? Does MAVEN_OPTS have any effect on javac at all?
- Has anybody ever managed to compile either the IFX or ACORD schemas
using xmlbeans, or is this a lost cause?
Regards,
Graham
--
Re: OutOfMemoryError when compiling with javac
Posted by Graham Leggett <mi...@sharp.fm>.
Brett Porter wrote:
> Depends on whether javac is forked. You can change that and the memory
> using the properties here:
> http://maven.apache.org/maven-1.x/plugins/java/properties.html
I eventually gave up on maven1 and used maven2 instead. The
xmlbeans-maven-plugin includes the required memory options to make
xmlbeans work in the form of the memoryMaximumSize option to the plugin.
IFX needed approx 500M, and ACORD needed approximately 1GB.
> Please send these queries to the users@ list in future - thanks.
My queries about large schemas to the users list had gone unanswered,
this was a "does it work at all" question, which is why I asked here.
Regards,
Graham
--
Re: OutOfMemoryError when compiling with javac
Posted by Brett Porter <br...@apache.org>.
On 20/07/2006 5:20 AM, Graham Leggett wrote:
> - Does adding -Xmx2048M to MAVEN_OPTS affect the amount of RAM available
> to javac when it is called by maven, or is there a different option that
> should be used? Does MAVEN_OPTS have any effect on javac at all?
Depends on whether javac is forked. You can change that and the memory
using the properties here:
http://maven.apache.org/maven-1.x/plugins/java/properties.html
Please send these queries to the users@ list in future - thanks.
Cheers,
Brett
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org