Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: maven-common-artifact-filters-1.2
-
Component/s: maven-common-artifact-filters
-
Labels:None
-
Patch Submitted:Yes
-
Number of attachments :
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.
Patch is attached.