dependency:tree

Full name:

org.apache.maven.plugins:maven-dependency-plugin:2.3:tree

Description:

Displays the dependency tree for this project.

Attributes:

  • Requires a Maven project to be executed.
  • Requires dependency resolution of artifacts in scope: test.
  • Since version: 2.0-alpha-5.

Optional Parameters

Name Type Since Description
appendOutput boolean 2.2 Whether to append outputs into the output file or overwrite it.
Default value is: false.
excludes String 2.0-alpha-6 A comma-separated list of artifacts to filter from the serialized dependency tree, or null not to filter any artifacts from the dependency tree. The artifact syntax is defined by StrictPatternExcludesArtifactFilter.
includes String 2.0-alpha-6 A comma-separated list of artifacts to filter the serialized dependency tree by, or null not to filter the dependency tree. The artifact syntax is defined by StrictPatternIncludesArtifactFilter.
output File 2.0-alpha-5 Deprecated. use outputFile instead.
outputFile File 2.0-alpha-5 If specified, this parameter will cause the dependency tree to be written to the path specified, instead of writing to the console.
outputType String 2.1 If specified, this parameter will cause the dependency tree to be written using the specified format. Currently supported format are text, dot, graphml and tgf. These formats can be plotted to image files. An example of how to plot a dot file using pygraphviz can be found here
Default value is: text.
scope String 2.0-alpha-5 The scope to filter by when resolving the dependency tree, or null to include dependencies from all scopes. Note that this feature does not currently work due to MNG-3236.
tokens String 2.0-alpha-6 The token set name to use when outputting the dependency tree. Possible values are whitespace, standard or extended, which use whitespace, standard or extended ASCII sets respectively.
Default value is: standard.
verbose boolean 2.0-alpha-6 Whether to include omitted nodes in the serialized dependency tree.
Default value is: false.

Parameter Details

appendOutput:

Whether to append outputs into the output file or overwrite it.
  • Type: boolean
  • Since: 2.2
  • Required: No
  • Expression: ${appendOutput}
  • Default: false

excludes:

A comma-separated list of artifacts to filter from the serialized dependency tree, or null not to filter any artifacts from the dependency tree. The artifact syntax is defined by StrictPatternExcludesArtifactFilter.
  • Type: java.lang.String
  • Since: 2.0-alpha-6
  • Required: No
  • Expression: ${excludes}

includes:

A comma-separated list of artifacts to filter the serialized dependency tree by, or null not to filter the dependency tree. The artifact syntax is defined by StrictPatternIncludesArtifactFilter.
  • Type: java.lang.String
  • Since: 2.0-alpha-6
  • Required: No
  • Expression: ${includes}

output:

Deprecated. use outputFile instead.
If specified, this parameter will cause the dependency tree to be written to the path specified, instead of writing to the console.
  • Type: java.io.File
  • Since: 2.0-alpha-5
  • Required: No
  • Expression: ${output}

outputFile:

If specified, this parameter will cause the dependency tree to be written to the path specified, instead of writing to the console.
  • Type: java.io.File
  • Since: 2.0-alpha-5
  • Required: No
  • Expression: ${outputFile}

outputType:

If specified, this parameter will cause the dependency tree to be written using the specified format. Currently supported format are text, dot, graphml and tgf. These formats can be plotted to image files. An example of how to plot a dot file using pygraphviz can be found here
  • Type: java.lang.String
  • Since: 2.1
  • Required: No
  • Expression: ${outputType}
  • Default: text

scope:

The scope to filter by when resolving the dependency tree, or null to include dependencies from all scopes. Note that this feature does not currently work due to MNG-3236.
  • Type: java.lang.String
  • Since: 2.0-alpha-5
  • Required: No
  • Expression: ${scope}

tokens:

The token set name to use when outputting the dependency tree. Possible values are whitespace, standard or extended, which use whitespace, standard or extended ASCII sets respectively.
  • Type: java.lang.String
  • Since: 2.0-alpha-6
  • Required: No
  • Expression: ${tokens}
  • Default: standard

verbose:

Whether to include omitted nodes in the serialized dependency tree.
  • Type: boolean
  • Since: 2.0-alpha-6
  • Required: No
  • Expression: ${verbose}
  • Default: false