Try changing the size of the memory available to the VM (via MAVEN_OPTS) in the script.
Maybe someone could update the shell script to have the same functionality as the windows batch file, allowing the user to specify MAVEN_OPTS themselves, overriding the defaults. -- dIon Gillard, Multitask Consulting Blog: http://www.freeroller.net/page/dion/Weblog Work: http://www.multitask.com.au Sean Langford <[EMAIL PROTECTED]> wrote on 19/03/2003 09:04:41 AM: > Hello, > > I am trying to use Maven to perform a "site:generate". Using 'maven -X > site:generate' I get the following error: > > xdoc:jelly-transform: > [DEBUG] fileset: Setup scanner in dir > /home/maven/dev/collision/target/generated-xdocs with patternSet{ > includes: [**/*.xml] excludes: [**/project.xml, **/template.xml, > **/navigation.xml, changes.xml] } > [echo] Generating > /home/maven/dev/collision/target/docs/jdepend-report.html from > /home/maven/dev/collision/target/generated-xdocs/jdepend-report.xml > [echo] Generating > /home/maven/dev/collision/target/docs/checkstyle-report.html from > /home/maven/dev/collision/target/generated-xdocs/checkstyle-report.xml > > BUILD FAILED > null:507:46: <attainGoal> null:304:43: <x:parse> java.lang.OutOfMemoryError > com.werken.werkz.UnattainableGoalException: Unable to obtain goal [site] > -- null:25:30: <attainGoal> null:507:46: <attainGoal> null:304:43: > <x:parse> java.lang.OutOfMemoryError > at com.werken.werkz.Goal.fire(Goal.java:646) > at com.werken.werkz.Goal.attain(Goal.java:575) > at com.werken.werkz.Goal.attainPrecursors(Goal.java:488) > java.lang.reflect.InvocationTargetException > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > at > sun.reflect.DelegatingMethodAccessorImpl. > invoke(DelegatingMethodAccessorImpl.java:25) > at java.lang.reflect.Method.invoke(Method.java:324) > Exception in thread "main" java.lang.OutOfMemoryError > > > I am using maven-cvs as of this morning and I'm using the default > template project.xml slightly modified to fit my environment. I've > searched this list for similar problems and found nothing, so I suspect > its something I'm doing wrong. The 'null' appears mighty suspicious. I > am already setting "maven.javadoc.maxmemory=768M"; is there a similar > memory setting for xdoc that might fix this? > > Any help appreciated. > > Thanks > > Sean > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
