dependency:analyze-dep-mgt

Full name:

org.apache.maven.plugins:maven-dependency-plugin:2.5.1:analyze-dep-mgt

Description:

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 useful for just detecting projects that override the dependencyManagement directly. Set ignoreDirect to false to detect these otherwise normal conditions.

Attributes:

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

Optional Parameters

Name Type Since Description
failBuild boolean 2.0-alpha-3 Fail the build if a problem is detected.
Default value is: false.
User property is: mdep.analyze.failBuild.
ignoreDirect boolean 2.0-alpha-3 Ignore Direct Dependency Overrides of dependencyManagement section.
Default value is: true.
User property is: mdep.analyze.ignore.direct.

Parameter Details

failBuild:

Fail the build if a problem is detected.
  • Type: boolean
  • Since: 2.0-alpha-3
  • Required: No
  • User Property: mdep.analyze.failBuild
  • Default: false

ignoreDirect:

Ignore Direct Dependency Overrides of dependencyManagement section.
  • Type: boolean
  • Since: 2.0-alpha-3
  • Required: No
  • User Property: mdep.analyze.ignore.direct
  • Default: true