@Test public void testSameClassifier() { Artifact main = newMainArtifact( "gid:aid:ext:cls:ver" ); Artifact sub = new SubArtifact( main, "*", "pom" ); assertEquals( "cls", sub.getClassifier() ); }
public String getClassifier() { return expand( classifier, mainArtifact.getClassifier() ); }
SubArtifact extends AbstractArtifact { public String getClassifier() { return expand( classifier, mainArtifact.getClassifier() ); } }
SubArtifact extends AbstractArtifact { public String getClassifier() { return expand( classifier, mainArtifact.getClassifier() ); } SubArtifact( Artifact mainArtifact, String classifier, String extension );  SubArtifact( Artifact mainArtifact, String classifier, String extension, File file );  SubArtifact( Artifact mainArtifact, String classifier, String extension, Map<String, String> properties );  SubArtifact( Artifact mainArtifact, String classifier, String extension, Map<String, String> properties,
                        File file ); private  SubArtifact( Artifact mainArtifact, String classifier, String extension, File file,
                         Map<String, String> properties ); }
SubArtifact extends AbstractArtifact { public String getClassifier() { return expand( classifier, mainArtifact.getClassifier() ); } SubArtifact( Artifact mainArtifact, String classifier, String extension );  SubArtifact( Artifact mainArtifact, String classifier, String extension, File file );  SubArtifact( Artifact mainArtifact, String classifier, String extension, Map<String, String> properties );  SubArtifact( Artifact mainArtifact, String classifier, String extension, Map<String, String> properties,
                        File file ); private  SubArtifact( Artifact mainArtifact, String classifier, String extension, File file,
                         Map<String, String> properties ); String getGroupId(); String getArtifactId(); String getVersion(); String getBaseVersion(); boolean isSnapshot(); String getClassifier(); String getExtension(); File getFile(); Artifact setFile( File file ); Map<String, String> getProperties(); Artifact setProperties( Map<String, String> properties ); }
SubArtifact extends AbstractArtifact { public String getClassifier() { return expand( classifier, mainArtifact.getClassifier() ); } SubArtifact( Artifact mainArtifact, String classifier, String extension );  SubArtifact( Artifact mainArtifact, String classifier, String extension, File file );  SubArtifact( Artifact mainArtifact, String classifier, String extension, Map<String, String> properties );  SubArtifact( Artifact mainArtifact, String classifier, String extension, Map<String, String> properties,
                        File file ); private  SubArtifact( Artifact mainArtifact, String classifier, String extension, File file,
                         Map<String, String> properties ); String getGroupId(); String getArtifactId(); String getVersion(); String getBaseVersion(); boolean isSnapshot(); String getClassifier(); String getExtension(); File getFile(); Artifact setFile( File file ); Map<String, String> getProperties(); Artifact setProperties( Map<String, String> properties );  }