Following is list of maven path properties from https://cwiki.apache.org/confluence/display/MAVEN/Maven+Properties+Guide
This page extracts a few classical values:
${project.basedir}- This references to the root folder of the module/project (the location where the current pom.xml file is located)
${project.build.directory}- This represents by default the
targetfolder.
- This represents by default the
${project.build.outputDirectory}- This represents by default the
target/classesfolder.
- This represents by default the
${project.build.testOutputDirectory}- This represents by default the
target/test-classesfolder.
- This represents by default the
${project.build.sourceDirectory}- This represents by default the
src/main/javafolder.
- This represents by default the
${project.build.testSourceDirectory}- This represents by default the
src/test/javafolder.
- This represents by default the
You can use further properties like the following:
${project.build.finalName}- This is by default defined as
${project.artifactId}-${project.version}.
- This is by default defined 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-modules build for inter modules dependencies.
User Settings
The
settings.xml elements could be referenced by using things like this (see also at the Super POM):${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
No comments:
Post a Comment