Try
export MAVEN_OPTS="-Xmx1024M -XX:MaxPermSize=512m"
instead.
As far as I can see, MVN_OPTS is not used by Maven.
On 27/01/2008, Joerg Hohwiller <[EMAIL PROTECTED]> wrote:
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
> Hi there,
>
> the build of my projects site does not work anymore.
>
> I do this:
>
> export MVN_OPTS="-Xmx1024M -XX:MaxPermSize=512m"
> mvn install -Dmaven.test.skip=true
> mvn -npu -fae -Pcodehaus site:stage -DstagingDirectory=${STAGE_DIR}
>
> The problem occured since I hat to purge my local repository.
> I currently guess that it has to do something with a bug in a new
> released plugin (maybe related to surefire - see below).
>
> Can anybody help me to track this down?
>
> After an extra-ordinary long build I got this error:
>
> [INFO] Generate "Source Xref" report.
> [INFO]
>
> [ERROR] FATAL ERROR
> [INFO]
>
> [INFO] Java heap space
> [INFO]
>
> [INFO] Trace
> java.lang.OutOfMemoryError: Java heap space
> ~at
> org.apache.velocity.runtime.parser.VelocityCharStream.(VelocityCharStream.java:260)
> ~at
> org.apache.velocity.runtime.parser.VelocityCharStream.(VelocityCharStream.java:296)
> ~at
> org.apache.velocity.runtime.parser.VelocityCharStream.(VelocityCharStream.java:302)
> ~at org.apache.velocity.runtime.parser.Parser.(Parser.java:61)
> ~at
> org.apache.velocity.runtime.RuntimeInstance.createNewParser(RuntimeInstance.java:694)
> ~at
> org.apache.velocity.runtime.RuntimeInstance.initializeParserPool(RuntimeInstance.java:681)
> ~at
> org.apache.velocity.runtime.RuntimeInstance.init(RuntimeInstance.java:229)
> ~at
> org.apache.velocity.app.VelocityEngine.init(VelocityEngine.java:80)
> ~at
> org.apache.maven.jxr.DirectoryIndexer.process(DirectoryIndexer.java:220)
> ~at org.apache.maven.jxr.JXR.xref(JXR.java:281)
> ~at
> org.apache.maven.plugin.jxr.AbstractJxrReport.createXref(AbstractJxrReport.java:261)
>
>
> The build also seems to cycle because it does the same things again and again.
> During that it logs sections like this:
> Tests run: 8, Failures: 0, Errors: 0, Skipped: 1
>
> [INFO] Preparing surefire-report:report-only
> [INFO]
>
> [INFO] Building mmm
> [INFO]
>
> [INFO] No goals needed for project - skipping
> [INFO]
>
> [INFO] Building util
> [INFO]
>
> [INFO] No goals needed for project - skipping
> [INFO]
>
> [INFO] Building util-core
> [INFO]
>
> [INFO] No goals needed for project - skipping
> [INFO]
>
> [INFO] Building util-reflect
> [INFO]
>
> [INFO] No goals needed for project - skipping
> [INFO]
>
> [INFO] Building util-event
> [INFO]
>
> [INFO] No goals needed for project - skipping
> [INFO]
>
> [INFO] Building util-resource
> [INFO]
>
> [INFO] No goals needed for project - skipping
> [INFO]
>
> [INFO] Building util-xml
> [INFO]
>
> [INFO] No goals needed for project - skipping
> [INFO]
>
> [INFO] Building util-misc
> [INFO]
>
> [INFO] No goals needed for project - skipping
> [INFO]
>
> [INFO] Building value
> [INFO]
>
> [INFO] No goals needed for project - skipping
> [INFO]
>
> [INFO] Building value-validator
> [INFO]
>
> [INFO] No goals needed for project - skipping
> [INFO]
>
> [INFO] Building content
> [INFO]
> --