How do I use maven command line to determine which settings.xml file Maven is picking up?
The M2_HOME environment variable for the global one. See Settings Reference:
The
settingselement in thesettings.xmlfile contains elements used to define values which configure Maven execution in various ways, like thepom.xml, but should not be bundled to any specific project, or distributed to an audience. These include values such as the local repository location, alternate remote repository servers, and authentication information. There are two locations where a settings.xml file may live:
- The Maven install:
$M2_HOME/conf/settings.xml- A user's install:
${user.home}/.m2/settings.xml