diff --git a/pom.xml b/pom.xml
index f23a6d61d..005c30a84 100644
--- a/pom.xml
+++ b/pom.xml
@@ -183,7 +183,7 @@ under the License.
org.eclipse.sisu.plexus
provided
-
+
org.apache.commons
commons-lang3
@@ -258,12 +258,6 @@ under the License.
3.4.2
-
- org.apache.commons
- commons-lang3
- 3.13.0
-
-
org.apache.maven.plugin-tools
diff --git a/src/main/java/org/apache/maven/plugins/dependency/GetMojo.java b/src/main/java/org/apache/maven/plugins/dependency/GetMojo.java
index 61fb05fd7..85e0cd105 100644
--- a/src/main/java/org/apache/maven/plugins/dependency/GetMojo.java
+++ b/src/main/java/org/apache/maven/plugins/dependency/GetMojo.java
@@ -24,7 +24,6 @@
import java.util.regex.Matcher;
import java.util.regex.Pattern;
-import org.apache.commons.lang3.StringUtils;
import org.apache.maven.artifact.handler.ArtifactHandler;
import org.apache.maven.artifact.handler.manager.ArtifactHandlerManager;
import org.apache.maven.artifact.repository.ArtifactRepository;
@@ -130,7 +129,7 @@ public void execute() throws MojoExecutionException, MojoFailureException {
+ "e.g. -Dartifact=org.apache.maven.plugins:maven-downloader-plugin:1.0");
}
if (artifact != null) {
- String[] tokens = StringUtils.split(artifact, ":");
+ String[] tokens = artifact.split(":");
if (tokens.length < 3 || tokens.length > 5) {
throw new MojoFailureException("Invalid artifact, you must specify "
+ "groupId:artifactId:version[:packaging[:classifier]] " + artifact);
@@ -157,7 +156,7 @@ public void execute() throws MojoExecutionException, MojoFailureException {
if (remoteRepositories != null) {
// Use the same format as in the deploy plugin id::layout::url
- String[] repos = StringUtils.split(remoteRepositories, ",");
+ String[] repos = remoteRepositories.split(",");
for (String repo : repos) {
repoList.add(parseRepository(repo, always));
}
@@ -214,7 +213,7 @@ ArtifactRepository parseRepository(String repo, ArtifactRepositoryPolicy policy)
}
id = matcher.group(1).trim();
- if (!StringUtils.isEmpty(matcher.group(2))) {
+ if (matcher.group(2) != null && !matcher.group(2).isEmpty()) {
layout = getLayout(matcher.group(2).trim());
}
url = matcher.group(3).trim();