The goal is to add JVM required memory flags so that anyone running mvn ...
will have it working even if he/she doesn’t have MAVEN_OPTS
or .mavenrc
set.
It also allows to have the same values on the CI and locally.
See Maven – Configuring Apache Maven
Potential issues:
- I need to check which one has precedence if you have them all defined though.
- Maybe the local memory reqs should not be the same as the CI ones since you usually don’t execute the full build locally (even if I do that from time to time on my side for ex).
WDYT?