diff --git a/src/main/java/org/apache/maven/plugins/dependency/exclusion/AnalyzeExclusionsMojo.java b/src/main/java/org/apache/maven/plugins/dependency/exclusion/AnalyzeExclusionsMojo.java index 7c6515674..e16410979 100644 --- a/src/main/java/org/apache/maven/plugins/dependency/exclusion/AnalyzeExclusionsMojo.java +++ b/src/main/java/org/apache/maven/plugins/dependency/exclusion/AnalyzeExclusionsMojo.java @@ -46,10 +46,10 @@ import static org.apache.maven.plugins.dependency.exclusion.Coordinates.coordinates; /** - * Analyzes the exclusions defined on dependencies in this project and reports if any of them are invalid. + * Analyzes the exclusions defined on dependencies in this project and reports if any of them are unneeded. *
* Relevant use case is when an artifact in a later version has removed usage of a dependency, making the exclusion no - * longer valid. + * longer necessary. *
* * @since 3.7.0 diff --git a/src/site/apt/index.apt.vm b/src/site/apt/index.apt.vm index 96fe64895..d987dff36 100644 --- a/src/site/apt/index.apt.vm +++ b/src/site/apt/index.apt.vm @@ -40,6 +40,8 @@ ${project.name} *{{{./analyze-dep-mgt-mojo.html}dependency:analyze-dep-mgt}} analyzes the project's dependencies and lists mismatches between resolved dependencies and those listed in your dependencyManagement section. + *{{{./analyze-exclusions.html}dependency:analyze-exclusions}} analyzes the exclusions on dependencies and checks if the artifact actually brings in the given dependency. + *{{{./analyze-only-mojo.html}dependency:analyze-only}} is the same as analyze, but is meant to be bound in a pom. It does not fork the build and execute test-compile.