From 45f976fdcf1d8cbcdcbcc4783c9f13fddae1c429 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A1rton=20Elek?= Date: Fri, 15 Feb 2019 13:52:25 +0100 Subject: [PATCH] HDDS-1113. Remove default dependencies from hadoop-ozone project. Contributed by Elek, Marton. Closes #490 --- hadoop-ozone/client/pom.xml | 5 ++ hadoop-ozone/common/pom.xml | 59 ++++++++++++++++++++++ hadoop-ozone/integration-test/pom.xml | 24 +++++++++ hadoop-ozone/objectstore-service/pom.xml | 6 +++ hadoop-ozone/ozone-manager/pom.xml | 31 +++++++++--- hadoop-ozone/ozone-recon/pom.xml | 4 ++ hadoop-ozone/pom.xml | 62 ------------------------ hadoop-ozone/s3gateway/pom.xml | 5 ++ hadoop-ozone/tools/pom.xml | 12 ++++- 9 files changed, 139 insertions(+), 69 deletions(-) diff --git a/hadoop-ozone/client/pom.xml b/hadoop-ozone/client/pom.xml index 3d292c2ed0..9d9adcbadb 100644 --- a/hadoop-ozone/client/pom.xml +++ b/hadoop-ozone/client/pom.xml @@ -33,5 +33,10 @@ http://maven.apache.org/xsd/maven-4.0.0.xsd"> org.apache.hadoop hadoop-ozone-common + + junit + junit + test + \ No newline at end of file diff --git a/hadoop-ozone/common/pom.xml b/hadoop-ozone/common/pom.xml index 64b855e598..fc8d84ed09 100644 --- a/hadoop-ozone/common/pom.xml +++ b/hadoop-ozone/common/pom.xml @@ -34,6 +34,65 @@ http://maven.apache.org/xsd/maven-4.0.0.xsd"> org.apache.commons commons-compress + + org.apache.hadoop + hadoop-common + + + org.apache.hadoop + hadoop-hdfs + + + org.apache.hadoop + hadoop-hdfs-client + + + com.squareup.okhttp + okhttp + + + + + org.apache.hadoop + hadoop-hdds-common + + + org.apache.hadoop + hadoop-hdds-server-framework + + + org.apache.hadoop + hadoop-hdds-server-scm + + + org.apache.hadoop + hadoop-hdds-container-service + + + org.apache.hadoop + hadoop-hdds-client + + + org.apache.hadoop + hadoop-hdds-tools + + + junit + junit + test + + + org.apache.hadoop + hadoop-common + test + test-jar + + + org.apache.hadoop + hadoop-hdfs + test + test-jar + diff --git a/hadoop-ozone/integration-test/pom.xml b/hadoop-ozone/integration-test/pom.xml index 04f131b074..349d69fe27 100644 --- a/hadoop-ozone/integration-test/pom.xml +++ b/hadoop-ozone/integration-test/pom.xml @@ -93,5 +93,29 @@ http://maven.apache.org/xsd/maven-4.0.0.xsd"> test-jar test + + org.apache.hadoop + hadoop-hdds-server-scm + test + test-jar + + + org.apache.hadoop + hadoop-hdds-container-service + test + test-jar + + + org.apache.hadoop + hadoop-common + test + test-jar + + + org.apache.hadoop + hadoop-hdfs + test + test-jar + diff --git a/hadoop-ozone/objectstore-service/pom.xml b/hadoop-ozone/objectstore-service/pom.xml index edb1903d13..7a597fd43a 100644 --- a/hadoop-ozone/objectstore-service/pom.xml +++ b/hadoop-ozone/objectstore-service/pom.xml @@ -65,6 +65,12 @@ http://maven.apache.org/xsd/maven-4.0.0.xsd"> + + junit + junit + test + + io.swagger swagger-annotations diff --git a/hadoop-ozone/ozone-manager/pom.xml b/hadoop-ozone/ozone-manager/pom.xml index 143a6622a2..dfeb398ce8 100644 --- a/hadoop-ozone/ozone-manager/pom.xml +++ b/hadoop-ozone/ozone-manager/pom.xml @@ -56,12 +56,31 @@ http://maven.apache.org/xsd/maven-4.0.0.xsd"> 2.2.0 test - - com.google.code.findbugs - findbugs - 3.0.1 - compile - + + com.google.code.findbugs + findbugs + 3.0.1 + provided + + + org.apache.hadoop + hadoop-common + test + test-jar + + + + org.apache.hadoop + hadoop-hdds-server-scm + test + test-jar + + + + junit + junit + test + diff --git a/hadoop-ozone/ozone-recon/pom.xml b/hadoop-ozone/ozone-recon/pom.xml index fed7ad4dda..b8e4187293 100644 --- a/hadoop-ozone/ozone-recon/pom.xml +++ b/hadoop-ozone/ozone-recon/pom.xml @@ -24,6 +24,10 @@ 4.0.0 ozone-recon + + org.apache.hadoop + hadoop-ozone-common + com.google.inject guice diff --git a/hadoop-ozone/pom.xml b/hadoop-ozone/pom.xml index 4c3105c953..b18f901bb4 100644 --- a/hadoop-ozone/pom.xml +++ b/hadoop-ozone/pom.xml @@ -199,68 +199,6 @@ - - org.apache.hadoop - hadoop-common - - - org.apache.hadoop - hadoop-hdfs - - - org.apache.hadoop - hadoop-hdds-common - - - org.apache.hadoop - hadoop-hdds-server-framework - - - org.apache.hadoop - hadoop-hdds-server-scm - - - org.apache.hadoop - hadoop-hdds-container-service - - - org.apache.hadoop - hadoop-hdds-client - - - org.apache.hadoop - hadoop-hdds-tools - - - - org.apache.hadoop - hadoop-common - test - test-jar - - - org.apache.hadoop - hadoop-hdfs - test - test-jar - - - org.apache.hadoop - hadoop-hdds-server-scm - test - test-jar - - - org.apache.hadoop - hadoop-hdds-container-service - test - test-jar - - - junit - junit - test - diff --git a/hadoop-ozone/s3gateway/pom.xml b/hadoop-ozone/s3gateway/pom.xml index bffe6dd807..a0c8fe0913 100644 --- a/hadoop-ozone/s3gateway/pom.xml +++ b/hadoop-ozone/s3gateway/pom.xml @@ -179,6 +179,11 @@ org.apache.hadoop hadoop-ozone-client + + junit + junit + test + org.mockito mockito-core diff --git a/hadoop-ozone/tools/pom.xml b/hadoop-ozone/tools/pom.xml index 3cef596c4e..fbc8a7d313 100644 --- a/hadoop-ozone/tools/pom.xml +++ b/hadoop-ozone/tools/pom.xml @@ -80,7 +80,17 @@ http://maven.apache.org/xsd/maven-4.0.0.xsd"> 3.0.1 provided - + + junit + junit + test + + + org.apache.hadoop + hadoop-common + test + test-jar + org.apache.hadoop hadoop-ozone-integration-test