mirror of https://github.com/apache/maven.git
remove plexus utils dependency (#1032)
This commit is contained in:
parent
c1dfb947b5
commit
009ec5dc41
|
@ -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>
|
||||
|
|
|
@ -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() {
|
||||
|
|
Loading…
Reference in New Issue