Author: brett
Date: Wed Jul 2 08:27:53 2014
New Revision: 1607287
URL: http://svn.apache.org/r1607287
Log:
add site publish instructions
Modified:
incubator/npanday/site/pom.xml
Modified: incubator/npanday/site/pom.xml
URL:
http://svn.apache.org/viewvc/incubator/npanday/site/pom.xml?rev=1607287&r1=1607286&r2=1607287&view=diff
==============================================================================
--- incubator/npanday/site/pom.xml (original)
+++ incubator/npanday/site/pom.xml Wed Jul 2 08:27:53 2014
@@ -22,7 +22,7 @@
<parent>
<groupId>org.apache</groupId>
<artifactId>apache</artifactId>
- <version>7</version>
+ <version>14</version>
</parent>
<groupId>npanday</groupId>
<version>1.4.0-incubating</version>
@@ -31,7 +31,7 @@
<name>NPanday</name>
<url>http://incubator.apache.org/npanday/</url>
<prerequisites>
- <maven>2.2.1</maven>
+ <maven>3.0</maven>
</prerequisites>
<description>NPanday provides Maven plugins to support building of .NET
applications</description>
@@ -261,7 +261,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-project-info-reports-plugin</artifactId>
- <version>2.1.2</version>
+ <version>2.7</version>
<reportSets>
<reportSet>
<reports>
@@ -278,14 +278,16 @@
<distributionManagement>
<site>
- <id>apache.website</id>
- <url>scp://people.apache.org/www/incubator.apache.org/npanday/</url>
+ <id>site</id>
+ <url>scm:svn:${sitePublishUrl}</url>
</site>
</distributionManagement>
<properties>
<npandayReleaseVersion>1.4.0-incubating</npandayReleaseVersion>
<npandayReleaseDate>06 May 2011</npandayReleaseDate>
+
<sitePublishUrl>https://svn.apache.org/repos/asf/incubator/npanday/site-publish</sitePublishUrl>
+ <checkoutDirectory>${basedir}/site-publish</checkoutDirectory>
</properties>
<build>
@@ -293,7 +295,6 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-site-plugin</artifactId>
- <version>2.2</version>
<executions>
<execution>
<id>site</id>
@@ -303,6 +304,28 @@
</goals>
</execution>
</executions>
+ <configuration>
+ <skipDeploy>true</skipDeploy>
+ </configuration>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-scm-publish-plugin</artifactId>
+ <version>1.1</version>
+ <configuration>
+ <content>${project.build.directory}/site</content>
+ <checkoutDirectory>${checkoutDirectory}</checkoutDirectory>
+ <tryUpdate>true</tryUpdate>
+ </configuration>
+ <executions>
+ <execution>
+ <id>scm-publish</id>
+ <phase>site-deploy</phase>
+ <goals>
+ <goal>publish-scm</goal>
+ </goals>
+ </execution>
+ </executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
@@ -328,12 +351,51 @@
</executions>
</plugin>
</plugins>
- <extensions>
- <extension>
- <groupId>org.apache.maven.wagon</groupId>
- <artifactId>wagon-ssh</artifactId>
- <version>1.0-beta-6</version>
- </extension>
- </extensions>
</build>
- </project>
+ <profiles>
+ <profile>
+ <id>setup-checkout</id>
+ <activation>
+ <file>
+ <missing>site-publish</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 ${sitePublishUrl}
${checkoutDirectory}" />
+ </exec>
+
+ <exec executable="svn">
+ <arg line="update --set-depth exclude
${checkoutDirectory}/docs" />
+ </exec>
+
+ <pathconvert pathsep=" " property="dirs">
+ <dirset dir="${checkoutDirectory}" includes="*" />
+ </pathconvert>
+ <exec executable="svn">
+ <arg line="update --set-depth infinity ${dirs}" />
+ </exec>
+ </tasks>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+ </profile>
+ </profiles>
+</project>