Is there a way to get maven to output the value of environment and maven variables during a build? This would be very useful for debugging things when they\'re going wrong.
Adding an option to the already provided answers.
There are different ways to pass JVM options to mvn as per https://maven.apache.org/configure.html you can do it using environment variable (MAVEN_OPTS
) or file (${maven.projectBasedir}/.mvn/jvm.config
).
I wanted to see which is picked up, and did so by starting a build then followed a ps listing to assert what was picked up, eg
ps -ef | grep SomeOption