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 8853304b avoid StringUtils.stripEnd (#485) 8853304b is described below commit 8853304bfbaf5811a5439ecbdaad27a4463f8bb1 Author: Elliotte Rusty Harold <elh...@users.noreply.github.com> AuthorDate: Sun Nov 24 14:57:02 2024 +0000 avoid StringUtils.stripEnd (#485) --- .../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()); }