o deal with classifiers, igor needs this and I will unify the method later.

git-svn-id: https://svn.apache.org/repos/asf/maven/components/branches/MNG-2766@775278 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Jason van Zyl 2009-05-15 18:27:20 +00:00
parent a742eb2cba
commit 6fbd31302f

View File

@ -99,7 +99,16 @@ public ResolutionGroup retrieve( Artifact artifact, ArtifactRepository localRepo
if ( effectiveScope != null )
{
Artifact dependencyArtifact = repositorySystem.createArtifact( d.getGroupId(), d.getArtifactId(), d.getVersion(), effectiveScope, d.getType() );
Artifact dependencyArtifact;
if ( d.getClassifier() != null )
{
dependencyArtifact = repositorySystem.createArtifactWithClassifier( d.getGroupId(), d.getArtifactId(), d.getVersion(), d.getType(), d.getClassifier() );
}
else
{
dependencyArtifact = repositorySystem.createArtifact( d.getGroupId(), d.getArtifactId(), d.getVersion(), effectiveScope, d.getType() );
}
artifacts.add( dependencyArtifact );
}