mvn
command, among others, have following options:
-f,--file <arg>
Force the use of an alternate POM file. (This is for pointing file instead of defaultpom.xml
file.)-gs,--global-settings <arg>
Alternate path for the global settings file. (This one is for pointing thesettings.xml
file, which is by default in.m2
directory.)
Still there is yet one config file uncovered by these options - .mavenrc
So, my question is - Is there a way to tell maven from which file it should get MAVEN_OPTS
?