From b383f4a044f21db931e733794930d8567b9b0170 Mon Sep 17 00:00:00 2001 From: Steven Rowe Date: Sat, 21 Jan 2012 00:31:03 +0000 Subject: [PATCH] Added a junit test scope dependency in the grandparent POM to work around a Maven 2.2.X bug in which transitive test dependency resolution omits junit as duplicate everywhere it occurs, resulting in the absence of the junit jar from the test classpath, and then test compilation failure. This manifested only in Solr's clustering contrib, but I'm putting it in the grandfather POM to insure it doesn't happen elsewhere. Under Maven 3.0.4, this behavior no longer occurs, so when we upgrade the minimum Maven version to 3.0.4+, the junit test scope dependency in the grandfather POM can be removed. git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1234219 13f79535-47bb-0310-9956-ffa450edef68 --- dev-tools/maven/pom.xml.template | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/dev-tools/maven/pom.xml.template b/dev-tools/maven/pom.xml.template index 8e122923f33..c1f3a0faf83 100644 --- a/dev-tools/maven/pom.xml.template +++ b/dev-tools/maven/pom.xml.template @@ -362,6 +362,19 @@ + + + + + + + + + junit + junit + test + + lucene/build/lucene-parent @@ -385,6 +398,11 @@ ${java.compat.version} + + org.apache.maven.plugins + maven-dependency-plugin + 2.4 + org.apache.maven.plugins maven-deploy-plugin