Child pages
  • Maven Properties Guide

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: trying to improve explanations
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.
  • ${project.build.outputDirectory}
    • This represents by default the target/classes folder.
  • ${project.build.testOutputDirectory}
    • This represents by default the target/test-classes folder.
  • ${project.build.sourceDirectory}
    • This represents by default the src/main/java folder.
  • ${project.build.testSourceDirectory}
    • This represents by default the src/test/java folder.

You can use further properties like the following:

  • ${project.build.FinalNamefinalName}
    • This is by default defined like the following as ${project.artifactId}-${project.version}.
  • ${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.

 

...

    • .

...