You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by st...@apache.org on 2013/03/22 23:39:42 UTC

svn commit: r1460037 - in /hbase/trunk: dev-support/test-patch.sh pom.xml src/docbkx/developer.xml

Author: stack
Date: Fri Mar 22 22:39:42 2013
New Revision: 1460037

URL: http://svn.apache.org/r1460037
Log:
HBASE-8186 Untether javadoc and site build

Modified:
    hbase/trunk/dev-support/test-patch.sh
    hbase/trunk/pom.xml
    hbase/trunk/src/docbkx/developer.xml

Modified: hbase/trunk/dev-support/test-patch.sh
URL: http://svn.apache.org/viewvc/hbase/trunk/dev-support/test-patch.sh?rev=1460037&r1=1460036&r2=1460037&view=diff
==============================================================================
--- hbase/trunk/dev-support/test-patch.sh (original)
+++ hbase/trunk/dev-support/test-patch.sh Fri Mar 22 22:39:42 2013
@@ -695,9 +695,9 @@ checkSiteXml () {
   echo ""
   echo ""
 
-  echo "$MVN compile site -N -DskipTests -D${PROJECT_NAME}PatchProcess > $PATCH_DIR/patchSiteOutput.txt 2>&1"
+  echo "$MVN compile site -DskipTests -D${PROJECT_NAME}PatchProcess > $PATCH_DIR/patchSiteOutput.txt 2>&1"
   export MAVEN_OPTS="${MAVEN_OPTS}"
-  $MVN compile site -N -DskipTests -D${PROJECT_NAME}PatchProcess  > $PATCH_DIR/patchSiteOutput.txt 2>&1
+  $MVN compile site -DskipTests -D${PROJECT_NAME}PatchProcess  > $PATCH_DIR/patchSiteOutput.txt 2>&1
   if [[ $? != 0 ]] ; then
     JIRA_COMMENT="$JIRA_COMMENT
 

Modified: hbase/trunk/pom.xml
URL: http://svn.apache.org/viewvc/hbase/trunk/pom.xml?rev=1460037&r1=1460036&r2=1460037&view=diff
==============================================================================
--- hbase/trunk/pom.xml (original)
+++ hbase/trunk/pom.xml Fri Mar 22 22:39:42 2013
@@ -418,6 +418,14 @@
     <pluginManagement>
       <plugins>
         <plugin>
+          <!--Intentionally, this is not bound to a phase because it is an
+           'aggregating' plugin; it expects to be run from the top-level only; see
+           http://www.sonatype.com/books/mvnref-book/reference/assemblies-sect-basics.html.
+           When it was bound to pre-site, we were descending into modules expecting
+           dependencies like hbase-*.jar to be already built.  It was messing us up,
+           particular on clean checkouts.  To get javadoc into your site, you must
+           precede site build by invocation of javadoc:aggregate expplicitly.
+           -->
           <groupId>org.apache.maven.plugins</groupId>
           <artifactId>maven-javadoc-plugin</artifactId>
           <version>${javadoc.version}</version>
@@ -427,7 +435,6 @@
               <goals>
                 <goal>aggregate</goal>
               </goals>
-              <phase>pre-site</phase>
             </execution>
           </executions>
           <configuration>

Modified: hbase/trunk/src/docbkx/developer.xml
URL: http://svn.apache.org/viewvc/hbase/trunk/src/docbkx/developer.xml?rev=1460037&r1=1460036&r2=1460037&view=diff
==============================================================================
--- hbase/trunk/src/docbkx/developer.xml (original)
+++ hbase/trunk/src/docbkx/developer.xml Fri Mar 22 22:39:42 2013
@@ -164,7 +164,7 @@ mvn clean package -DskipTests
         <title>Building the HBase tarball</title>
         <para>Do the following to build the HBase tarball.
         Passing the -Prelease will generate javadoc and run the RAT plugin to verify licenses on source.
-        <programlisting>% MAVEN_OPTS="-Xmx2g" mvn clean site install assembly:assembly -DskipTests -Prelease</programlisting>
+        <programlisting>% MAVEN_OPTS="-Xmx2g" mvn clean install javadoc:aggregate site assembly:assembly -DskipTests -Prelease</programlisting>
 </para>
       </section>
 
@@ -343,7 +343,7 @@ What is the new development version for 
               # Getting the javadoc into site is a little tricky.  You have to build it independent, then
               # 'aggregate' it at top-level so the pre-site site lifecycle step can find it; that is
               # what the javadoc:javadoc and javadoc:aggregate is about.
-              $ MAVEN_OPTS=" -Xmx3g" mvn clean -DskipTests javadoc:javadoc javadoc:aggregate site  site:stage -DstagingDirectory=/Users/stack/checkouts/hbase.apache.org/trunk
+              $ MAVEN_OPTS=" -Xmx3g" mvn clean -DskipTests javadoc:aggregate site  site:stage -DstagingDirectory=/Users/stack/checkouts/hbase.apache.org/trunk
               # Check the deployed site by viewing in a brower.
               # If all is good, commit it and it will show up at http://hbase.apache.org
               #