Permalink
Browse files

configuration to deploy site to svn

git-svn-id: https://svn.apache.org/repos/asf/tomcat/maven-plugin/trunk@1392309 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information...
1 parent 080d2c5 commit 5475e45d8b80ee55ac58cb0e64c52791e22c919c @olamy olamy committed Oct 1, 2012
Showing with 21 additions and 1 deletion.
  1. +1 −0 deploySite.sh
  2. +20 −1 pom.xml
View
@@ -0,0 +1 @@
+mvn clean site-deploy scm-publish:publish-scm $@
View
21 pom.xml
@@ -72,6 +72,11 @@
<!-- to prevent isssues with last apache parent pom -->
<arguments />
+
+ <tomcat-maven.siteFilePath>${user.home}/tomcat-maven-plugin-${project.version}/</tomcat-maven.siteFilePath>
+ <tomcat-maven.siteUrlDeployment>file://${tomcat-maven.siteFilePath}</tomcat-maven.siteUrlDeployment>
+ <tomcat-maven.scmPubCheckoutDirectory>${user.home}/tomcat-maven-plugin-${project.version}-content</tomcat-maven.scmPubCheckoutDirectory>
+
</properties>
<prerequisites>
@@ -686,6 +691,20 @@
</excludes>
</configuration>
</plugin>
+
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-scm-publish-plugin</artifactId>
+ <version>1.0</version>
+ <configuration>
+ <pubScmUrl>scm:svn:https://svn.apache.org/repos/asf/tomcat/site/trunk/docs/maven-plugin-${project.version}</pubScmUrl>
+ <checkinComment>Apache Tomcat Maven Plugin site documentation for ${project.version}</checkinComment>
+ <content>${tomcat-maven.siteFilePath}</content>
+ <checkoutDirectory>${tomcat-maven.scmPubCheckoutDirectory}</checkoutDirectory>
+ <tryUpdate>true</tryUpdate>
+ </configuration>
+ </plugin>
+
</plugins>
</pluginManagement>
<plugins>
@@ -739,7 +758,7 @@
</snapshotRepository>
<site>
<id>apache.website</id>
- <url>${distributionSiteUrl}</url>
+ <url>${tomcat-maven.siteUrlDeployment}</url>
</site>
</distributionManagement>

0 comments on commit 5475e45

Please sign in to comment.