Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
-
Patch
Description
If artifact has no classifier attribute when ClassifierFilter throws NullPointerException rather than skip this artifact (because it's classifier doesn't equals required).
Changes in TestClassifierFilter TestCase:
org.apache.maven.shared.artifact.filter.collection.TestClassifierFilter.java
protected void setUp() throws Exception { .... artifacts.add(new DefaultArtifact("g", "e", VersionRange.createFromVersion("1.0"), "compile", "jar", null, new DefaultArtifactHandler("a"))); }
P.S. ArtifactStubFactory.getClassifiedArtifacts() should be changed to return artifact with null classifier.