From bd5c7d0ea20d1aead6cb1ccf063169b762325786 Mon Sep 17 00:00:00 2001 From: David Pilato Date: Mon, 15 Jun 2015 17:08:15 +0200 Subject: [PATCH] [maven] clean pom.xml In Maven parent project, in dependency management, we should only declare which versions of 3rd party jars we want to use but not force any scope. It makes then more obvious in modules what is exactly the scope of any dependency. For example, one could imagine importing `jimfs` as a `compile` dependency in another module/plugin with: ```xml com.google.jimfs jimfs ``` But it won't work as expected as the default maven `scope` should be `compile` but here it's `test` as defined in the parent project. So, if you want to use this lib for tests, you should simply define: ```xml com.google.jimfs jimfs test ``` We also remove `maven-s3-wagon` from gce plugin as it's not used. --- core/pom.xml | 50 ++------------------------------- plugins/cloud-gce/pom.xml | 7 ----- plugins/lang-javascript/pom.xml | 2 -- plugins/pom.xml | 4 +++ pom.xml | 22 +-------------- 5 files changed, 7 insertions(+), 78 deletions(-) diff --git a/core/pom.xml b/core/pom.xml index 426d4c4d125..70ccb56248f 100644 --- a/core/pom.xml +++ b/core/pom.xml @@ -66,69 +66,56 @@ org.apache.lucene lucene-core - compile org.apache.lucene lucene-backward-codecs - compile org.apache.lucene lucene-analyzers-common - compile org.apache.lucene lucene-queries - compile org.apache.lucene lucene-memory - compile org.apache.lucene lucene-highlighter - compile org.apache.lucene lucene-queryparser - compile org.apache.lucene lucene-suggest - compile org.apache.lucene lucene-join - compile org.apache.lucene lucene-spatial - compile org.apache.lucene lucene-expressions - compile true com.spatial4j spatial4j - compile true com.vividsolutions jts - compile true @@ -140,45 +127,34 @@ - + com.google.guava guava - compile - com.carrotsearch hppc - joda-time joda-time - compile org.joda joda-convert - compile - com.fasterxml.jackson.core jackson-core - compile - com.fasterxml.jackson.dataformat jackson-dataformat-smile - compile - com.fasterxml.jackson.dataformat jackson-dataformat-yaml - compile com.fasterxml.jackson.core @@ -186,83 +162,61 @@ - com.fasterxml.jackson.dataformat jackson-dataformat-cbor - compile - io.netty netty - compile - com.ning compress-lzf - compile - com.tdunning t-digest - compile - org.apache.commons commons-lang3 - commons-cli commons-cli - - + org.codehaus.groovy groovy-all indy - compile true - log4j log4j - compile true - log4j apache-log4j-extras - compile true - org.slf4j slf4j-api - compile true - net.java.dev.jna jna - compile true - org.fusesource sigar - compile true diff --git a/plugins/cloud-gce/pom.xml b/plugins/cloud-gce/pom.xml index ca9206abccc..926a94a2dab 100644 --- a/plugins/cloud-gce/pom.xml +++ b/plugins/cloud-gce/pom.xml @@ -47,13 +47,6 @@ governing permissions and limitations under the License. --> - - - org.kuali.maven.wagons - maven-s3-wagon - 1.1.19 - - org.apache.maven.plugins diff --git a/plugins/lang-javascript/pom.xml b/plugins/lang-javascript/pom.xml index 7179582953c..f9573271de1 100644 --- a/plugins/lang-javascript/pom.xml +++ b/plugins/lang-javascript/pom.xml @@ -26,8 +26,6 @@ org.mozilla rhino 1.7R4 - - diff --git a/plugins/pom.xml b/plugins/pom.xml index 7e54c2207be..bb314ec0f2d 100644 --- a/plugins/pom.xml +++ b/plugins/pom.xml @@ -27,14 +27,17 @@ org.hamcrest hamcrest-all + test junit junit + test org.apache.lucene lucene-test-framework + test org.elasticsearch @@ -44,6 +47,7 @@ org.elasticsearch elasticsearch test-jar + test log4j diff --git a/pom.xml b/pom.xml index e0e803278f4..c6bb63f7620 100644 --- a/pom.xml +++ b/pom.xml @@ -132,35 +132,30 @@ com.carrotsearch.randomizedtesting randomizedtesting-runner ${testframework.version} - test org.hamcrest hamcrest-all 1.3 - test junit junit 4.11 - test com.google.jimfs jimfs 1.0 - test org.apache.lucene lucene-test-framework ${lucene.maven.version} - test @@ -168,12 +163,12 @@ elasticsearch ${elasticsearch.version} + org.elasticsearch elasticsearch ${elasticsearch.version} test-jar - test @@ -255,13 +250,11 @@ com.spatial4j spatial4j 0.4.1 - true com.vividsolutions jts 1.13 - true xerces @@ -274,35 +267,29 @@ com.github.spullara.mustache.java compiler 0.8.13 - true - org.apache.lucene lucene-analyzers-phonetic ${lucene.maven.version} - org.apache.lucene lucene-analyzers-kuromoji ${lucene.maven.version} - org.apache.lucene lucene-analyzers-stempel ${lucene.maven.version} - org.apache.lucene lucene-analyzers-icu ${lucene.maven.version} - org.apache.lucene lucene-analyzers-smartcn @@ -396,35 +383,30 @@ groovy-all 2.4.0 indy - true log4j log4j ${log4j.version} - true log4j apache-log4j-extras ${log4j.version} - true org.slf4j slf4j-api ${slf4j.version} - true org.slf4j slf4j-log4j12 ${slf4j.version} - true @@ -438,7 +420,6 @@ org.fusesource sigar 1.6.4 - true @@ -459,7 +440,6 @@ org.jacoco.agent runtime 0.6.4.201312101107 - test