Maven: The Complete Reference

15.1. Quick Overview

The settings element in the settings.xml file contains elements used to define values which configure Maven execution. Settings in this file are settings which apply to many projects and which 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:

  • Maven Installation Directory: $M2_HOME/conf/settings.xml
  • User-specific Settings File: ~/.m2/settings.xml

Here is an overview of the top elements under settings:

Overview of top-level elements in settings.xml. 

<settings xmlns=""