incubator-kalumet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject svn commit: r1429723 - in /incubator/kalumet/trunk: .gitignore documentation/pom.xml documentation/src/site/site.xml
Date Mon, 07 Jan 2013 09:47:01 GMT
Author: olamy
Date: Mon Jan  7 09:47:01 2013
New Revision: 1429723

URL: http://svn.apache.org/viewvc?rev=1429723&view=rev
Log:
configure svnpubsub for documentation

Modified:
    incubator/kalumet/trunk/.gitignore
    incubator/kalumet/trunk/documentation/pom.xml
    incubator/kalumet/trunk/documentation/src/site/site.xml

Modified: incubator/kalumet/trunk/.gitignore
URL: http://svn.apache.org/viewvc/incubator/kalumet/trunk/.gitignore?rev=1429723&r1=1429722&r2=1429723&view=diff
==============================================================================
--- incubator/kalumet/trunk/.gitignore (original)
+++ incubator/kalumet/trunk/.gitignore Mon Jan  7 09:47:01 2013
@@ -5,3 +5,4 @@ target
 *.i??
 .DS_Store
 .idea
+documentation/site-content/

Modified: incubator/kalumet/trunk/documentation/pom.xml
URL: http://svn.apache.org/viewvc/incubator/kalumet/trunk/documentation/pom.xml?rev=1429723&r1=1429722&r2=1429723&view=diff
==============================================================================
--- incubator/kalumet/trunk/documentation/pom.xml (original)
+++ incubator/kalumet/trunk/documentation/pom.xml Mon Jan  7 09:47:01 2013
@@ -33,12 +33,20 @@
   <name>Apache Kalumet :: Documentation</name>
   <url>http://incubator.apache.org/kalumet/docs/${project.version}</url>
 
+  <properties>
+    <svnUrl>https://svn.apache.org/repos/asf/incubator/kalumet/site-content/docs/${project.version}</svnUrl>
+    <scmPubCheckoutDirectory>site-content</scmPubCheckoutDirectory>
+  </properties>
+
   <build>
     <plugins>
       <plugin>
         <groupId>org.apache.maven.plugins</groupId>
         <artifactId>maven-site-plugin</artifactId>
-        <version>3.1</version>
+        <version>3.2</version>
+        <configuration>
+          <skipDeploy>true</skipDeploy>
+        </configuration>
         <executions>
           <execution>
             <id>site</id>
@@ -47,14 +55,37 @@
               <goal>site</goal>
             </goals>
           </execution>
+          <execution>
+            <id>stage-for-scm-publish</id>
+            <phase>post-site</phase>
+            <goals>
+              <goal>stage</goal>
+            </goals>
+            <configuration>
+              <skipDeploy>false</skipDeploy>
+            </configuration>
+          </execution>
+        </executions>
+      </plugin>
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-scm-publish-plugin</artifactId>
+        <version>1.0-beta-2</version>
+        <configuration>
+          <checkoutDirectory>${scmPubCheckoutDirectory}</checkoutDirectory>
+          <tryUpdate>true</tryUpdate>
+          <skipDeletedFiles>false</skipDeletedFiles>
+          <checkinComment>Apache Kalumet Docs site deployment</checkinComment>
+        </configuration>
+        <executions>
+          <execution>
+            <id>scm-publish</id>
+            <phase>site-deploy</phase>
+            <goals>
+              <goal>publish-scm</goal>
+            </goals>
+          </execution>
         </executions>
-        <dependencies>
-          <dependency>
-            <groupId>org.codehaus.plexus</groupId>
-            <artifactId>plexus-utils</artifactId>
-            <version>3.0.2</version>
-          </dependency>
-        </dependencies>
       </plugin>
       <plugin>
         <groupId>org.apache.maven.plugins</groupId>
@@ -99,7 +130,7 @@
   <distributionManagement>
     <site>
       <id>apache.website</id>
-      <url>${siteBaseDeployment}/docs/${project.version}</url>
+      <url>scm:svn:${svnUrl}</url>
     </site>
   </distributionManagement>
 
@@ -120,6 +151,47 @@
                 </goals>
               </execution>
             </executions>
+            <dependencies>
+              <dependency>
+                <groupId>org.codehaus.plexus</groupId>
+                <artifactId>plexus-utils</artifactId>
+                <version>3.0.9</version>
+              </dependency>
+            </dependencies>
+          </plugin>
+        </plugins>
+      </build>
+    </profile>
+    <profile>
+      <id>setup-checkout</id>
+      <activation>
+        <file>
+          <missing>site-content</missing>
+        </file>
+      </activation>
+      <build>
+        <plugins>
+          <plugin>
+            <groupId>org.apache.maven.plugins</groupId>
+            <artifactId>maven-antrun-plugin</artifactId>
+            <version>1.7</version>
+            <executions>
+              <execution>
+                <id>prepare-checkout</id>
+                <phase>pre-site</phase>
+                <goals>
+                  <goal>run</goal>
+                </goals>
+                <configuration>
+                  <tasks>
+                    <exec executable="svn">
+                      <arg line="checkout ${svnUrl} ${scmPubCheckoutDirectory}" />
+                    </exec>
+
+                  </tasks>
+                </configuration>
+              </execution>
+            </executions>
           </plugin>
         </plugins>
       </build>

Modified: incubator/kalumet/trunk/documentation/src/site/site.xml
URL: http://svn.apache.org/viewvc/incubator/kalumet/trunk/documentation/src/site/site.xml?rev=1429723&r1=1429722&r2=1429723&view=diff
==============================================================================
--- incubator/kalumet/trunk/documentation/src/site/site.xml (original)
+++ incubator/kalumet/trunk/documentation/src/site/site.xml Mon Jan  7 09:47:01 2013
@@ -47,7 +47,7 @@
     </menu>
 
     <menu name="Administrator Guide">
-      <item name="Installation">
+      <item name="Installation" href="">
         <item name="Agent installation" href="/adminguide/agent.html"/>
         <item name="Console installation" href="/adminguide/console.html"/>
       </item>
@@ -59,11 +59,11 @@
       <item name="Agents" href="/userguide/agents.html"/>
       <item name="Users and Groups" href="/userguide/users_groups.html"/>
       <item name="Statistics" href="/userguide/statistics.html"/>
-      <item name="Environment">
+      <item name="Environment" href="">
         <item name="General" href="/userguide/environment/general.html"/>
         <item name="Security Access Lists" href="/userguide/environment/security.html"/>
         <item name="JEE Application Servers" href="/userguide/environment/jee_application_server.html"/>
-        <item name="JEE Resources">
+        <item name="JEE Resources" href="">
           <item name="JDBC Connection Pools" href="/userguide/environment/jdbc_connection_pools.html"/>
           <item name="JDBC Data Sources" href="/userguide/environment/jdbc_datasources.html"/>
           <item name="JMS Connection Factories" href="/userguide/environment/jms_connectionfactories.html"/>



Mime
View raw message