Author: seanzhong Date: Fri Aug 15 08:55:49 2014 New Revision: 1618120 URL: http://svn.apache.org/r1618120 Log: MAPREDUCE-6025: distribute nativetask.so to right folder (Manu Zhang)
Modified: hadoop/common/branches/MR-2841/hadoop-mapreduce-project/pom.xml Modified: hadoop/common/branches/MR-2841/hadoop-mapreduce-project/pom.xml URL: http://svn.apache.org/viewvc/hadoop/common/branches/MR-2841/hadoop-mapreduce-project/pom.xml?rev=1618120&r1=1618119&r2=1618120&view=diff ============================================================================== --- hadoop/common/branches/MR-2841/hadoop-mapreduce-project/pom.xml (original) +++ hadoop/common/branches/MR-2841/hadoop-mapreduce-project/pom.xml Fri Aug 15 08:55:49 2014 @@ -236,6 +236,34 @@ </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-antrun-plugin</artifactId> + <executions> + <execution> + <id>dist</id> + <phase>prepare-package</phase> + <goals> + <goal>run</goal> + </goals> + <configuration> + <target> + <echo file="${project.build.directory}/dist-copynativelibs.sh"> + 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 + </echo> + <exec executable="sh" dir="${project.build.directory}" failonerror="true"> + <arg line="./dist-copynativelibs.sh"/> + </exec> + </target> + </configuration> + </execution> + </executions> + </plugin> + <plugin> + <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-assembly-plugin</artifactId> <dependencies> <dependency>