Filling in the Gaps

Archive for the ‘maven’ Category

Passing Xmx to JUnit with Maven

Posted by: Admin on: January 15, 2009

If your tests are running out of memory when they run via Maven you can pass through the relevant JVM args, likely just -Xmx, in the pom, like this: <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId> <configuration> <argLine>-Xmx512m</argLine> </configuration> </plugin>


Follow

Get every new post delivered to your Inbox.