Plugin documentation

Goals available for this plugin:

Goal Report? Description
dependency:unpack No Goal that retrieves a list of artifacts from the repository and unpacks them in a defined location.
dependency:build-classpath No This goal will output a classpath string of dependencies from the local repository to a file or log.
dependency:resolve No Goal that resolves the project dependencies from the repository.
dependency:analyze-dep-mgt No This mojo looks at the dependencies after final resolution and looks for mismatches in your dependencyManagement section. In versions of maven prior to 2.0.6, it was possible to inherit versions that didn't match your dependencyManagement. See MNG-1577 for more info. This mojo is also usefull for just detecting projects that override the dependencyManagement directly. Set ignoreDirect to false to detect these otherwise normal conditions.
dependency:sources No Goal that resolves the project source dependencies from the repository.
dependency:copy-dependencies No Goal that copies the project dependencies from the repository to a defined location.
dependency:copy No Goal that copies a list of artifacts from the repository to defined locations.
dependency:resolve-plugins No Goal that resolves all project plugins and reports and their dependencies.
dependency:go-offline No Goal that resolves all project dependencies, including plugins and reports and their dependencies.
dependency:unpack-dependencies No Goal that unpacks the project dependencies from the repository to a defined location.
dependency:analyze No Analyzes the dependencies of this project and determines which are: used and declared; used and undeclared; unused and declared. This goal is intended to be used standalone, thus it always executes the test-compile phase - use the dependency:analyze-only goal instead when participating in the build lifecycle.
dependency:purge-local-repository No Remove the project dependencies from the local repository, and optionally re-resolve them.
dependency:tree No Displays the dependency tree for this project.
dependency:analyze-report Yes Analyzes the dependencies of this project and produces a report that summarises which are: used and declared; used and undeclared; unused and declared.
dependency:analyze-only No Analyzes the dependencies of this project and determines which are: used and declared; used and undeclared; unused and declared. This goal is intended to be used in the build lifecycle, thus it assumes that the test-compile phase has been executed - use the dependency:analyze goal instead when running standalone.
dependency:list No Displays the list of dependencies for this project.

System Requirements

The following specifies the minimum requirements to run this Maven plugin:

Maven 2.0
JDK 1.4
Memory No minimum requirement.
Disk Space No minimum requirement.

Usage

You could run 'mvn -up' to get the latest version of this plugin, or specify the version in your project's plugin configuration:

<project>
  ...
  <build>
    <!-- To define the plugin version in your parent POM -->
    <pluginManagement>
      <plugin>
        <groupId>org.apache.maven.plugins<groupId>
        <artifactId>maven-dependency-plugin<artifactId>
        <version>2.0<version>
      </plugin>
      ...
    </pluginManagement>
    <!-- To use the plugin goals in your POM or parent POM -->
    <plugins>
      <plugin>
        <groupId>org.apache.maven.plugins<groupId>
        <artifactId>maven-dependency-plugin<artifactId>
        <version>2.0<version>
      </plugin>
      ...
    </plugins>
  </build>
  ...
  <!-- To use the report goals in your POM or parent POM -->
  <reporting>
    <plugins>
      <plugin>
        <groupId>org.apache.maven.plugins<groupId>
        <artifactId>maven-dependency-plugin<artifactId>
        <version>2.0<version>
      </plugin>
      ...
    </plugins>
  </reporting>
  ...
</project>
For more information, see "Guide to Configuring Plug-ins"