remove plexus utils dependency (#1032)

This commit is contained in:
Elliotte Rusty Harold 2023-03-07 10:44:46 -05:00 committed by GitHub
parent c1dfb947b5
commit 009ec5dc41
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 6 deletions

View File

@ -31,10 +31,6 @@ under the License.
<name>Maven Artifact</name>
<dependencies>
<dependency>
<groupId>org.apache.maven</groupId>
<artifactId>plexus-utils</artifactId>
</dependency>
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-lang3</artifactId>

View File

@ -33,7 +33,6 @@ import org.apache.maven.artifact.versioning.ArtifactVersion;
import org.apache.maven.artifact.versioning.DefaultArtifactVersion;
import org.apache.maven.artifact.versioning.OverConstrainedVersionException;
import org.apache.maven.artifact.versioning.VersionRange;
import org.codehaus.plexus.util.StringUtils;
/**
* @author Jason van Zyl
@ -172,7 +171,7 @@ public class DefaultArtifact implements Artifact {
}
public boolean hasClassifier() {
return StringUtils.isNotEmpty(classifier);
return classifier != null && !classifier.isEmpty();
}
public String getScope() {