This is an automated email from the ASF dual-hosted git repository. elharo pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/maven-dependency-plugin.git
The following commit(s) were added to refs/heads/master by this push: new 7b137a17 [MDEP-946] Add analyze exclusions to list of goals 7b137a17 is described below commit 7b137a17cc71b001e79992b755471a3fbb9702c8 Author: Elliotte Rusty Harold <elh...@ibiblio.org> AuthorDate: Wed Oct 16 07:34:50 2024 -0400 [MDEP-946] Add analyze exclusions to list of goals --- .../maven/plugins/dependency/exclusion/AnalyzeExclusionsMojo.java | 4 ++-- src/site/apt/index.apt.vm | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) 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 7c651567..e1641097 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 java.util.stream.Collectors.toSet; 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. * <p> * 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. * </p> * * @since 3.7.0 diff --git a/src/site/apt/index.apt.vm b/src/site/apt/index.apt.vm index 96fe6489..d987dff3 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.