From c8e3e4d7c321e58c5ea9a289a07913664dc00455 Mon Sep 17 00:00:00 2001 From: "sandro.labruzzo" Date: Thu, 24 Oct 2019 10:20:31 +0200 Subject: [PATCH] Refactoring dependencies versions --- dhp-applications/dhp-collector-worker/pom.xml | 37 +-------- dhp-applications/dhp-is-mapper/pom.xml | 40 ++++++++++ dhp-applications/pom.xml | 25 +++--- dhp-common/pom.xml | 9 --- dhp-schemas/pom.xml | 62 +++++++++++++++ pom.xml | 77 ++++++++++++++++++- 6 files changed, 188 insertions(+), 62 deletions(-) create mode 100644 dhp-applications/dhp-is-mapper/pom.xml diff --git a/dhp-applications/dhp-collector-worker/pom.xml b/dhp-applications/dhp-collector-worker/pom.xml index ac4d4437b4..07008b56f0 100644 --- a/dhp-applications/dhp-collector-worker/pom.xml +++ b/dhp-applications/dhp-collector-worker/pom.xml @@ -80,71 +80,36 @@ - - eu.dnetlib.dhp - dhp-common - commons-cli commons-cli - 1.4 org.apache.hadoop hadoop-client - 2.6.0-cdh5.9.2 com.fasterxml.jackson.core jackson-core - 2.9.8 com.fasterxml.jackson.core jackson-annotations - 2.9.0 com.fasterxml.jackson.core jackson-databind - 2.9.8 jaxen jaxen - 1.1.6 dom4j dom4j - 1.6.1 - compile - - - com.fasterxml.jackson.core - jackson-databind - 2.9.8 - compile - - - org.mockito - mockito-core - test + - - - - - UTF-8 - UTF-8 - cdh5.9.2 - 2.6.0-${dhp.cdh.version} - 2.2.0 - 2.11.8 - - - \ No newline at end of file diff --git a/dhp-applications/dhp-is-mapper/pom.xml b/dhp-applications/dhp-is-mapper/pom.xml new file mode 100644 index 0000000000..b30e84a38e --- /dev/null +++ b/dhp-applications/dhp-is-mapper/pom.xml @@ -0,0 +1,40 @@ + + + + dhp-applications + eu.dnetlib.dhp + 1.0.0-SNAPSHOT + + 4.0.0 + + dhp-is-mapper + + + + + org.apache.spark + spark-core_2.11 + + + org.apache.spark + spark-sql_2.11 + + + + eu.dnetlib.dhp + dhp-common + 1.0.0-SNAPSHOT + + + + eu.dnetlib.dhp + dhp-schemas + + + + + + + \ No newline at end of file diff --git a/dhp-applications/pom.xml b/dhp-applications/pom.xml index 30f972ccd2..12b0b9aded 100644 --- a/dhp-applications/pom.xml +++ b/dhp-applications/pom.xml @@ -10,28 +10,23 @@ dhp-applications pom + dhp-collector-worker + dhp-is-mapper - - - - eu.dnetlib.dhp - dhp-common - 1.0.0-SNAPSHOT - - - org.mockito - mockito-core - 2.7.22 - test - - - + + + eu.dnetlib.dhp + dhp-common + 1.0.0-SNAPSHOT + + + diff --git a/dhp-common/pom.xml b/dhp-common/pom.xml index 42acacb8a6..d2aa039269 100644 --- a/dhp-common/pom.xml +++ b/dhp-common/pom.xml @@ -18,7 +18,6 @@ commons-cli commons-cli - 1.4 org.apache.commons @@ -31,29 +30,21 @@ javax.persistence javax.persistence-api - 2.2 - provided com.fasterxml.jackson.core jackson-databind - 2.6.5 - provided - com.rabbitmq amqp-client - 5.6.0 commons-io commons-io - 2.4 - test diff --git a/dhp-schemas/pom.xml b/dhp-schemas/pom.xml index 5c5b804a7c..6ba9dead75 100644 --- a/dhp-schemas/pom.xml +++ b/dhp-schemas/pom.xml @@ -14,8 +14,70 @@ dhp-schemas jar + + + dnet-plugin + dnet plugin repository + http://maven.research-infrastructures.eu/nexus/content/repositories/dnet4-bootstrap-release + default + + + + + + eu.dnetlib + protoc-jar-maven-plugin + 1.1.0 + + + generate-sources + + run + + + ${google.protobuf.version} + + src/main/resources + + src/gen/java + + + + + + + + + com.fasterxml.jackson.core + jackson-core + + + com.fasterxml.jackson.core + jackson-annotations + + + com.fasterxml.jackson.core + jackson-databind + + + commons-io + commons-io + + + + com.google.protobuf + protobuf-java + + + com.googlecode.protobuf-java-format + protobuf-java-format + 1.2 + + + + diff --git a/pom.xml b/pom.xml index 04fc87611c..f426b333eb 100644 --- a/pom.xml +++ b/pom.xml @@ -21,9 +21,10 @@ dhp-build + dhp-schemas dhp-common dhp-workflows - dhp-applications + dhp-applications @@ -115,6 +116,12 @@ ${dhp.hadoop.version} provided + + org.apache.hadoop + hadoop-client + ${dhp.hadoop.version} + provided + org.apache.spark spark-core_2.11 @@ -140,6 +147,12 @@ 1.9 + + commons-io + commons-io + 2.4 + + commons-cli commons-cli @@ -177,6 +190,38 @@ test + + com.fasterxml.jackson.core + jackson-core + ${dhp.jackson.version} + provided + + + com.fasterxml.jackson.core + jackson-annotations + ${dhp.jackson.version} + provided + + + com.fasterxml.jackson.core + jackson-databind + ${dhp.jackson.version} + provided + + + + javax.persistence + javax.persistence-api + 2.2 + provided + + + + com.rabbitmq + amqp-client + 5.6.0 + + org.apache.oozie oozie-client @@ -191,6 +236,12 @@ + + com.google.protobuf + protobuf-java + ${google.protobuf.version} + + @@ -233,6 +284,27 @@ + + eu.dnetlib + protoc-jar-maven-plugin + 1.1.0 + + + generate-sources + + run + + + ${google.protobuf.version} + + src/main/resources + + src/gen/java + + + + + org.apache.maven.plugins maven-surefire-plugin @@ -368,9 +440,10 @@ 2.6.0-${dhp.cdh.version} 4.1.0-${dhp.cdh.version} 2.2.0 - + 2.6.5 3.5 2.11.8 + 2.4.1