From 6d39367f6a95383b634d79b6df35a278e0d89fe0 Mon Sep 17 00:00:00 2001 From: Sean Zhong Date: Fri, 15 Aug 2014 08:55:49 +0000 Subject: [PATCH] MAPREDUCE-6025: distribute nativetask.so to right folder (Manu Zhang) git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/branches/MR-2841@1618120 13f79535-47bb-0310-9956-ffa450edef68 --- hadoop-dist/pom.xml | 1 - hadoop-mapreduce-project/pom.xml | 28 ++++++++++++++++++++++++++++ 2 files changed, 28 insertions(+), 1 deletion(-) diff --git a/hadoop-dist/pom.xml b/hadoop-dist/pom.xml index 62a27f4a30d..149f4048b00 100644 --- a/hadoop-dist/pom.xml +++ b/hadoop-dist/pom.xml @@ -122,7 +122,6 @@ run cp -r $ROOT/hadoop-hdfs-project/hadoop-hdfs-nfs/target/hadoop-hdfs-nfs-${project.version}/* . run cp -r $ROOT/hadoop-yarn-project/target/hadoop-yarn-project-${project.version}/* . run cp -r $ROOT/hadoop-mapreduce-project/target/hadoop-mapreduce-${project.version}/* . - run cp -r $ROOT/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-nativetask/target/hadoop-mapreduce-client-nativetask-${project.version}/* . run cp -r $ROOT/hadoop-tools/hadoop-tools-dist/target/hadoop-tools-dist-${project.version}/* . echo echo "Hadoop dist layout available at: ${project.build.directory}/hadoop-${project.version}" diff --git a/hadoop-mapreduce-project/pom.xml b/hadoop-mapreduce-project/pom.xml index 772a2a38763..9110942d62c 100644 --- a/hadoop-mapreduce-project/pom.xml +++ b/hadoop-mapreduce-project/pom.xml @@ -234,6 +234,34 @@ + + org.apache.maven.plugins + maven-antrun-plugin + + + dist + prepare-package + + run + + + + + LIB_DIR="${mr.basedir}/hadoop-mapreduce-client/hadoop-mapreduce-client-nativetask/target/native/target/usr/local/lib" + if [ -d $${LIB_DIR} ] ; then + TARGET_DIR="${project.build.directory}/${project.artifactId}-${project.version}/lib/native" + mkdir -p $${TARGET_DIR} + cp -R $${LIB_DIR}/lib* $${TARGET_DIR} + fi + + + + + + + + + org.apache.maven.plugins maven-assembly-plugin