diff --git a/src/main/java/org/apache/maven/plugins/dependency/analyze/AbstractAnalyzeMojo.java b/src/main/java/org/apache/maven/plugins/dependency/analyze/AbstractAnalyzeMojo.java index 1d5d2553d..05b9cb3c4 100644 --- a/src/main/java/org/apache/maven/plugins/dependency/analyze/AbstractAnalyzeMojo.java +++ b/src/main/java/org/apache/maven/plugins/dependency/analyze/AbstractAnalyzeMojo.java @@ -29,7 +29,6 @@ import java.util.Map; import java.util.Set; -import org.apache.commons.lang3.StringUtils; import org.apache.maven.artifact.Artifact; import org.apache.maven.artifact.resolver.filter.ArtifactFilter; import org.apache.maven.plugin.AbstractMojo; @@ -512,7 +511,7 @@ private void writeDependencyXML(Set artifacts) { writer.startElement("version"); writer.writeText(artifact.getBaseVersion()); String classifier = artifact.getClassifier(); - if (StringUtils.isNotBlank(classifier)) { + if (classifier != null && !classifier.trim().isEmpty()) { writer.startElement("classifier"); writer.writeText(artifact.getClassifier()); writer.endElement();