Try setting the MAVEN_OPTS environment variable to the following (or higher maybe...):
export MAVEN_OPTS=-Xmx512M Cheers, Jon On Fri, Mar 02, 2007 at 11:46:57AM -0000, O'Callaghan, Sean wrote: > Hi, > > Since upgrading to Maven 2.0.5, CXF fails to compile a clean build. > It runs out of memory when compiling the testutils classes. > Is there any flag/switch I can set in Maven config to workaround this? > This is on windows using jdk1.5.0_06 > > Thanks, > > Seán. > > Compiling 1197 source files to C:\CXF\trunk\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
