HADOOP-7496. Break Maven TAR & bintar profiles into just LAYOUT & TAR proper. Contributed by Alejandro Abdelnur.

git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1160344 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Thomas White 2011-08-22 17:40:58 +00:00
parent 8d34a17407
commit 14b97a91d9
8 changed files with 33 additions and 28 deletions

View File

@ -18,6 +18,7 @@ Maven modules:
hadoop (Main Hadoop project) hadoop (Main Hadoop project)
- hadoop-project (Parent POM for all Hadoop Maven modules. ) - hadoop-project (Parent POM for all Hadoop Maven modules. )
(All plugins & dependencies versions are defined here.) (All plugins & dependencies versions are defined here.)
- hadoop-project-dist (Parent POM for modules that generate distributions.)
- hadoop-annotations (Generates the Hadoop doclet used to generated the Javadocs) - hadoop-annotations (Generates the Hadoop doclet used to generated the Javadocs)
- hadoop-common (Hadoop Common) - hadoop-common (Hadoop Common)
- hadoop-hdfs (Hadoop HDFS) - hadoop-hdfs (Hadoop HDFS)
@ -43,15 +44,16 @@ Maven build goals:
* Run clover : mvn test -Pclover [-DcloverLicenseLocation=${user.name}/.clover.license] * Run clover : mvn test -Pclover [-DcloverLicenseLocation=${user.name}/.clover.license]
* Run Rat : mvn apache-rat:check * Run Rat : mvn apache-rat:check
* Build javadocs : mvn javadoc:javadoc * Build javadocs : mvn javadoc:javadoc
* Build TAR : mvn package [-Ptar][-Pdocs][-Psrc][-Pnative] * Build distribution : mvn package [-Pdist][-Pdocs][-Psrc][-Pnative][-Dtar]
Build options: Build options:
* Use -Pnative to compile/bundle native code * Use -Pnative to compile/bundle native code
* Use -Dsnappy.prefix=(/usr/local) & -Dbundle.snappy=(false) to compile * Use -Dsnappy.prefix=(/usr/local) & -Dbundle.snappy=(false) to compile
Snappy JNI bindings and to bundle Snappy SO files Snappy JNI bindings and to bundle Snappy SO files
* Use -Pdocs to generate & bundle the documentation in the TAR (using -Ptar) * Use -Pdocs to generate & bundle the documentation in the distribution (using -Pdist)
* Use -Psrc to bundle the source in the TAR (using -Ptar) * Use -Psrc to bundle the source in the distribution (using -Pdist)
* Use -Dtar to create a TAR with the distribution (using -Pdist)
Tests options: Tests options:

View File

@ -15,7 +15,7 @@
limitations under the License. limitations under the License.
--> -->
<assembly> <assembly>
<id>hadoop-bintar</id> <id>hadoop-distro</id>
<formats> <formats>
<format>dir</format> <format>dir</format>
</formats> </formats>

View File

@ -337,6 +337,9 @@ Trunk (unreleased changes)
HADOOP-7498. Remove legacy TAR layout creation. (Alejandro Abdelnur via HADOOP-7498. Remove legacy TAR layout creation. (Alejandro Abdelnur via
tomwhite) tomwhite)
HADOOP-7496. Break Maven TAR & bintar profiles into just LAYOUT & TAR proper.
(Alejandro Abdelnur via tomwhite)
OPTIMIZATIONS OPTIMIZATIONS
HADOOP-7333. Performance improvement in PureJavaCrc32. (Eric Caspole HADOOP-7333. Performance improvement in PureJavaCrc32. (Eric Caspole

View File

@ -16,9 +16,9 @@
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<parent> <parent>
<groupId>org.apache.hadoop</groupId> <groupId>org.apache.hadoop</groupId>
<artifactId>hadoop-project-distro</artifactId> <artifactId>hadoop-project-dist</artifactId>
<version>0.23.0-SNAPSHOT</version> <version>0.23.0-SNAPSHOT</version>
<relativePath>../hadoop-project-distro</relativePath> <relativePath>../hadoop-project-dist</relativePath>
</parent> </parent>
<groupId>org.apache.hadoop</groupId> <groupId>org.apache.hadoop</groupId>
<artifactId>hadoop-common</artifactId> <artifactId>hadoop-common</artifactId>

View File

@ -16,9 +16,9 @@
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<parent> <parent>
<groupId>org.apache.hadoop</groupId> <groupId>org.apache.hadoop</groupId>
<artifactId>hadoop-project-distro</artifactId> <artifactId>hadoop-project-dist</artifactId>
<version>0.23.0-SNAPSHOT</version> <version>0.23.0-SNAPSHOT</version>
<relativePath>../hadoop-project-distro</relativePath> <relativePath>../hadoop-project-dist</relativePath>
</parent> </parent>
<groupId>org.apache.hadoop</groupId> <groupId>org.apache.hadoop</groupId>
<artifactId>hadoop-hdfs</artifactId> <artifactId>hadoop-hdfs</artifactId>

View File

@ -1,4 +1,4 @@
DUMMY. DUMMY.
Required for the assembly:single goal not to fail because there Required for the assembly:single goal not to fail because there
are not files in the hadoop-project-distro module. are not files in the hadoop-project-dist module.

View File

@ -21,10 +21,10 @@
<relativePath>../hadoop-project</relativePath> <relativePath>../hadoop-project</relativePath>
</parent> </parent>
<groupId>org.apache.hadoop</groupId> <groupId>org.apache.hadoop</groupId>
<artifactId>hadoop-project-distro</artifactId> <artifactId>hadoop-project-dist</artifactId>
<version>0.23.0-SNAPSHOT</version> <version>0.23.0-SNAPSHOT</version>
<description>Apache Hadoop Project Distro POM</description> <description>Apache Hadoop Project Dist POM</description>
<name>Apache Hadoop Project Distro POM</name> <name>Apache Hadoop Project Dist POM</name>
<packaging>pom</packaging> <packaging>pom</packaging>
<properties> <properties>
@ -356,7 +356,7 @@
</profile> </profile>
<profile> <profile>
<id>tar</id> <id>dist</id>
<activation> <activation>
<activeByDefault>false</activeByDefault> <activeByDefault>false</activeByDefault>
</activation> </activation>
@ -367,7 +367,7 @@
<artifactId>maven-antrun-plugin</artifactId> <artifactId>maven-antrun-plugin</artifactId>
<executions> <executions>
<execution> <execution>
<id>pre-tar</id> <id>pre-dist</id>
<phase>prepare-package</phase> <phase>prepare-package</phase>
<goals> <goals>
<goal>run</goal> <goal>run</goal>
@ -375,7 +375,7 @@
<configuration> <configuration>
<target> <target>
<!-- Using Unix script to preserve symlinks --> <!-- Using Unix script to preserve symlinks -->
<echo file="${project.build.directory}/tar-copynativelibs.sh"> <echo file="${project.build.directory}/dist-copynativelibs.sh">
which cygpath 2> /dev/null which cygpath 2> /dev/null
if [ $? = 1 ]; then if [ $? = 1 ]; then
@ -398,7 +398,7 @@
fi fi
</echo> </echo>
<exec executable="sh" dir="${project.build.directory}" failonerror="true"> <exec executable="sh" dir="${project.build.directory}" failonerror="true">
<arg line="./tar-copynativelibs.sh"/> <arg line="./dist-copynativelibs.sh"/>
</exec> </exec>
</target> </target>
</configuration> </configuration>
@ -410,9 +410,9 @@
<goal>run</goal> <goal>run</goal>
</goals> </goals>
<configuration> <configuration>
<target> <target if="tar">
<!-- Using Unix script to preserve symlinks --> <!-- Using Unix script to preserve symlinks -->
<echo file="${project.build.directory}/tar-maketar.sh"> <echo file="${project.build.directory}/dist-maketar.sh">
which cygpath 2> /dev/null which cygpath 2> /dev/null
if [ $? = 1 ]; then if [ $? = 1 ]; then
@ -424,7 +424,7 @@
tar czf ${project.artifactId}-${project.version}.tar.gz ${project.artifactId}-${project.version} tar czf ${project.artifactId}-${project.version}.tar.gz ${project.artifactId}-${project.version}
</echo> </echo>
<exec executable="sh" dir="${project.build.directory}" failonerror="true"> <exec executable="sh" dir="${project.build.directory}" failonerror="true">
<arg line="./tar-maketar.sh"/> <arg line="./dist-maketar.sh"/>
</exec> </exec>
</target> </target>
</configuration> </configuration>
@ -443,7 +443,7 @@
</dependencies> </dependencies>
<executions> <executions>
<execution> <execution>
<id>pre-tar</id> <id>dist</id>
<phase>prepare-package</phase> <phase>prepare-package</phase>
<goals> <goals>
<goal>single</goal> <goal>single</goal>
@ -453,7 +453,7 @@
<attach>false</attach> <attach>false</attach>
<finalName>${project.artifactId}-${project.version}</finalName> <finalName>${project.artifactId}-${project.version}</finalName>
<descriptorRefs> <descriptorRefs>
<descriptorRef>hadoop-tar</descriptorRef> <descriptorRef>hadoop-dist</descriptorRef>
</descriptorRefs> </descriptorRefs>
</configuration> </configuration>
</execution> </execution>

View File

@ -35,7 +35,7 @@
<modules> <modules>
<module>hadoop-project</module> <module>hadoop-project</module>
<module>hadoop-project-distro</module> <module>hadoop-project-dist</module>
<module>hadoop-assemblies</module> <module>hadoop-assemblies</module>
<module>hadoop-annotations</module> <module>hadoop-annotations</module>
<module>hadoop-alfredo</module> <module>hadoop-alfredo</module>