[IDEA 14 RC3 (IU-139.223) - OS X Yosemite] :: Maven Surefire argLine not used when running tests in IDEA
In IDEA 13.1 running a test inside a maven based project, IDEA correctly used the values specified in the SureFire plugin argLine. This seems not to happen in the latest version of IDEA 14.
Example:
pom.xml
...
<properties>
<test.mem.size>2048</test.mem.size>
</properties>
...<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.17</version>
<configuration>
<argLine>-Xms${test.mem.size}m -Xmx${test.mem.size}m -XX:MaxPermSize=512m</argLine>
<parallel>classes</parallel>
<threadCount>5</threadCount>
<useSystemClassLoader>false</useSystemClassLoader>
</configuration>
</plugin></plugins> </pluginManagement> </build> ...
Should produce a command line of:
/Library/Java/JavaVirtualMachines/jdk1.7.0_65.jdk/Contents/Home/bin/java -ea -Xms2048m -Xmx2048m -XX:MaxPermSize=512m -Didea.launcher.port=7532 ...
Let me know if you'd like me to raise an issue.
Paul
Please sign in to leave a comment.
Please try Settings / ... / Maven / Running tests / argLine = Yes.
Regards,
Alexander.
That worked - thanks!