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
1 changed files with 10 additions and 1 deletions

View File

@ -99,7 +99,16 @@ public class MavenMetadataSource
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 );
}