Return-Path: X-Original-To: apmail-hadoop-common-commits-archive@www.apache.org Delivered-To: apmail-hadoop-common-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 866668FB2 for ; Mon, 22 Aug 2011 17:41:23 +0000 (UTC) Received: (qmail 87140 invoked by uid 500); 22 Aug 2011 17:41:22 -0000 Delivered-To: apmail-hadoop-common-commits-archive@hadoop.apache.org Received: (qmail 86764 invoked by uid 500); 22 Aug 2011 17:41:21 -0000 Mailing-List: contact common-commits-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: common-dev@hadoop.apache.org Delivered-To: mailing list common-commits@hadoop.apache.org Received: (qmail 86695 invoked by uid 99); 22 Aug 2011 17:41:21 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 22 Aug 2011 17:41:21 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 22 Aug 2011 17:41:19 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id 230E623889B3 for ; Mon, 22 Aug 2011 17:40:59 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1160344 - in /hadoop/common/trunk: ./ hadoop-assemblies/src/main/resources/assemblies/ hadoop-project-dist/ hadoop-project-distro/ Date: Mon, 22 Aug 2011 17:40:58 -0000 To: common-commits@hadoop.apache.org From: tomwhite@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20110822174059.230E623889B3@eris.apache.org> Author: tomwhite Date: Mon Aug 22 17:40:58 2011 New Revision: 1160344 URL: http://svn.apache.org/viewvc?rev=1160344&view=rev Log: HADOOP-7496. Break Maven TAR & bintar profiles into just LAYOUT & TAR proper. Contributed by Alejandro Abdelnur. Added: hadoop/common/trunk/hadoop-assemblies/src/main/resources/assemblies/hadoop-dist.xml (with props) hadoop/common/trunk/hadoop-project-dist/ hadoop/common/trunk/hadoop-project-dist/README.txt (with props) hadoop/common/trunk/hadoop-project-dist/pom.xml (with props) Removed: hadoop/common/trunk/hadoop-assemblies/src/main/resources/assemblies/hadoop-tar.xml hadoop/common/trunk/hadoop-project-distro/ Modified: hadoop/common/trunk/BUILDING.txt hadoop/common/trunk/pom.xml Modified: hadoop/common/trunk/BUILDING.txt URL: http://svn.apache.org/viewvc/hadoop/common/trunk/BUILDING.txt?rev=1160344&r1=1160343&r2=1160344&view=diff ============================================================================== --- hadoop/common/trunk/BUILDING.txt (original) +++ hadoop/common/trunk/BUILDING.txt Mon Aug 22 17:40:58 2011 @@ -15,12 +15,13 @@ Requirements: ---------------------------------------------------------------------------------- Maven modules: - hadoop (Main Hadoop project) - - hadoop-project (Parent POM for all Hadoop Maven modules. ) - (All plugins & dependencies versions are defined here.) - - hadoop-annotations (Generates the Hadoop doclet used to generated the Javadocs) - - hadoop-common (Hadoop Common) - - hadoop-hdfs (Hadoop HDFS) + hadoop (Main Hadoop project) + - hadoop-project (Parent POM for all Hadoop Maven modules. ) + (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-common (Hadoop Common) + - hadoop-hdfs (Hadoop HDFS) ---------------------------------------------------------------------------------- Where to run Maven from? @@ -43,15 +44,16 @@ Maven build goals: * Run clover : mvn test -Pclover [-DcloverLicenseLocation=${user.name}/.clover.license] * Run Rat : mvn apache-rat:check * Build javadocs : mvn javadoc:javadoc - * Build TAR : mvn package [-Ptar][-Pdocs][-Psrc][-Pnative] + * Build distribution : mvn package [-Pdist][-Pdocs][-Psrc][-Pnative][-Dtar] Build options: * Use -Pnative to compile/bundle native code * Use -Dsnappy.prefix=(/usr/local) & -Dbundle.snappy=(false) to compile Snappy JNI bindings and to bundle Snappy SO files - * Use -Pdocs to generate & bundle the documentation in the TAR (using -Ptar) - * Use -Psrc to bundle the source 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 distribution (using -Pdist) + * Use -Dtar to create a TAR with the distribution (using -Pdist) Tests options: Added: hadoop/common/trunk/hadoop-assemblies/src/main/resources/assemblies/hadoop-dist.xml URL: http://svn.apache.org/viewvc/hadoop/common/trunk/hadoop-assemblies/src/main/resources/assemblies/hadoop-dist.xml?rev=1160344&view=auto ============================================================================== --- hadoop/common/trunk/hadoop-assemblies/src/main/resources/assemblies/hadoop-dist.xml (added) +++ hadoop/common/trunk/hadoop-assemblies/src/main/resources/assemblies/hadoop-dist.xml Mon Aug 22 17:40:58 2011 @@ -0,0 +1,121 @@ + + + hadoop-distro + + dir + + false + + + ${basedir}/src/main/bin + /bin + + *.sh + + 0755 + + + ${basedir}/src/main/conf + /etc/hadoop + + + ${basedir}/src/main/bin + /libexec + + *-config.sh + + 0755 + + + ${basedir}/src/main/bin + /sbin + + *.sh + + + hadoop-config.sh + + 0755 + + + ${basedir}/src/main/packages + /sbin + + *.sh + + 0755 + + + ${basedir} + /share/doc/hadoop/${hadoop.component} + + *.txt + + + + ${project.build.directory}/webapps + /share/hadoop/${hadoop.component}/webapps + + + ${basedir}/src/main/conf + /share/hadoop/${hadoop.component}/templates + + *-site.xml + + + + ${project.build.directory} + /share/hadoop/${hadoop.component} + + ${project.artifactId}-${project.version}.jar + ${project.artifactId}-${project.version}-tests.jar + ${project.artifactId}-${project.version}-sources.jar + ${project.artifactId}-${project.version}-test-sources.jar + + + + ${basedir}/dev-support/jdiff + /share/hadoop/${hadoop.component}/jdiff + + + ${project.build.directory}/site/jdiff/xml + /share/hadoop/${hadoop.component}/jdiff + + + ${project.build.directory}/site + /share/doc/hadoop/${hadoop.component} + + + ${project.build.directory}/src + /share/hadoop/${hadoop.component}/src + + + + + /share/hadoop/${hadoop.component}/lib + false + runtime + false + + org.apache.ant:*:jar + org.apache.hadoop:hadoop-*:jar + jdiff:jdiff:jar + + + + Propchange: hadoop/common/trunk/hadoop-assemblies/src/main/resources/assemblies/hadoop-dist.xml ------------------------------------------------------------------------------ svn:eol-style = native Added: hadoop/common/trunk/hadoop-project-dist/README.txt URL: http://svn.apache.org/viewvc/hadoop/common/trunk/hadoop-project-dist/README.txt?rev=1160344&view=auto ============================================================================== --- hadoop/common/trunk/hadoop-project-dist/README.txt (added) +++ hadoop/common/trunk/hadoop-project-dist/README.txt Mon Aug 22 17:40:58 2011 @@ -0,0 +1,4 @@ +DUMMY. + +Required for the assembly:single goal not to fail because there +are not files in the hadoop-project-dist module. Propchange: hadoop/common/trunk/hadoop-project-dist/README.txt ------------------------------------------------------------------------------ svn:eol-style = native Added: hadoop/common/trunk/hadoop-project-dist/pom.xml URL: http://svn.apache.org/viewvc/hadoop/common/trunk/hadoop-project-dist/pom.xml?rev=1160344&view=auto ============================================================================== --- hadoop/common/trunk/hadoop-project-dist/pom.xml (added) +++ hadoop/common/trunk/hadoop-project-dist/pom.xml Mon Aug 22 17:40:58 2011 @@ -0,0 +1,466 @@ + + + + 4.0.0 + + org.apache.hadoop + hadoop-project + 0.23.0-SNAPSHOT + ../hadoop-project + + org.apache.hadoop + hadoop-project-dist + 0.23.0-SNAPSHOT + Apache Hadoop Project Dist POM + Apache Hadoop Project Dist POM + pom + + + ${project.build.directory}/test + ${project.build.directory}/test/data + ${project.build.directory}/log + ${project.build.directory}/test-classes/webapps + ${project.build.directory}/test-classes + ${project.build.directory}/test-classes + + UNDEF + false + + + + + org.apache.hadoop + hadoop-annotations + provided + + + + + + + org.apache.maven.plugins + maven-jar-plugin + + + prepare-jar + prepare-package + + jar + + + + prepare-test-jar + prepare-package + + test-jar + + + + **/*.class + + + + + + + org.apache.maven.plugins + maven-source-plugin + + + prepare-package + + jar + test-jar + + + + + true + + + + org.codehaus.mojo + findbugs-maven-plugin + + ${basedir}/dev-support/findbugsExcludeFile.xml + + + + org.apache.maven.plugins + maven-checkstyle-plugin + + file://${basedir}/dev-support/checkstyle.xml + false + xml + html + ${project.build.directory}/test/checkstyle-errors.xml + + + + org.apache.maven.plugins + maven-javadoc-plugin + + true + true + false + ${maven.compile.source} + ${maven.compile.encoding} + ${project.build.directory}/site + api + + + ${project.name} API + org.apache.hadoop* + + + org.apache.hadoop.classification.tools.ExcludePrivateAnnotationsStandardDoclet + + + org.apache.hadoop + hadoop-annotations + ${project.version} + + + true + + + false + + + + org.apache.hadoop:hadoop-annotations + + + + + + + + + + docs + + false + + + 0.20.2 + -unstable + + 512m + + + + + org.apache.maven.plugins + maven-javadoc-plugin + + + + javadoc + + prepare-package + + + + + org.codehaus.mojo + findbugs-maven-plugin + + + + findbugs + + prepare-package + + + + ${basedir}/dev-support/findbugsExcludeFile.xml + + + + org.apache.maven.plugins + maven-dependency-plugin + + + site + prepare-package + + copy + + + + + jdiff + jdiff + ${jdiff.version} + false + ${project.build.directory} + jdiff.jar + + + org.apache.hadoop + hadoop-annotations + ${hadoop.annotations.version} + false + ${project.build.directory} + hadoop-annotations.jar + + + + + + + + org.apache.maven.plugins + maven-antrun-plugin + + + site + prepare-package + + run + + + + + + + + + + + + + + + + + +