Maven provides three implicit variables for accessing environment variables, pom information, and Maven settings.
Env
The env variable exposes the environment variables of your operating system or shell. For example, a reference to $ {env. Path} In Maven pom will be replaced by the $ {path} environment variable, and % PATH % in windows.
Projetc
The project variable exposes pom. You can use the path of the dot mark (.) to reference the value of the POM element. For example
<Project>
<Modelversion> 4.0.0 </modelversion>
<Groupid> org. sonatype. mavenbook </groupid>
<Artifactid> Project-a </artifactid>
<Version> 1.0-Snapshot </version>
<Packaging> jar </packaging>
<Build>
<Finalname >$ {project. groupid}-$ {project. artifactid} </finalname>
</Build>
</Project>
When you use MVN help: Valid tive-POM to view, you will see <finalname> org. sonatype. mavenbook-project-a </finalname>