You are previewing Maven: The Definitive Guide.

Maven: The Definitive Guide

Cover of Maven: The Definitive Guide by Sonatype Company Published by O'Reilly Media, Inc.
O'Reilly logo

Settings Details

Simple Values

Half of the top-level settings elements are simple values, representing a range of values that configure core behavior of Maven. These are shown in Example A-2.

Example A-2. Simple top-level elements in settings.xml

<settings xmlns=""

The simple top-level elements are:


This value is the path of this build system’s local repository. The default value is ${user.dir}/.m2/repository.


true if Maven should attempt to interact with the user for input; false if not. Defaults to true.


true if Maven should use the ${user.dir}/.m2/plugin-registry.xml file to manage plugin versions. Defaults to false.


true if this build system should operate in offline mode. Defaults to false. This element is useful for build servers that cannot connect to a remote repository, either because of network setup or for security reasons.


This element contains a list of pluginGroup elements. Each contains a groupId. The list is searched when a plugin is used and the groupId is not ...

The best content for your career. Discover unlimited learning on demand for around $1/day.