Maven settings file

Depending on your current operating system, you will need to create/edit the .m2/settings.xml file.

Windows users will find the settings.xml file by issuing the following command in Command Prompt:

echo %USERPROFILE%\.m2\settings.xml

Mac operating system users can edit/create the settings.xml file in ~/.m2/settings.xml.

The settings element in the settings.xml file contains elements used to define values that configure Maven execution in various ways, such as 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.

Place the following content into the settings.xml ...

Get Hands-On Continuous Integration and Delivery now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.