One other note: If you're on a 64bit platform, you'll probably also need to set the MaxPermSize option. My MAVEN_OPTS setting is: MAVEN_OPTS=-XX:MaxPermSize=128m -Xmx512M
Dan On Thursday 12 July 2007 08:54, Mosur Ravi, Balaji wrote: > Hi benson, > > You would have to set MAVEN_OPTS=-Xmx256m to get the java compiler to > compile that many source files. I don't know if this is documented but > it needs to be... > > - Balaji > > -----Original Message----- > From: Benson Margulies [mailto:[EMAIL PROTECTED] > Sent: Thursday, July 12, 2007 8:50 AM > To: [email protected] > Subject: Java out of memory building 2.0 from source with maven?! > > This belongs on the devo list, I guess, but I'm really just a user > running a build to get the rest of the javadoc. Any hints on how to > get around this? I have the current 1.5 JDK. > > > > > > [INFO] Compiling 1313 source files to > C:\x\s\apache-cxf-2.0-incubator-src\testutils\target\classes > > [INFO] > ---------------------------------------------------------------------- >-- > > [ERROR] BUILD FAILURE > > [INFO] > ---------------------------------------------------------------------- >-- > > [INFO] Compilation failure > > Failure executing javac, but could not parse the error: > > > > > > The system is out of resources. > > Consult the following stack trace for details. > > java.lang.OutOfMemoryError: Java heap space > > > > > > > > Failure executing javac, but could not parse the error: > > > > > > The system is out of resources. > > Consult the following stack trace for details. > > java.lang.OutOfMemoryError: Java heap space -- J. Daniel Kulp Principal Engineer IONA P: 781-902-8727 C: 508-380-7194 [EMAIL PROTECTED] http://www.dankulp.com/blog
