Jesse McConnell wrote:

most people I know just add the following to their environment variables

MAVEN_OPTS=-Xmx512m

It shouldn't be necessary to have to patch your environment to work around bugs in unit tests, if the tests need 512MB of RAM, then the surefire plugin should be configured to allocate 512MB of RAM.

+1 to this:

>        <plugin>
>          <groupId>org.apache.maven.plugins</groupId>
>          <artifactId>maven-surefire-plugin</artifactId>
>          <configuration>
>            <argLine>-Xmx512m</argLine>
>          </configuration>
>        </plugin>

Regards,
Graham
--

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

Reply via email to