How to display which settings.xml file is used by Maven

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

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s