You are viewing a plain text version of this content. The canonical link for it is here.
Posted to kalumet-commits@incubator.apache.org by ol...@apache.org on 2013/01/07 08:40:14 UTC
svn commit: r1429705 - /incubator/kalumet/site/pom.xml
Author: olamy
Date: Mon Jan 7 08:40:14 2013
New Revision: 1429705
URL: http://svn.apache.org/viewvc?rev=1429705&view=rev
Log:
configure svnpubsub for site
Modified:
incubator/kalumet/site/pom.xml
Modified: incubator/kalumet/site/pom.xml
URL: http://svn.apache.org/viewvc/incubator/kalumet/site/pom.xml?rev=1429705&r1=1429704&r2=1429705&view=diff
==============================================================================
--- incubator/kalumet/site/pom.xml (original)
+++ incubator/kalumet/site/pom.xml Mon Jan 7 08:40:14 2013
@@ -41,13 +41,66 @@
<url>http://svn.apache.org/repos/asf/incubator/kalumet/site</url>
</scm>
+ <properties>
+ <svnUrl>https://svn.apache.org/repos/asf/incubator/kalumet/site-content/</svnUrl>
+ <scmPubCheckoutDirectory>site-content</scmPubCheckoutDirectory>
+ </properties>
+
<distributionManagement>
<site>
<id>apache.website</id>
- <url>scp://people.apache.org/www/incubator.apache.org/content/kalumet</url>
+ <url>scm:svn:${svnUrl}</url>
</site>
</distributionManagement>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-site-plugin</artifactId>
+ <configuration>
+ <skipDeploy>true</skipDeploy>
+ </configuration>
+ <executions>
+ <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 Main site deployment</checkinComment>
+ <ignorePathsToDelete>
+ <ignorePathToDelete>docs**</ignorePathToDelete>
+ <ignorePathToDelete>ref**</ignorePathToDelete>
+ </ignorePathsToDelete>
+ </configuration>
+ <executions>
+ <execution>
+ <id>scm-publish</id>
+ <phase>site-deploy</phase>
+ <goals>
+ <goal>publish-scm</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+
<reporting>
<plugins>
<plugin>
@@ -71,4 +124,52 @@
</plugins>
</reporting>
+
+ <profiles>
+ <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 --depth immediates ${svnUrl} ${scmPubCheckoutDirectory}" />
+ </exec>
+
+ <exec executable="svn">
+ <arg line="update --set-depth exclude ${scmPubCheckoutDirectory}/ref ${scmPubCheckoutDirectory}/docs" />
+ </exec>
+
+ <pathconvert pathsep=" " property="dirs">
+ <dirset dir="${scmPubCheckoutDirectory}" includes="*" />
+ </pathconvert>
+ <exec executable="svn">
+ <arg line="update --set-depth infinity ${dirs}" />
+ </exec>
+ </tasks>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+ </profile>
+ </profiles>
+
</project>