From 16b74f978acc2d1aa0220d1329faba343d77f739 Mon Sep 17 00:00:00 2001 From: Haohui Mai Date: Thu, 2 Apr 2015 15:29:18 -0700 Subject: [PATCH] HDFS-7893. Update the POM to create a separate hdfs-client jar. Contributed by Haohui Mai. --- .../dev-support/findbugsExcludeFile.xml | 2 + .../hadoop-hdfs-client/pom.xml | 49 +++++++++++++++++++ hadoop-hdfs-project/hadoop-hdfs-nfs/pom.xml | 5 ++ hadoop-hdfs-project/hadoop-hdfs/pom.xml | 5 ++ .../hadoop-hdfs/src/contrib/bkjournal/pom.xml | 5 ++ hadoop-hdfs-project/pom.xml | 1 + hadoop-project/pom.xml | 5 ++ 7 files changed, 72 insertions(+) create mode 100644 hadoop-hdfs-project/hadoop-hdfs-client/dev-support/findbugsExcludeFile.xml create mode 100644 hadoop-hdfs-project/hadoop-hdfs-client/pom.xml diff --git a/hadoop-hdfs-project/hadoop-hdfs-client/dev-support/findbugsExcludeFile.xml b/hadoop-hdfs-project/hadoop-hdfs-client/dev-support/findbugsExcludeFile.xml new file mode 100644 index 0000000000..43bc3321de --- /dev/null +++ b/hadoop-hdfs-project/hadoop-hdfs-client/dev-support/findbugsExcludeFile.xml @@ -0,0 +1,2 @@ + + diff --git a/hadoop-hdfs-project/hadoop-hdfs-client/pom.xml b/hadoop-hdfs-project/hadoop-hdfs-client/pom.xml new file mode 100644 index 0000000000..900f345251 --- /dev/null +++ b/hadoop-hdfs-project/hadoop-hdfs-client/pom.xml @@ -0,0 +1,49 @@ + + + + 4.0.0 + + org.apache.hadoop + hadoop-project-dist + 3.0.0-SNAPSHOT + ../../hadoop-project-dist + + org.apache.hadoop + hadoop-hdfs-client + 3.0.0-SNAPSHOT + Apache Hadoop HDFS Client + Apache Hadoop HDFS Client + jar + + + + org.apache.maven.plugins + maven-surefire-plugin + + + org.apache.rat + apache-rat-plugin + + + dev-support/findbugsExcludeFile.xml + + + + + + diff --git a/hadoop-hdfs-project/hadoop-hdfs-nfs/pom.xml b/hadoop-hdfs-project/hadoop-hdfs-nfs/pom.xml index 9a9d29ceec..ac8930c15b 100644 --- a/hadoop-hdfs-project/hadoop-hdfs-nfs/pom.xml +++ b/hadoop-hdfs-project/hadoop-hdfs-nfs/pom.xml @@ -56,6 +56,11 @@ http://maven.apache.org/xsd/maven-4.0.0.xsd"> hadoop-hdfs compile + + org.apache.hadoop + hadoop-hdfs-client + compile + org.apache.hadoop hadoop-hdfs diff --git a/hadoop-hdfs-project/hadoop-hdfs/pom.xml b/hadoop-hdfs-project/hadoop-hdfs/pom.xml index 2d402a94dd..c11b963e9c 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/pom.xml +++ b/hadoop-hdfs-project/hadoop-hdfs/pom.xml @@ -60,6 +60,11 @@ http://maven.apache.org/xsd/maven-4.0.0.xsd"> test test-jar + + org.apache.hadoop + hadoop-hdfs-client + compile + org.apache.zookeeper zookeeper diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/contrib/bkjournal/pom.xml b/hadoop-hdfs-project/hadoop-hdfs/src/contrib/bkjournal/pom.xml index 6df6d98316..3b205e44b0 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/src/contrib/bkjournal/pom.xml +++ b/hadoop-hdfs-project/hadoop-hdfs/src/contrib/bkjournal/pom.xml @@ -52,6 +52,11 @@ http://maven.apache.org/xsd/maven-4.0.0.xsd"> hadoop-hdfs provided + + org.apache.hadoop + hadoop-hdfs-client + provided + org.apache.hadoop hadoop-hdfs diff --git a/hadoop-hdfs-project/pom.xml b/hadoop-hdfs-project/pom.xml index 920bb4b73a..0a61c4674d 100644 --- a/hadoop-hdfs-project/pom.xml +++ b/hadoop-hdfs-project/pom.xml @@ -32,6 +32,7 @@ http://maven.apache.org/xsd/maven-4.0.0.xsd"> hadoop-hdfs + hadoop-hdfs-client hadoop-hdfs-httpfs hadoop-hdfs/src/contrib/bkjournal hadoop-hdfs-nfs diff --git a/hadoop-project/pom.xml b/hadoop-project/pom.xml index 6c95cf03c3..739cae0bf2 100644 --- a/hadoop-project/pom.xml +++ b/hadoop-project/pom.xml @@ -158,6 +158,11 @@ hadoop-hdfs ${project.version} + + org.apache.hadoop + hadoop-hdfs-client + ${project.version} + org.apache.hadoop hadoop-hdfs