2011-08-19 17:36:23 +00:00
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
<!--
|
|
|
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
you may not use this file except in compliance with the License.
|
|
|
|
You may obtain a copy of the License at
|
|
|
|
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
See the License for the specific language governing permissions and
|
|
|
|
limitations under the License. See accompanying LICENSE file.
|
|
|
|
-->
|
2012-05-28 14:51:05 +00:00
|
|
|
<project xmlns="http://maven.apache.org/POM/4.0.0"
|
|
|
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
|
|
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
|
|
|
|
http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
2011-08-19 17:36:23 +00:00
|
|
|
<modelVersion>4.0.0</modelVersion>
|
|
|
|
<parent>
|
|
|
|
<groupId>org.apache.hadoop</groupId>
|
|
|
|
<artifactId>hadoop-project</artifactId>
|
2012-03-28 07:37:06 +00:00
|
|
|
<version>3.0.0-SNAPSHOT</version>
|
2011-08-19 17:36:23 +00:00
|
|
|
<relativePath>../hadoop-project</relativePath>
|
|
|
|
</parent>
|
|
|
|
<groupId>org.apache.hadoop</groupId>
|
2011-08-22 17:40:58 +00:00
|
|
|
<artifactId>hadoop-project-dist</artifactId>
|
2012-03-28 07:37:06 +00:00
|
|
|
<version>3.0.0-SNAPSHOT</version>
|
2011-08-22 17:40:58 +00:00
|
|
|
<description>Apache Hadoop Project Dist POM</description>
|
|
|
|
<name>Apache Hadoop Project Dist POM</name>
|
2011-08-19 17:36:23 +00:00
|
|
|
<packaging>pom</packaging>
|
|
|
|
|
|
|
|
<properties>
|
|
|
|
<hadoop.tmp.dir>${project.build.directory}/test</hadoop.tmp.dir>
|
|
|
|
<test.build.data>${project.build.directory}/test/data</test.build.data>
|
|
|
|
<hadoop.log.dir>${project.build.directory}/log</hadoop.log.dir>
|
|
|
|
<test.build.webapps>${project.build.directory}/test-classes/webapps</test.build.webapps>
|
|
|
|
<test.cache.data>${project.build.directory}/test-classes</test.cache.data>
|
|
|
|
<test.build.classes>${project.build.directory}/test-classes</test.build.classes>
|
|
|
|
|
|
|
|
<hadoop.component>UNDEF</hadoop.component>
|
|
|
|
<bundle.snappy>false</bundle.snappy>
|
2013-08-11 05:51:34 +00:00
|
|
|
<bundle.snappy.in.bin>false</bundle.snappy.in.bin>
|
2014-07-03 23:40:31 +00:00
|
|
|
<bundle.openssl>false</bundle.openssl>
|
|
|
|
<bundle.openssl.in.bin>false</bundle.openssl.in.bin>
|
2011-08-19 17:36:23 +00:00
|
|
|
</properties>
|
|
|
|
|
|
|
|
<dependencies>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.apache.hadoop</groupId>
|
|
|
|
<artifactId>hadoop-annotations</artifactId>
|
|
|
|
<scope>provided</scope>
|
|
|
|
</dependency>
|
|
|
|
</dependencies>
|
|
|
|
|
|
|
|
<build>
|
|
|
|
<plugins>
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-jar-plugin</artifactId>
|
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<id>prepare-jar</id>
|
|
|
|
<phase>prepare-package</phase>
|
|
|
|
<goals>
|
|
|
|
<goal>jar</goal>
|
|
|
|
</goals>
|
|
|
|
</execution>
|
|
|
|
<execution>
|
|
|
|
<id>prepare-test-jar</id>
|
|
|
|
<phase>prepare-package</phase>
|
|
|
|
<goals>
|
|
|
|
<goal>test-jar</goal>
|
|
|
|
</goals>
|
|
|
|
<configuration>
|
|
|
|
<includes>
|
|
|
|
<include>**/*.class</include>
|
2011-08-22 22:24:00 +00:00
|
|
|
<include>webapps/**</include>
|
2011-08-19 17:36:23 +00:00
|
|
|
</includes>
|
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
</plugin>
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-source-plugin</artifactId>
|
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<phase>prepare-package</phase>
|
|
|
|
<goals>
|
|
|
|
<goal>jar</goal>
|
|
|
|
<goal>test-jar</goal>
|
|
|
|
</goals>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
<configuration>
|
|
|
|
<attach>true</attach>
|
|
|
|
</configuration>
|
|
|
|
</plugin>
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.codehaus.mojo</groupId>
|
|
|
|
<artifactId>findbugs-maven-plugin</artifactId>
|
|
|
|
<configuration>
|
|
|
|
<excludeFilterFile>${basedir}/dev-support/findbugsExcludeFile.xml</excludeFilterFile>
|
2014-07-30 22:16:40 +00:00
|
|
|
<fork>true</fork>
|
|
|
|
<maxHeap>2048</maxHeap>
|
2011-08-19 17:36:23 +00:00
|
|
|
</configuration>
|
|
|
|
</plugin>
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-checkstyle-plugin</artifactId>
|
|
|
|
<configuration>
|
|
|
|
<configLocation>file://${basedir}/dev-support/checkstyle.xml</configLocation>
|
|
|
|
<failOnViolation>false</failOnViolation>
|
|
|
|
<format>xml</format>
|
|
|
|
<format>html</format>
|
|
|
|
<outputFile>${project.build.directory}/test/checkstyle-errors.xml</outputFile>
|
|
|
|
</configuration>
|
|
|
|
</plugin>
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-javadoc-plugin</artifactId>
|
|
|
|
<configuration>
|
|
|
|
<linksource>true</linksource>
|
2012-03-14 16:17:17 +00:00
|
|
|
<maxmemory>512m</maxmemory>
|
2011-08-19 17:36:23 +00:00
|
|
|
<quiet>true</quiet>
|
|
|
|
<verbose>false</verbose>
|
|
|
|
<source>${maven.compile.source}</source>
|
|
|
|
<charset>${maven.compile.encoding}</charset>
|
|
|
|
<reportOutputDirectory>${project.build.directory}/site</reportOutputDirectory>
|
|
|
|
<destDir>api</destDir>
|
|
|
|
<groups>
|
|
|
|
<group>
|
|
|
|
<title>${project.name} API</title>
|
|
|
|
<packages>org.apache.hadoop*</packages>
|
|
|
|
</group>
|
|
|
|
</groups>
|
|
|
|
<doclet>org.apache.hadoop.classification.tools.ExcludePrivateAnnotationsStandardDoclet</doclet>
|
|
|
|
<docletArtifacts>
|
|
|
|
<docletArtifact>
|
|
|
|
<groupId>org.apache.hadoop</groupId>
|
|
|
|
<artifactId>hadoop-annotations</artifactId>
|
|
|
|
<version>${project.version}</version>
|
|
|
|
</docletArtifact>
|
|
|
|
</docletArtifacts>
|
|
|
|
<useStandardDocletOptions>true</useStandardDocletOptions>
|
|
|
|
|
|
|
|
<!-- switch on dependency-driven aggregation -->
|
|
|
|
<includeDependencySources>false</includeDependencySources>
|
|
|
|
|
|
|
|
<dependencySourceIncludes>
|
|
|
|
<!-- include ONLY dependencies I control -->
|
|
|
|
<dependencySourceInclude>org.apache.hadoop:hadoop-annotations</dependencySourceInclude>
|
|
|
|
</dependencySourceIncludes>
|
|
|
|
|
|
|
|
</configuration>
|
|
|
|
</plugin>
|
|
|
|
</plugins>
|
|
|
|
</build>
|
|
|
|
|
|
|
|
<profiles>
|
|
|
|
<profile>
|
|
|
|
<id>docs</id>
|
|
|
|
<activation>
|
|
|
|
<activeByDefault>false</activeByDefault>
|
|
|
|
</activation>
|
|
|
|
<properties>
|
2015-04-04 20:52:01 +00:00
|
|
|
<jdiff.stable.api>2.6.0</jdiff.stable.api>
|
2011-08-19 17:36:23 +00:00
|
|
|
<jdiff.stability>-unstable</jdiff.stability>
|
2015-04-04 20:52:01 +00:00
|
|
|
<!-- Commented out for HADOOP-11776 -->
|
|
|
|
<!-- Uncomment param name="${jdiff.compatibility}" in javadoc doclet if compatibility is not empty -->
|
2011-08-19 17:36:23 +00:00
|
|
|
<jdiff.compatibility></jdiff.compatibility>
|
|
|
|
<jdiff.javadoc.maxmemory>512m</jdiff.javadoc.maxmemory>
|
|
|
|
</properties>
|
|
|
|
<build>
|
|
|
|
<plugins>
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-javadoc-plugin</artifactId>
|
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<goals>
|
|
|
|
<goal>javadoc</goal>
|
|
|
|
</goals>
|
|
|
|
<phase>prepare-package</phase>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
</plugin>
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.codehaus.mojo</groupId>
|
|
|
|
<artifactId>findbugs-maven-plugin</artifactId>
|
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<goals>
|
|
|
|
<goal>findbugs</goal>
|
|
|
|
</goals>
|
|
|
|
<phase>prepare-package</phase>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
<configuration>
|
|
|
|
<excludeFilterFile>${basedir}/dev-support/findbugsExcludeFile.xml</excludeFilterFile>
|
|
|
|
</configuration>
|
|
|
|
</plugin>
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-dependency-plugin</artifactId>
|
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<id>site</id>
|
|
|
|
<phase>prepare-package</phase>
|
|
|
|
<goals>
|
|
|
|
<goal>copy</goal>
|
|
|
|
</goals>
|
|
|
|
<configuration>
|
|
|
|
<artifactItems>
|
|
|
|
<artifactItem>
|
|
|
|
<groupId>jdiff</groupId>
|
|
|
|
<artifactId>jdiff</artifactId>
|
|
|
|
<version>${jdiff.version}</version>
|
|
|
|
<overWrite>false</overWrite>
|
|
|
|
<outputDirectory>${project.build.directory}</outputDirectory>
|
|
|
|
<destFileName>jdiff.jar</destFileName>
|
|
|
|
</artifactItem>
|
|
|
|
<artifactItem>
|
|
|
|
<groupId>org.apache.hadoop</groupId>
|
|
|
|
<artifactId>hadoop-annotations</artifactId>
|
2012-01-05 19:46:42 +00:00
|
|
|
<version>${project.version}</version>
|
2011-08-19 17:36:23 +00:00
|
|
|
<overWrite>false</overWrite>
|
|
|
|
<outputDirectory>${project.build.directory}</outputDirectory>
|
|
|
|
<destFileName>hadoop-annotations.jar</destFileName>
|
|
|
|
</artifactItem>
|
2015-04-04 20:52:01 +00:00
|
|
|
<artifactItem>
|
|
|
|
<groupId>xerces</groupId>
|
|
|
|
<artifactId>xercesImpl</artifactId>
|
|
|
|
<version>${xerces.jdiff.version}</version>
|
|
|
|
<overWrite>false</overWrite>
|
|
|
|
<outputDirectory>${project.build.directory}</outputDirectory>
|
|
|
|
<destFileName>xerces.jar</destFileName>
|
|
|
|
</artifactItem>
|
2011-08-19 17:36:23 +00:00
|
|
|
</artifactItems>
|
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
</plugin>
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-antrun-plugin</artifactId>
|
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<id>site</id>
|
|
|
|
<phase>prepare-package</phase>
|
|
|
|
<goals>
|
|
|
|
<goal>run</goal>
|
|
|
|
</goals>
|
|
|
|
<configuration>
|
|
|
|
<target if="is.hadoop.component">
|
|
|
|
|
|
|
|
<mkdir dir="${project.build.directory}/docs-src"/>
|
|
|
|
|
|
|
|
<copy todir="${project.build.directory}/docs-src">
|
|
|
|
<fileset dir="${basedir}/src/main/docs"/>
|
|
|
|
</copy>
|
|
|
|
|
|
|
|
<!-- Docs -->
|
|
|
|
<copy file="${project.build.directory}/docs-src/releasenotes.html"
|
|
|
|
todir="${project.build.directory}/site"/>
|
|
|
|
<style basedir="${basedir}/src/main/resources"
|
|
|
|
destdir="${project.build.directory}/site"
|
|
|
|
includes="core-default.xml"
|
|
|
|
style="${basedir}/src/main/xsl/configuration.xsl"/>
|
|
|
|
|
|
|
|
<!-- Convert 'CHANGES.txt' to 'changes.html" -->
|
|
|
|
<exec executable="perl" input="${basedir}/../CHANGES.txt"
|
|
|
|
output="${project.build.directory}/site/changes.html"
|
|
|
|
failonerror="true">
|
|
|
|
<arg value="${project.build.directory}/docs-src/changes/changes2html.pl"/>
|
|
|
|
</exec>
|
|
|
|
<copy todir="${project.build.directory}/site">
|
|
|
|
<fileset dir="${project.build.directory}/docs-src/changes" includes="*.css"/>
|
|
|
|
</copy>
|
|
|
|
|
|
|
|
<!-- Jdiff -->
|
|
|
|
<mkdir dir="${project.build.directory}/site/jdiff/xml"/>
|
|
|
|
|
|
|
|
<javadoc maxmemory="${jdiff.javadoc.maxmemory}" verbose="yes">
|
|
|
|
<doclet name="org.apache.hadoop.classification.tools.ExcludePrivateAnnotationsJDiffDoclet"
|
|
|
|
path="${project.build.directory}/hadoop-annotations.jar:${project.build.directory}/jdiff.jar">
|
|
|
|
<param name="-apidir" value="${project.build.directory}/site/jdiff/xml"/>
|
2015-04-04 20:52:01 +00:00
|
|
|
<param name="-apiname" value="${project.name} ${project.version}"/>
|
2011-08-19 17:36:23 +00:00
|
|
|
<param name="${jdiff.stability}"/>
|
|
|
|
</doclet>
|
|
|
|
<packageset dir="${basedir}/src/main/java"/>
|
|
|
|
<classpath>
|
|
|
|
<path refid="maven.compile.classpath"/>
|
|
|
|
</classpath>
|
|
|
|
</javadoc>
|
|
|
|
<javadoc sourcepath="${basedir}/src/main/java"
|
|
|
|
destdir="${project.build.directory}/site/jdiff/xml"
|
|
|
|
sourceFiles="${basedir}/dev-support/jdiff/Null.java"
|
|
|
|
maxmemory="${jdiff.javadoc.maxmemory}">
|
|
|
|
<doclet name="org.apache.hadoop.classification.tools.ExcludePrivateAnnotationsJDiffDoclet"
|
2015-04-04 20:52:01 +00:00
|
|
|
path="${project.build.directory}/hadoop-annotations.jar:${project.build.directory}/jdiff.jar:${project.build.directory}/xerces.jar">
|
|
|
|
<param name="-oldapi" value="${project.name} ${jdiff.stable.api}"/>
|
|
|
|
<param name="-newapi" value="${project.name} ${project.version}"/>
|
2011-08-19 17:36:23 +00:00
|
|
|
<param name="-oldapidir" value="${basedir}/dev-support/jdiff"/>
|
|
|
|
<param name="-newapidir" value="${project.build.directory}/site/jdiff/xml"/>
|
|
|
|
<param name="-javadocold"
|
2015-04-04 20:52:01 +00:00
|
|
|
value="http://hadoop.apache.org/docs/r${jdiff.stable.api}/api/"/>
|
2011-08-19 17:36:23 +00:00
|
|
|
<param name="-javadocnew" value="${project.build.directory}/site/api"/>
|
|
|
|
<param name="-stats"/>
|
|
|
|
<param name="${jdiff.stability}"/>
|
2015-04-04 20:52:01 +00:00
|
|
|
<!--param name="${jdiff.compatibility}"/-->
|
2011-08-19 17:36:23 +00:00
|
|
|
</doclet>
|
|
|
|
<classpath>
|
|
|
|
<path refid="maven.compile.classpath"/>
|
|
|
|
</classpath>
|
|
|
|
</javadoc>
|
|
|
|
|
|
|
|
<xslt style="${env.FINDBUGS_HOME}/src/xsl/default.xsl"
|
|
|
|
in="${project.build.directory}/findbugsXml.xml"
|
|
|
|
out="${project.build.directory}/site/findbugs.html"/>
|
|
|
|
|
|
|
|
</target>
|
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
</plugin>
|
|
|
|
</plugins>
|
|
|
|
</build>
|
|
|
|
</profile>
|
|
|
|
|
|
|
|
<profile>
|
2011-08-22 17:40:58 +00:00
|
|
|
<id>dist</id>
|
2011-08-19 17:36:23 +00:00
|
|
|
<activation>
|
|
|
|
<activeByDefault>false</activeByDefault>
|
|
|
|
</activation>
|
|
|
|
<build>
|
|
|
|
<plugins>
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-antrun-plugin</artifactId>
|
|
|
|
<executions>
|
|
|
|
<execution>
|
2011-08-22 17:40:58 +00:00
|
|
|
<id>pre-dist</id>
|
2011-08-19 17:36:23 +00:00
|
|
|
<phase>prepare-package</phase>
|
|
|
|
<goals>
|
|
|
|
<goal>run</goal>
|
|
|
|
</goals>
|
|
|
|
<configuration>
|
|
|
|
<target>
|
|
|
|
<!-- Using Unix script to preserve symlinks -->
|
2011-08-22 17:40:58 +00:00
|
|
|
<echo file="${project.build.directory}/dist-copynativelibs.sh">
|
HADOOP-8952. Enhancements to support Hadoop on Windows Server and Windows Azure environments. Contributed by Ivan Mitic, Chuan Liu, Ramya Sunil, Bikas Saha, Kanna Karanam, John Gordon, Brandon Li, Chris Nauroth, David Lao, Sumadhur Reddy Bolli, Arpit Agarwal, Ahmed El Baz, Mike Liddell, Jing Zhao, Thejas Nair, Steve Maine, Ganeshan Iyer, Raja Aluri, Giridharan Kesavan, Ramya Bharathi Nimmagadda.
git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1453486 13f79535-47bb-0310-9956-ffa450edef68
2013-03-06 19:15:18 +00:00
|
|
|
BUILD_DIR="${project.build.directory}"
|
2011-08-19 17:36:23 +00:00
|
|
|
TAR='tar cf -'
|
|
|
|
UNTAR='tar xfBp -'
|
|
|
|
LIB_DIR="${BUILD_DIR}/native/target/usr/local/lib"
|
|
|
|
if [ -d $${LIB_DIR} ] ; then
|
2011-12-01 22:44:29 +00:00
|
|
|
TARGET_DIR="${BUILD_DIR}/${project.artifactId}-${project.version}/lib/native"
|
2011-08-19 17:36:23 +00:00
|
|
|
mkdir -p $${TARGET_DIR}
|
|
|
|
cd $${LIB_DIR}
|
|
|
|
$$TAR lib* | (cd $${TARGET_DIR}/; $$UNTAR)
|
|
|
|
if [ "${bundle.snappy}" = "true" ] ; then
|
2013-11-09 07:37:06 +00:00
|
|
|
cd "${snappy.lib}"
|
2011-08-19 17:36:23 +00:00
|
|
|
$$TAR *snappy* | (cd $${TARGET_DIR}/; $$UNTAR)
|
|
|
|
fi
|
2014-07-03 23:40:31 +00:00
|
|
|
if [ "${bundle.openssl}" = "true" ] ; then
|
|
|
|
cd "${openssl.lib}"
|
|
|
|
$$TAR *crypto* | (cd $${TARGET_DIR}/; $$UNTAR)
|
|
|
|
fi
|
2011-08-19 17:36:23 +00:00
|
|
|
fi
|
HADOOP-8952. Enhancements to support Hadoop on Windows Server and Windows Azure environments. Contributed by Ivan Mitic, Chuan Liu, Ramya Sunil, Bikas Saha, Kanna Karanam, John Gordon, Brandon Li, Chris Nauroth, David Lao, Sumadhur Reddy Bolli, Arpit Agarwal, Ahmed El Baz, Mike Liddell, Jing Zhao, Thejas Nair, Steve Maine, Ganeshan Iyer, Raja Aluri, Giridharan Kesavan, Ramya Bharathi Nimmagadda.
git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1453486 13f79535-47bb-0310-9956-ffa450edef68
2013-03-06 19:15:18 +00:00
|
|
|
BIN_DIR="${BUILD_DIR}/bin"
|
|
|
|
if [ -d $${BIN_DIR} ] ; then
|
|
|
|
TARGET_BIN_DIR="${BUILD_DIR}/${project.artifactId}-${project.version}/bin"
|
|
|
|
mkdir -p $${TARGET_BIN_DIR}
|
|
|
|
cd $${BIN_DIR}
|
|
|
|
$$TAR * | (cd $${TARGET_BIN_DIR}/; $$UNTAR)
|
2013-08-11 05:51:34 +00:00
|
|
|
if [ "${bundle.snappy.in.bin}" = "true" ] ; then
|
|
|
|
if [ "${bundle.snappy}" = "true" ] ; then
|
2013-11-09 07:37:06 +00:00
|
|
|
cd "${snappy.lib}"
|
2013-08-11 05:51:34 +00:00
|
|
|
$$TAR *snappy* | (cd $${TARGET_BIN_DIR}/; $$UNTAR)
|
|
|
|
fi
|
|
|
|
fi
|
2014-07-03 23:40:31 +00:00
|
|
|
if [ "${bundle.openssl.in.bin}" = "true" ] ; then
|
|
|
|
if [ "${bundle.openssl}" = "true" ] ; then
|
|
|
|
cd "${openssl.lib}"
|
|
|
|
$$TAR *crypto* | (cd $${TARGET_BIN_DIR}/; $$UNTAR)
|
|
|
|
fi
|
|
|
|
fi
|
HADOOP-8952. Enhancements to support Hadoop on Windows Server and Windows Azure environments. Contributed by Ivan Mitic, Chuan Liu, Ramya Sunil, Bikas Saha, Kanna Karanam, John Gordon, Brandon Li, Chris Nauroth, David Lao, Sumadhur Reddy Bolli, Arpit Agarwal, Ahmed El Baz, Mike Liddell, Jing Zhao, Thejas Nair, Steve Maine, Ganeshan Iyer, Raja Aluri, Giridharan Kesavan, Ramya Bharathi Nimmagadda.
git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1453486 13f79535-47bb-0310-9956-ffa450edef68
2013-03-06 19:15:18 +00:00
|
|
|
fi
|
2011-08-19 17:36:23 +00:00
|
|
|
</echo>
|
|
|
|
<exec executable="sh" dir="${project.build.directory}" failonerror="true">
|
2011-08-22 17:40:58 +00:00
|
|
|
<arg line="./dist-copynativelibs.sh"/>
|
2011-08-19 17:36:23 +00:00
|
|
|
</exec>
|
|
|
|
</target>
|
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
<execution>
|
|
|
|
<id>tar</id>
|
|
|
|
<phase>package</phase>
|
|
|
|
<goals>
|
|
|
|
<goal>run</goal>
|
|
|
|
</goals>
|
|
|
|
<configuration>
|
2011-08-22 17:40:58 +00:00
|
|
|
<target if="tar">
|
2011-08-19 17:36:23 +00:00
|
|
|
<!-- Using Unix script to preserve symlinks -->
|
2011-08-22 17:40:58 +00:00
|
|
|
<echo file="${project.build.directory}/dist-maketar.sh">
|
HADOOP-8952. Enhancements to support Hadoop on Windows Server and Windows Azure environments. Contributed by Ivan Mitic, Chuan Liu, Ramya Sunil, Bikas Saha, Kanna Karanam, John Gordon, Brandon Li, Chris Nauroth, David Lao, Sumadhur Reddy Bolli, Arpit Agarwal, Ahmed El Baz, Mike Liddell, Jing Zhao, Thejas Nair, Steve Maine, Ganeshan Iyer, Raja Aluri, Giridharan Kesavan, Ramya Bharathi Nimmagadda.
git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1453486 13f79535-47bb-0310-9956-ffa450edef68
2013-03-06 19:15:18 +00:00
|
|
|
cd "${project.build.directory}"
|
|
|
|
tar cf - ${project.artifactId}-${project.version} | gzip > ${project.artifactId}-${project.version}.tar.gz
|
2011-08-19 17:36:23 +00:00
|
|
|
</echo>
|
|
|
|
<exec executable="sh" dir="${project.build.directory}" failonerror="true">
|
2011-08-22 17:40:58 +00:00
|
|
|
<arg line="./dist-maketar.sh"/>
|
2011-08-19 17:36:23 +00:00
|
|
|
</exec>
|
|
|
|
</target>
|
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
</plugin>
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-assembly-plugin</artifactId>
|
|
|
|
<dependencies>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.apache.hadoop</groupId>
|
|
|
|
<artifactId>hadoop-assemblies</artifactId>
|
2011-10-17 17:06:42 +00:00
|
|
|
<version>${project.version}</version>
|
2011-08-19 17:36:23 +00:00
|
|
|
</dependency>
|
|
|
|
</dependencies>
|
|
|
|
<executions>
|
|
|
|
<execution>
|
2011-08-22 17:40:58 +00:00
|
|
|
<id>dist</id>
|
2011-08-19 17:36:23 +00:00
|
|
|
<phase>prepare-package</phase>
|
|
|
|
<goals>
|
|
|
|
<goal>single</goal>
|
|
|
|
</goals>
|
|
|
|
<configuration>
|
|
|
|
<appendAssemblyId>false</appendAssemblyId>
|
|
|
|
<attach>false</attach>
|
|
|
|
<finalName>${project.artifactId}-${project.version}</finalName>
|
|
|
|
<descriptorRefs>
|
2011-08-22 17:40:58 +00:00
|
|
|
<descriptorRef>hadoop-dist</descriptorRef>
|
2011-08-19 17:36:23 +00:00
|
|
|
</descriptorRefs>
|
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
</plugin>
|
|
|
|
</plugins>
|
|
|
|
</build>
|
|
|
|
</profile>
|
|
|
|
</profiles>
|
|
|
|
</project>
|