mirror of https://github.com/apache/maven.git
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:
parent
a742eb2cba
commit
6fbd31302f
|
@ -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 );
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue