Maven settings.xml: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
No edit summary
Line 10: Line 10:


<tt>settings.xml</tt> is the place to store configuration that should not be bundled with a specific project. This includes various "personal" configuration values, the location of the local repository, alternate remote [[Maven Repositories|repository servers]] and authentication information. Usually, this information is bundled in specific [[Maven_Profile#In_Settings|profiles]].
<tt>settings.xml</tt> is the place to store configuration that should not be bundled with a specific project. This includes various "personal" configuration values, the location of the local repository, alternate remote [[Maven Repositories|repository servers]] and authentication information. Usually, this information is bundled in specific [[Maven_Profile#In_Settings|profiles]].
There are two types of settings.xml files:
* ''global'', placed in ${MAVEN_HOME}/conf/settings.xml.
* ''user settings'', placed in ${HOME}/.m2/settings.xml.
If both exist, the contents are merged and the user-specific values take precedence.

Revision as of 18:01, 1 March 2017

External

Internal

Overview

settings.xml is the place to store configuration that should not be bundled with a specific project. This includes various "personal" configuration values, the location of the local repository, alternate remote repository servers and authentication information. Usually, this information is bundled in specific profiles.

There are two types of settings.xml files:

  • global, placed in ${MAVEN_HOME}/conf/settings.xml.
  • user settings, placed in ${HOME}/.m2/settings.xml.

If both exist, the contents are merged and the user-specific values take precedence.