testingfly.com

Sample Settings.xml file using Maven Central

The settings element in the settings.xml file contains elements used to define values which configure Maven execution in various ways, like the pom.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: ${maven.home}/conf/settings.xml
  • A user’s install: ${user.home}/.m2/settings.xml
  • Given below is a sample Settings.xml file using Maven Central -

    To go places and do things that have never been done before – that’s what living is all about.
    - Michael Collins, flew on Gemini 10 and Apollo 11