Goals available for this plugin:
| Goal | Description |
|---|---|
| dependency-check:check | Goal of "dependency-check:check" is used to check missing artifacts in a specified Maven Repository. The format of the list printed out is: G:A:T:V, where G is the groupId, A is the ArtifactId, T is the Type, V is the version. It will print the list to console by default, or you can specify an output file by a parameter: -DoutputFile=. This goal checks only one Maven Repository a time, the -DrepoURL has higher priority than -DrepoId. |
| dependency-check:generate-poms | Goal of 'dependency-check:generate-poms' will generate each test pom file for each BOM module. It can be used to check against whether the BOM declared correct dependencies versions using the generated pom files. |
| dependency-check:help | Display help information on dependency-check-maven-plugin. Call mvn dependency-check:help -Ddetail=true
-Dgoal=<goal-name> to display parameter details. |
The following specifies the minimum requirements to run this Maven plugin:
| Maven | 2.0 |
| JDK | 1.5 |
| 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>org.jboss.maven.plugins</groupId>
<artifactId>dependency-check-maven-plugin</artifactId>
<version>1.0.4-SNAPSHOT</version>
</plugin>
...
</plugins>
</pluginManagement>
<!-- To use the plugin goals in your POM or parent POM -->
<plugins>
<plugin>
<groupId>org.jboss.maven.plugins</groupId>
<artifactId>dependency-check-maven-plugin</artifactId>
<version>1.0.4-SNAPSHOT</version>
</plugin>
...
</plugins>
</build>
...
</project>
For more information, see "Guide to Configuring Plug-ins"