I have a project with the following ./mvn/jvm.config :
-Xms32g -Xmx64g -XX:MaxDirectMemorySize=20g
I was wondering if I configure my maven surfire plugin as follows:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.9</version>
<configuration>
<argLine>-Xms12g -Xmx30g -XX:MaxDirectMemorySize=30g</argLine>
<suiteXmlFiles>
<suiteXmlFile>src/test/resources/RunMmoTests.xml</suiteXmlFile>
</suiteXmlFiles>
</configuration>
</plugin>
I know that my jvm.config will set the MAVEN_OPTS
environment variable, but I can't find any documentation stating the precedence between MAVEN_OPTS and surfire argLine
. Which one override the other? After running some tests, I have the feeling that the surfire argLine
override whatever argument defined in MAVEN_OPTS
. Is my guess correct??
Many thanks