dependency:analyze

Full name:

org.apache.maven.plugins:maven-dependency-plugin:2.1:analyze

Description:

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.

Attributes:

  • Requires a Maven 2.0 project to be executed.
  • Requires dependency resolution of artifacts in scope: test.
  • Since version: 2.0-alpha-3.
  • Invokes the execution of the lifecycle phase test-compile prior to executing itself.

Optional Parameters

Name Type Since Description
failOnWarning boolean 2.0-alpha-3 Whether to fail the build if a dependency warning is found.
Default value is: false.
ignoreNonCompile boolean 2.0-alpha-3 Ignore Runtime,Provide,Test,System scopes for unused dependency analysis
Default value is: false.
outputXML boolean 2.0-alpha-5 Output the xml for the missing dependencies
Default value is: false.
scriptableFlag String 2.0-alpha-5 Flag to use for scriptable output
Default value is: $$$%%%.
scriptableOutput boolean 2.0-alpha-5 Output scriptable values
Default value is: false.
verbose boolean 2.0-alpha-3 Output used dependencies
Default value is: false.

Parameter Details

failOnWarning:

Whether to fail the build if a dependency warning is found.
  • Type: boolean
  • Since: 2.0-alpha-3
  • Required: No
  • Expression: ${failOnWarning}
  • Default: false

ignoreNonCompile:

Ignore Runtime,Provide,Test,System scopes for unused dependency analysis
  • Type: boolean
  • Since: 2.0-alpha-3
  • Required: No
  • Expression: ${ignoreNonCompile}
  • Default: false

outputXML:

Output the xml for the missing dependencies
  • Type: boolean
  • Since: 2.0-alpha-5
  • Required: No
  • Expression: ${outputXML}
  • Default: false

scriptableFlag:

Flag to use for scriptable output
  • Type: java.lang.String
  • Since: 2.0-alpha-5
  • Required: No
  • Expression: ${scriptableFlag}
  • Default: $$$%%%

scriptableOutput:

Output scriptable values
  • Type: boolean
  • Since: 2.0-alpha-5
  • Required: No
  • Expression: ${scriptableOutput}
  • Default: false

verbose:

Output used dependencies
  • Type: boolean
  • Since: 2.0-alpha-3
  • Required: No
  • Expression: ${verbose}
  • Default: false