From b2bc345a606f3944fc89f708b00d1d3933fdd079 Mon Sep 17 00:00:00 2001 From: Steven Rowe Date: Thu, 11 Jul 2013 04:03:24 +0000 Subject: [PATCH] SOLR-4916: Move MiniDfsCluster test dependencies from solr test-framework to solr-core; download solr-core test dependencies to solr/core/test-lib/ instead of solr/core/lib/; download DIH test dependencies to solr/contrib/dataimporthandler/test-lib instead of [...]/lib/ git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1502105 13f79535-47bb-0310-9956-ffa450edef68 --- build.xml | 2 +- .../.idea/libraries/Solr_DIH_test_library.xml | 10 ++ .../libraries/Solr_core_test_library.xml | 10 ++ .../dataimporthandler/dataimporthandler.iml | 1 + .../solr/core/src/test/solr-core-tests.iml | 1 + .../maven/solr/core/src/test/pom.xml.template | 142 ++++++++++++++++++ .../solr/test-framework/pom.xml.template | 138 ----------------- lucene/common-build.xml | 2 +- solr/contrib/dataimporthandler/build.xml | 16 +- solr/contrib/dataimporthandler/ivy.xml | 19 ++- solr/core/build.xml | 20 ++- solr/core/ivy.xml | 75 +++++---- solr/test-framework/ivy.xml | 14 +- solr/webapp/build.xml | 7 +- 14 files changed, 261 insertions(+), 196 deletions(-) create mode 100644 dev-tools/idea/.idea/libraries/Solr_DIH_test_library.xml create mode 100644 dev-tools/idea/.idea/libraries/Solr_core_test_library.xml diff --git a/build.xml b/build.xml index 68fca87d4a3..37118c09251 100644 --- a/build.xml +++ b/build.xml @@ -205,7 +205,7 @@ - + diff --git a/dev-tools/idea/.idea/libraries/Solr_DIH_test_library.xml b/dev-tools/idea/.idea/libraries/Solr_DIH_test_library.xml new file mode 100644 index 00000000000..304589ccb3d --- /dev/null +++ b/dev-tools/idea/.idea/libraries/Solr_DIH_test_library.xml @@ -0,0 +1,10 @@ + + + + + + + + + + \ No newline at end of file diff --git a/dev-tools/idea/.idea/libraries/Solr_core_test_library.xml b/dev-tools/idea/.idea/libraries/Solr_core_test_library.xml new file mode 100644 index 00000000000..60937e90bef --- /dev/null +++ b/dev-tools/idea/.idea/libraries/Solr_core_test_library.xml @@ -0,0 +1,10 @@ + + + + + + + + + + \ No newline at end of file diff --git a/dev-tools/idea/solr/contrib/dataimporthandler/dataimporthandler.iml b/dev-tools/idea/solr/contrib/dataimporthandler/dataimporthandler.iml index 8c737ae7540..17eed225e48 100644 --- a/dev-tools/idea/solr/contrib/dataimporthandler/dataimporthandler.iml +++ b/dev-tools/idea/solr/contrib/dataimporthandler/dataimporthandler.iml @@ -15,6 +15,7 @@ + diff --git a/dev-tools/idea/solr/core/src/test/solr-core-tests.iml b/dev-tools/idea/solr/core/src/test/solr-core-tests.iml index 0a492151afb..ed9f86f7c9f 100644 --- a/dev-tools/idea/solr/core/src/test/solr-core-tests.iml +++ b/dev-tools/idea/solr/core/src/test/solr-core-tests.iml @@ -11,6 +11,7 @@ + diff --git a/dev-tools/maven/solr/core/src/test/pom.xml.template b/dev-tools/maven/solr/core/src/test/pom.xml.template index 5e09174ea2f..18f300424cf 100644 --- a/dev-tools/maven/solr/core/src/test/pom.xml.template +++ b/dev-tools/maven/solr/core/src/test/pom.xml.template @@ -56,6 +56,148 @@ easymock test + + org.apache.hadoop + hadoop-common + tests + test + + + javax.servlet + servlet-api + + + org.apache.commons + commons-math + + + xmlenc + xmlenc + + + commons-httpclient + commons-httpclient + + + commons-net + commons-net + + + com.sun.jersey + jersey-json + + + com.sun.jersey + jersey-server + + + tomcat + jasper-compiler + + + tomcat + jasper-runtime + + + commons-el + commons-el + + + commons-logging + commons-logging + + + net.java.dev.jets3t + jets3t + + + commons-digester + commons-digester + + + org.codehaus.jackson + jackson-core-asl + + + org.codehaus.jackson + jackson-mapper-asl + + + org.apache.avro + avro + + + net.sf.kosmosfs + kfs + + + com.jcraft + jsch + + + commons-beanutils + commons-beanutils-core + + + + + org.apache.hadoop + hadoop-hdfs + tests + test + + + javax.servlet + servlet-api + + + com.sun.jersey + jersey-server + + + commons-logging + commons-logging + + + org.codehaus.jackson + jackson-core-asl + + + org.codehaus.jackson + jackson-mapper-asl + + + tomcat + jasper-runtime + + + xmlenc + xmlenc + + + commons-daemon + commons-daemon + + + + + + + org.mortbay.jetty + jetty + test + + + org.mortbay.jetty + servlet-api + + + + + org.mortbay.jetty + jetty-util + test + diff --git a/dev-tools/maven/solr/test-framework/pom.xml.template b/dev-tools/maven/solr/test-framework/pom.xml.template index 5e3b5370426..4125238ac0f 100644 --- a/dev-tools/maven/solr/test-framework/pom.xml.template +++ b/dev-tools/maven/solr/test-framework/pom.xml.template @@ -64,128 +64,6 @@ junit junit - - org.apache.hadoop - hadoop-common - tests - - - javax.servlet - servlet-api - - - org.apache.commons - commons-math - - - xmlenc - xmlenc - - - commons-httpclient - commons-httpclient - - - commons-net - commons-net - - - com.sun.jersey - jersey-json - - - com.sun.jersey - jersey-server - - - tomcat - jasper-compiler - - - tomcat - jasper-runtime - - - commons-el - commons-el - - - commons-logging - commons-logging - - - net.java.dev.jets3t - jets3t - - - commons-digester - commons-digester - - - org.codehaus.jackson - jackson-core-asl - - - org.codehaus.jackson - jackson-mapper-asl - - - org.apache.avro - avro - - - net.sf.kosmosfs - kfs - - - com.jcraft - jsch - - - commons-beanutils - commons-beanutils-core - - - - - org.apache.hadoop - hadoop-hdfs - tests - - - javax.servlet - servlet-api - - - com.sun.jersey - jersey-server - - - commons-logging - commons-logging - - - org.codehaus.jackson - jackson-core-asl - - - org.codehaus.jackson - jackson-mapper-asl - - - tomcat - jasper-runtime - - - xmlenc - xmlenc - - - commons-daemon - commons-daemon - - - org.eclipse.jetty jetty-servlet @@ -195,22 +73,6 @@ jetty-util - - - org.mortbay.jetty - jetty - - - org.mortbay.jetty - servlet-api - - - - - org.mortbay.jetty - jetty-util - - diff --git a/lucene/common-build.xml b/lucene/common-build.xml index 359212a0730..2020969b321 100644 --- a/lucene/common-build.xml +++ b/lucene/common-build.xml @@ -356,7 +356,7 @@ - diff --git a/solr/contrib/dataimporthandler/build.xml b/solr/contrib/dataimporthandler/build.xml index 308851ed52d..87e365faf12 100644 --- a/solr/contrib/dataimporthandler/build.xml +++ b/solr/contrib/dataimporthandler/build.xml @@ -17,7 +17,7 @@ limitations under the License. --> - + Data Import Handler @@ -26,6 +26,20 @@ + + + + + + + + + + + + + diff --git a/solr/contrib/dataimporthandler/ivy.xml b/solr/contrib/dataimporthandler/ivy.xml index 7331edde3be..202c4efa07e 100644 --- a/solr/contrib/dataimporthandler/ivy.xml +++ b/solr/contrib/dataimporthandler/ivy.xml @@ -17,10 +17,17 @@ under the License. --> - - - - - - + + + + + + + + + + + + + diff --git a/solr/core/build.xml b/solr/core/build.xml index 32462398aea..053e45ccd64 100644 --- a/solr/core/build.xml +++ b/solr/core/build.xml @@ -15,16 +15,23 @@ See the License for the specific language governing permissions and limitations under the License. --> - + Solr Core + + + + + + + @@ -43,8 +50,13 @@ - - + + + + + + @@ -67,7 +79,7 @@ diff --git a/solr/core/ivy.xml b/solr/core/ivy.xml index b1d974b2960..488266bbc90 100644 --- a/solr/core/ivy.xml +++ b/solr/core/ivy.xml @@ -19,31 +19,54 @@ ]> - - + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/solr/test-framework/ivy.xml b/solr/test-framework/ivy.xml index 461d1cd4428..0fccb0fe8e6 100644 --- a/solr/test-framework/ivy.xml +++ b/solr/test-framework/ivy.xml @@ -19,7 +19,7 @@ ]> - + @@ -40,18 +40,6 @@ - - - - - - - - - - - - diff --git a/solr/webapp/build.xml b/solr/webapp/build.xml index 4ad4b0516d4..6a519b7143b 100644 --- a/solr/webapp/build.xml +++ b/solr/webapp/build.xml @@ -50,12 +50,7 @@ - - - - - - +