diff --git a/hadoop-dist/pom.xml b/hadoop-dist/pom.xml
index 62a27f4a30..149f4048b0 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 772a2a3876..9110942d62 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