I would like to modify some Java options when Maven is run. Where does Maven store these options?
Answer:
In my case, it was stored in the environment variable $MAVEN_OPTS
:
export MAVEN_OPTS='-Xmx1g -XX:MaxPermSize=256m -Duser.language=en -Duser.country=us'
Options can also be set in POM files:
<argLine>-Xmx512M -XX:MaxPermSize=256M</argLine>
(dupe note)This question is close, but not a duplicate of the referenced question. I'm interested in an exact enumeration of places where the configuration options can be stored. Fixing a warning is merely a side effect. (end note)