Maven provides below three implicit variables to access
environment, project and settings configuration.
Below table summarizes these three implicit variables.
Variable
|
Description
|
env
|
Used to access the environment variables of the
operating system.
Ex: ${env.PATH}
|
project
|
Used to access the project variables in pom.xml.
Ex: ${project.groupId}
|
settings
|
By using this, you can access the settings
configuration located at ~/.m2/settings.xml file.
Ex: ${settings. profile}
access the profile element in settings file.
|
No comments:
Post a Comment