in src/main/java/org/apache/maven/plugins/ear/util/ArtifactRepository.java [130:145]
public Set<Artifact> getArtifacts( String groupId, String artifactId, String type )
{
final Set<Artifact> result = new TreeSet<Artifact>();
for ( Artifact a : artifacts )
{
// If the groupId, the artifactId and if the
// artifact's type is known, then we have found a candidate.
if ( a.getGroupId().equals( groupId ) && a.getArtifactId().equals( artifactId )
&& artifactTypeMappingService.isMappedToType( type, a.getType() ) )
{
result.add( a );
}
}
return result;
}