You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by ol...@apache.org on 2012/10/01 15:07:33 UTC

svn commit: r1392309 - in /tomcat/maven-plugin/trunk: deploySite.sh pom.xml

Author: olamy
Date: Mon Oct  1 13:07:32 2012
New Revision: 1392309

URL: http://svn.apache.org/viewvc?rev=1392309&view=rev
Log:
configuration to deploy site to svn

Added:
    tomcat/maven-plugin/trunk/deploySite.sh   (with props)
Modified:
    tomcat/maven-plugin/trunk/pom.xml

Added: tomcat/maven-plugin/trunk/deploySite.sh
URL: http://svn.apache.org/viewvc/tomcat/maven-plugin/trunk/deploySite.sh?rev=1392309&view=auto
==============================================================================
--- tomcat/maven-plugin/trunk/deploySite.sh (added)
+++ tomcat/maven-plugin/trunk/deploySite.sh Mon Oct  1 13:07:32 2012
@@ -0,0 +1 @@
+mvn clean site-deploy scm-publish:publish-scm $@

Propchange: tomcat/maven-plugin/trunk/deploySite.sh
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: tomcat/maven-plugin/trunk/deploySite.sh
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Modified: tomcat/maven-plugin/trunk/pom.xml
URL: http://svn.apache.org/viewvc/tomcat/maven-plugin/trunk/pom.xml?rev=1392309&r1=1392308&r2=1392309&view=diff
==============================================================================
--- tomcat/maven-plugin/trunk/pom.xml (original)
+++ tomcat/maven-plugin/trunk/pom.xml Mon Oct  1 13:07:32 2012
@@ -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>
 



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org