dependency:analyze-only

Full name:

org.apache.maven.plugins:maven-dependency-plugin:2.5.1:analyze-only

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 in the build lifecycle, thus it assumes that the test-compile phase has been executed - use the dependency:analyze goal instead when running standalone.

Attributes:

  • Requires a Maven project to be executed.
  • Requires dependency resolution of artifacts in scope: test.
  • Since version: 2.0.
  • Binds by default to the lifecycle phase: verify.

Optional Parameters

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

Parameter Details

analyzer:

Project dependency analyzer to use (plexus component role-hint).
  • Type: java.lang.String
  • Since: 2.2
  • Required: No
  • User Property: analyzer
  • Default: default

failOnWarning:

Whether to fail the build if a dependency warning is found.
  • Type: boolean
  • Since: 2.0
  • Required: No
  • User Property: failOnWarning
  • Default: false

ignoreNonCompile:

Ignore Runtime,Provide,Test,System scopes for unused dependency analysis
  • Type: boolean
  • Since: 2.0
  • Required: No
  • User Property: ignoreNonCompile
  • Default: false

outputXML:

Output the xml for the missing dependencies
  • Type: boolean
  • Since: 2.0-alpha-5
  • Required: No
  • User Property: outputXML
  • Default: false

scriptableFlag:

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

scriptableOutput:

Output scriptable values
  • Type: boolean
  • Since: 2.0-alpha-5
  • Required: No
  • User Property: scriptableOutput
  • Default: false

verbose:

Output used dependencies
  • Type: boolean
  • Since: 2.0
  • Required: No
  • User Property: verbose
  • Default: false