I recently changed my password and have to change my maven settings.xml file to reflect that. However, no matter what I do in the settings.xml file, the changed password just won't get picked up. Out of desperation, I ran maven with the -s switch (mvn -s <my intended settings.xml file>
) and everything just started working. It seems to suggest that maven by default is using a "wrong" settings.xml
Is there a way for me to figure out where the settings.xml file that maven is using is located?
Use the Maven debug option, ie
mvn -X
:In this output, you can see that the settings.xml is loaded from
/home/myhome/.m2/settings.xml
.