From 6fbd31302f3717c9373f33bd14a3b41da4bcdbde Mon Sep 17 00:00:00 2001 From: Jason van Zyl Date: Fri, 15 May 2009 18:27:20 +0000 Subject: [PATCH] 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 --- .../maven/project/artifact/MavenMetadataSource.java | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/maven-core/src/main/java/org/apache/maven/project/artifact/MavenMetadataSource.java b/maven-core/src/main/java/org/apache/maven/project/artifact/MavenMetadataSource.java index 40ff2b02b4..728ca60071 100644 --- a/maven-core/src/main/java/org/apache/maven/project/artifact/MavenMetadataSource.java +++ b/maven-core/src/main/java/org/apache/maven/project/artifact/MavenMetadataSource.java @@ -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 ); }