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 da6d4c7a Cut another dependency on commons-lang3 (#481) da6d4c7a is described below commit da6d4c7a41dadc15781792fe66ac0ec62558405e Author: Elliotte Rusty Harold <elh...@users.noreply.github.com> AuthorDate: Tue Nov 19 12:34:18 2024 +0000 Cut another dependency on commons-lang3 (#481) --- .../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; }