Just in case, if you need to be sure sure sure that your Maven installation use the right settings.xml file you can use the following methods:

  • Execute the Maven goal "help:effective-settings". It will print in the console the content of the settings.xml that Maven is able to find.
  • Add the option "-X debug". It will print in the console the paths to the settings.xml that Maven have found.
[DEBUG] Reading global settings from U:\maven\apache-maven-3.2.1\conf\settings.xml
[DEBUG] Reading user settings from U:\maven\apache-maven-3.2.1\conf\settings.xml