in maven-3.1.x/src/main/java/org/apache/maven/shared/transfer/collection/internal/Maven31DependencyCollector.java [81:96]
public CollectResult collectDependencies( ProjectBuildingRequest buildingRequest,
DependableCoordinate root )
throws DependencyCollectionException
{
ArtifactHandler artifactHandler = artifactHandlerManager.getArtifactHandler( root.getType() );
String extension = artifactHandler != null ? artifactHandler.getExtension() : null;
Artifact aetherArtifact = new DefaultArtifact( root.getGroupId(), root.getArtifactId(), root.getClassifier(),
extension, root.getVersion() );
CollectRequest request = new CollectRequest();
request.setRoot( new Dependency( aetherArtifact, null ) );
return collectDependencies( buildingRequest, request );
}