Plugin Documentation
Goals available for this plugin:
Goal | Description |
---|---|
properties:help | Display help information on properties-maven-plugin.
Call mvn properties:help -Ddetail=true -Dgoal=<goal-name> to display parameter details. |
properties:read-project-properties | The read-project-properties goal reads property files and URLs and stores the properties as project properties. It serves as an alternate to specifying properties in pom.xml. It is especially useful when making properties defined in a runtime resource available at build time. |
properties:set-system-properties | Sets system properties. |
properties:write-active-profile-properties | Writes properties of all active profiles to a file. |
properties:write-project-properties | Writes project properties to a file. |
System Requirements
The following specifies the minimum requirements to run this Maven plugin:
Maven | 3.5.4 |
JDK | 1.8 |
Usage
You should specify the version in your project's plugin configuration:
<project> ... <build> <!-- To define the plugin version in your parent POM --> <pluginManagement> <plugins> <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>properties-maven-plugin</artifactId> <version>1.2.1</version> </plugin> ... </plugins> </pluginManagement> <!-- To use the plugin goals in your POM or parent POM --> <plugins> <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>properties-maven-plugin</artifactId> </plugin> ... </plugins> </build> ... </project>
For more information, see "Guide to Configuring Plug-ins"