This is an automated email from the ASF dual-hosted git repository. elharo pushed a commit to branch setdep in repository https://gitbox.apache.org/repos/asf/maven-dependency-plugin.git
commit 83fabaee53ae71d676f1765d40cb96d2c927ef6c Author: Elliotte Rusty Harold <elh...@ibiblio.org> AuthorDate: Tue Nov 19 19:32:19 2024 -0500 avoid StringUtils.stripEnd --- .../org/apache/maven/plugins/dependency/analyze/AnalyzeDepMgt.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/main/java/org/apache/maven/plugins/dependency/analyze/AnalyzeDepMgt.java b/src/main/java/org/apache/maven/plugins/dependency/analyze/AnalyzeDepMgt.java index 9cb79ece..4dac8dd6 100644 --- a/src/main/java/org/apache/maven/plugins/dependency/analyze/AnalyzeDepMgt.java +++ b/src/main/java/org/apache/maven/plugins/dependency/analyze/AnalyzeDepMgt.java @@ -28,7 +28,6 @@ import java.util.Map; import java.util.Set; import java.util.stream.Collectors; -import org.apache.commons.lang3.StringUtils; import org.apache.maven.artifact.Artifact; import org.apache.maven.model.Dependency; import org.apache.maven.model.DependencyManagement; @@ -146,7 +145,7 @@ public class AnalyzeDepMgt extends AbstractMojo { // log exclusion errors List<Artifact> exclusionErrors = getExclusionErrors(exclusions, allDependencyArtifacts); for (Artifact exclusion : exclusionErrors) { - getLog().info(StringUtils.stripEnd(getArtifactManagementKey(exclusion), ":") + getLog().info(getArtifactManagementKey(exclusion) + " was excluded in DepMgt, but version " + exclusion.getVersion() + " has been found in the dependency tree."); foundError = true; @@ -249,7 +248,7 @@ public class AnalyzeDepMgt extends AbstractMojo { "Invalid params: Artifact: " + dependencyArtifact + " Dependency: " + dependencyFromDepMgt); } - getLog().info("\tDependency: " + StringUtils.stripEnd(dependencyFromDepMgt.getManagementKey(), ":")); + getLog().info("\tDependency: " + dependencyFromDepMgt.getManagementKey()); getLog().info("\t\tDepMgt : " + dependencyFromDepMgt.getVersion()); getLog().info("\t\tResolved: " + dependencyArtifact.getBaseVersion()); }