Goals available for this plugin:
Goal | Description |
---|---|
credentials:help | Display help information on credentials-maven-plugin. Call mvn credentials:help -Ddetail=true
-Dgoal=<goal-name> to display parameter details. |
credentials:set | This plugin looks up credentials in
~/.m2/settings.xml , and sets them to specifiable Maven
and/or Java system properties. Also provides the ability to set the
username and password via system properties. This is to support
situations where the credentials may not be available in all
execution environments, such as continuous integration servers. If
the computed usernameProperty and/or
passwordProperty already exist as either Maven or
system properties, neither will be looked up in
~/.m2/settings.xml , since it's assumed that these have
been deliberately set in order to override the
settings.xml settings. |
credentials:set-all | This plugin looks up credentials in
~/.m2/settings.xml , and sets them all to Maven
properties using the pattern id .username and
id.password. Also provides the ability to set the username
and password via system properties. This is to support situations
where the credentials may not be available in all execution
environments, such as continuous integration servers. If the
computed id.username and id.password properties
already exist as either Maven or system properties, these will not
be overridden, since it's assumed that these have been deliberately
set in order to override the settings.xml settings. |
The following specifies the minimum requirements to run this Maven plugin:
Maven | 2.0 |
JDK | 1.6 |
Memory | No minimum requirement. |
Disk Space | No minimum requirement. |
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>com.github.genthaler</groupId> <artifactId>credentials-maven-plugin</artifactId> <version>1.3</version> </plugin> ... </plugins> </pluginManagement> <!-- To use the plugin goals in your POM or parent POM --> <plugins> <plugin> <groupId>com.github.genthaler</groupId> <artifactId>credentials-maven-plugin</artifactId> <version>1.3</version> </plugin> ... </plugins> </build> ... </project>
For more information, see "Guide to Configuring Plug-ins"