This is an automated email from the ASF dual-hosted git repository.

elharo pushed a commit to branch lang5
in repository https://gitbox.apache.org/repos/asf/maven-dependency-plugin.git

commit a272fb30877441fc2251d66013fd04e9baf92e8a
Author: Elliotte Rusty Harold <elh...@ibiblio.org>
AuthorDate: Tue Nov 19 06:39:16 2024 -0500

    Cut another dependency on commons-lang3
---
 .../dependency/fromDependencies/TestCopyDependenciesMojo2.java        | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git 
a/src/test/java/org/apache/maven/plugins/dependency/fromDependencies/TestCopyDependenciesMojo2.java
 
b/src/test/java/org/apache/maven/plugins/dependency/fromDependencies/TestCopyDependenciesMojo2.java
index f46370d2..cb852a1e 100644
--- 
a/src/test/java/org/apache/maven/plugins/dependency/fromDependencies/TestCopyDependenciesMojo2.java
+++ 
b/src/test/java/org/apache/maven/plugins/dependency/fromDependencies/TestCopyDependenciesMojo2.java
@@ -26,7 +26,6 @@ import java.nio.file.Paths;
 import java.util.Collection;
 import java.util.Set;
 
-import org.apache.commons.lang3.StringUtils;
 import org.apache.maven.artifact.Artifact;
 import org.apache.maven.artifact.factory.ArtifactFactory;
 import org.apache.maven.artifact.metadata.ArtifactMetadata;
@@ -53,6 +52,7 @@ public class TestCopyDependenciesMojo2 extends 
AbstractDependencyMojoTestCase {
 
     private CopyDependenciesMojo mojo;
 
+    @Override
     protected void setUp() throws Exception {
         // required for mojo lookups to work
         super.setUp("copy-dependencies", true);
@@ -272,7 +272,7 @@ public class TestCopyDependenciesMojo2 extends 
AbstractDependencyMojoTestCase {
         snapshot.setBuildNumber(1);
         RepositoryMetadata metadata = new 
SnapshotArtifactRepositoryMetadata(expandedSnapshot, snapshot);
         String newVersion = snapshot.getTimestamp() + "-" + 
snapshot.getBuildNumber();
-        expandedSnapshot.setResolvedVersion(StringUtils.replace(baseVersion, 
Artifact.SNAPSHOT_VERSION, newVersion));
+        
expandedSnapshot.setResolvedVersion(baseVersion.replace(Artifact.SNAPSHOT_VERSION,
 newVersion));
         expandedSnapshot.addMetadata(metadata);
         return expandedSnapshot;
     }

Reply via email to