From 2559249eed10a277da529440f02005ac409953cd Mon Sep 17 00:00:00 2001 From: Oleg Gusakov Date: Tue, 24 Mar 2009 04:55:05 +0000 Subject: [PATCH] added ad-hoc processing for test-jar type which was coming incorrectly git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@757664 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/maven/mercury/MavenDomainModel.java | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/maven-mercury/src/main/java/org/apache/maven/mercury/MavenDomainModel.java b/maven-mercury/src/main/java/org/apache/maven/mercury/MavenDomainModel.java index 131fda11bf..ff3aeb6aee 100644 --- a/maven-mercury/src/main/java/org/apache/maven/mercury/MavenDomainModel.java +++ b/maven-mercury/src/main/java/org/apache/maven/mercury/MavenDomainModel.java @@ -229,7 +229,15 @@ public final class MavenDomainModel } else if ( mp.getUri().equals( ProjectUri.Dependencies.Dependency.type ) ) { - metadata.setType( mp.getResolvedValue() ); + String val = mp.getResolvedValue(); + // 2009-03-23 Oleg: TODO ask Shane where this really belongs? + if( "test-jar".equals( val ) ) + { + metadata.setType( "jar" ); + metadata.setClassifier( "tests" ); + } + else + metadata.setType( val ); } else if ( mp.getUri().equals( ProjectUri.Dependencies.Dependency.optional ) ) {