Maven Standard System Properties: Difference between revisions
Jump to navigation
Jump to search
Line 13: | Line 13: | ||
When referencing a ${property.<name>} system property, that translates into an internal <tt>Model.get<Name>()</tt>), aimed at the project Model instance. | When referencing a ${property.<name>} system property, that translates into an internal <tt>Model.get<Name>()</tt>), aimed at the project Model instance. | ||
===project.groupId=== | |||
===project.artifactId=== | |||
===project.version=== | ===project.version=== | ||
===project.basedir=== | |||
===project.baseUri=== | |||
===project.=== | |||
===project.=== | |||
===project.=== | |||
===project.=== | |||
===project.=== | |||
===project.=== | |||
===project.=== | |||
===project.name=== | |||
===project.description=== | |||
=Organizatorium= | =Organizatorium= |
Revision as of 18:19, 7 November 2016
External
- Maven Properties http://books.sonatype.com/mvnref-book/reference/resource-filtering-sect-properties.html
Internal
Standard System Properties
Project Properties
When referencing a ${property.<name>} system property, that translates into an internal Model.get<Name>()), aimed at the project Model instance.
project.groupId
project.artifactId
project.version
project.basedir
project.baseUri
project.
project.
project.
project.
project.
project.
project.
project.name
project.description
Organizatorium
Exposed Directly
These are directly accessible from Ant:
basedir
project.basedir
project.build.directory
project.version
Exposed As refids
To access from Ant, use:
.... <configuration> <tasks> <property name="maven.test.classpath" refid="maven.test.classpath"/> ...
maven.compile.classpath
maven.runtime.classpath
maven.test.classpath
maven.plugin.classpath
!!!Inaccessible from Ant
For an example of how to forward this to Ant, see [Antrun plugin|MavenAntrunPlugin].
!!!Displaying Various Classpath Values at Runtime
Ant can be also used to display various classpath values at runtime, see how to do that also here: [Antrun plugin|MavenAntrunPlugin#DisplayingVariousClasspathValuesAtRuntime].