The base folder for all other locations within the project.
Full detailed explanations can be found in Maven Model Builder Interpolation reference documentation.
This page extracts a few classical values:
${project.basedir}
- This references to the root folder of the module/project (The the location where the pomcurrent pom.xml file xml file is located.)
Project Properties reference the locations which are POM properties referencing useful build locations, with default values defined in the Super POM.:
${project.build.directory}
- This represents by default the
target
folder.
- This represents by default the
${project.build.outputDirectory
}- This represents by default the
target/classes
folder.
- This represents by default the
${project.build.testOutputDirectory
}- This represents by default the
target/test-classes
folder.
- This represents by default the
${project.build.sourceDirectory
}- This represents by default the
src/main/java
folder.
- This represents by default the
${project.build.testSourceDirectory
}- This represents by default the
src/test/java
folder.
- This represents by default the
You can use further properties like the following:
${project.build.FinalNamefinalName
}- This is by default defined like the following as
${project.artifactId}-${project.version}
.
- This is by default defined like the following as
${project.version}
- This can be used at locations where you have to write a literal version otherwise, in particular if you are in a multi-project modules build for inter project modules dependencies.
User Settings
...
${settings.localRepository
}- which references the location of the local repository. This is by default
${home}/.m2/repository
.
- which references the location of the local repository. This is by default
...
- .
...