Understanding Maven settings
Now that we have got an idea of the essential elements of a pom file, let us also examine the various setting properties of Maven.
How to do it...
To understand the Maven settings, perform the following steps:
- Open the
settings.xml
file in the.m2
subfolder of yourHOME
folder, if it exists: - Otherwise, open the
settings.xml
file in theconf
folder of your Maven installation (as defined inM2_HOME
).
How it works...
Maven has a global settings file called settings.xml
in the conf
folder of the Maven installation. The values in this file can be overridden in the user settings file— the settings.xml
file—that is present in the ...
Get Apache Maven Cookbook 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.