From 5fcf712c4d1947b672465ee13cb44ed741cf4e15 Mon Sep 17 00:00:00 2001 From: Bilung Lee Date: Mon, 19 Nov 2012 15:24:58 -0800 Subject: [PATCH] SQOOP-713 Introduce maven profiles for different Hadoop versions (Jarek Jarcec Cecho) --- execution/mapreduce/pom.xml | 95 +++++++++++++++++++++++++++++++----- pom.xml | 91 +++++++++++++++++++++++++++++----- server/pom.xml | 1 + submission/mapreduce/pom.xml | 82 ++++++++++++++++++++++++++----- 4 files changed, 236 insertions(+), 33 deletions(-) diff --git a/execution/mapreduce/pom.xml b/execution/mapreduce/pom.xml index e529f556..13dbbdca 100644 --- a/execution/mapreduce/pom.xml +++ b/execution/mapreduce/pom.xml @@ -50,18 +50,91 @@ limitations under the License. test - - org.apache.hadoop - hadoop-common - provided - - - - org.apache.hadoop - hadoop-mapreduce-client-jobclient - provided - + + + + + + org.apache.maven.plugins + maven-jar-plugin + 2.4 + + hadoop${hadoop.profile} + + + + + + + + + + + hadoop100 + + + + hadoop.profile + 100 + + + + + + com.google.guava + guava + ${guava.version} + provided + + + + org.apache.hadoop + hadoop-core + provided + + + + + + + hadoop200 + + + true + + hadoop.profile + 200 + + + + + 200 + + + + + org.apache.hadoop + hadoop-common + provided + + + + org.apache.hadoop + hadoop-mapreduce-client-core + provided + + + + org.apache.hadoop + hadoop-mapreduce-client-jobclient + provided + + + + + + diff --git a/pom.xml b/pom.xml index c2fbd6ca..f63ff521 100644 --- a/pom.xml +++ b/pom.xml @@ -94,7 +94,9 @@ limitations under the License. 1.4 2.5 10.8.2.2 - 2.0.0-SNAPSHOT + 1.0.3 + 2.0.2-alpha + 11.0.2 1.1 4.9 1.2.16 @@ -108,6 +110,83 @@ limitations under the License. + + + + + + hadoop100 + + + + hadoop.profile + 100 + + + + + + + com.google.guava + guava + ${guava.version} + provided + + + + org.apache.hadoop + hadoop-core + ${hadoop.1.version} + provided + + + + + + + + hadoop200 + + + true + + hadoop.profile + 200 + + + + + 200 + + + + + + org.apache.hadoop + hadoop-common + ${hadoop.2.version} + provided + + + + org.apache.hadoop + hadoop-mapreduce-client-core + ${hadoop.2.version} + provided + + + + org.apache.hadoop + hadoop-mapreduce-client-jobclient + ${hadoop.2.version} + provided + + + + + + + @@ -198,16 +277,6 @@ limitations under the License. derby ${derby.version} - - org.apache.hadoop - hadoop-common - ${hadoop.version} - - - org.apache.hadoop - hadoop-mapreduce-client-jobclient - ${hadoop.version} - diff --git a/server/pom.xml b/server/pom.xml index 71aa6c9c..732094a4 100644 --- a/server/pom.xml +++ b/server/pom.xml @@ -49,6 +49,7 @@ limitations under the License. org.apache.sqoop.submission sqoop-submission-mapreduce 2.0.0-SNAPSHOT + hadoop${hadoop.profile} diff --git a/submission/mapreduce/pom.xml b/submission/mapreduce/pom.xml index f8a7d3de..37b9ded1 100644 --- a/submission/mapreduce/pom.xml +++ b/submission/mapreduce/pom.xml @@ -40,6 +40,7 @@ limitations under the License. org.apache.sqoop.execution sqoop-execution-mapreduce 2.0.0-SNAPSHOT + hadoop${hadoop.profile} @@ -56,18 +57,77 @@ limitations under the License. test - - org.apache.hadoop - hadoop-common - provided - - - - org.apache.hadoop - hadoop-mapreduce-client-jobclient - provided - + + + + + + org.apache.maven.plugins + maven-jar-plugin + 2.4 + + hadoop${hadoop.profile} + + + + + + + + + + + hadoop100 + + + + hadoop.profile + 100 + + + + + + org.apache.hadoop + hadoop-core + provided + + + + + + + hadoop200 + + + true + + hadoop.profile + 200 + + + + + 200 + + + + + org.apache.hadoop + hadoop-common + provided + + + + org.apache.hadoop + hadoop-mapreduce-client-core + provided + + + + +