Author: olamy
Date: Thu Jan 24 21:03:46 2013
New Revision: 1438192

URL: http://svn.apache.org/viewvc?rev=1438192&view=rev
Log:
svnpubsub configuration

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

Added: maven/plugin-tools/trunk/deploySite.sh
URL: 
http://svn.apache.org/viewvc/maven/plugin-tools/trunk/deploySite.sh?rev=1438192&view=auto
==============================================================================
--- maven/plugin-tools/trunk/deploySite.sh (added)
+++ maven/plugin-tools/trunk/deploySite.sh Thu Jan 24 21:03:46 2013
@@ -0,0 +1,22 @@
+#!/bin/sh
+
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#   http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+
+mvn clean site-deploy scm-publish:publish-scm $@

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

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

Modified: maven/plugin-tools/trunk/pom.xml
URL: 
http://svn.apache.org/viewvc/maven/plugin-tools/trunk/pom.xml?rev=1438192&r1=1438191&r2=1438192&view=diff
==============================================================================
--- maven/plugin-tools/trunk/pom.xml (original)
+++ maven/plugin-tools/trunk/pom.xml Thu Jan 24 21:03:46 2013
@@ -37,7 +37,7 @@
     The Maven Plugin Tools contains the necessary tools to be able to produce 
Maven Plugins in scripting languages
     and to generate rebarbative content like descriptor, help and 
documentation.
   </description>
-  <url>http://maven.apache.org/plugin-tools/</url>
+  <url>${maven.pluginTools.url}</url>
   <inceptionYear>2004</inceptionYear>
 
   <mailingLists>
@@ -166,6 +166,13 @@
     <mavenVersion>2.2.1</mavenVersion>
     <antVersion>1.7.1</antVersion>
     <mavenInvokerPluginVersion>1.6</mavenInvokerPluginVersion>
+
+    
<maven.pluginTools.siteFilePath>${maven.site.cache}/maven-scm-${project.version}</maven.pluginTools.siteFilePath>
+    
<maven.pluginTools.siteUrlDeployment>file://${maven.pluginTools.siteFilePath}</maven.pluginTools.siteUrlDeployment>
+    
<maven.pluginTools.scmPubCheckoutDirectory>${maven.site.cache}/maven-plugin-tools-site-content-${project.version}</maven.pluginTools.scmPubCheckoutDirectory>
+    
<maven.pluginTools.scmPubUrl>https://svn.apache.org/repos/infra/websites/production/maven/content/plugin-tools-archives/plugin-tools-${project.version}</maven.pluginTools.scmPubUrl>
+    
<maven.pluginTools.url>http://maven.apache.org/plugin-tools-archives/plugin-tools-${project.version}</maven.pluginTools.url>
+
   </properties>
 
   <dependencyManagement>
@@ -340,6 +347,17 @@
         </plugin>
         <plugin>
           <groupId>org.apache.maven.plugins</groupId>
+          <artifactId>maven-scm-publish-plugin</artifactId>
+          <configuration>
+            
<checkoutDirectory>${maven.pluginTools.scmPubCheckoutDirectory}</checkoutDirectory>
+            <pubScmUrl>scm:svn:${maven.pluginTools.scmPubUrl}</pubScmUrl>
+            <checkinComment>Apache Maven Plugin Tools site 
deployment</checkinComment>
+            <content>${maven.pluginTools.siteFilePath}</content>
+            <tryUpdate>true</tryUpdate>
+          </configuration>
+        </plugin>
+        <plugin>
+          <groupId>org.apache.maven.plugins</groupId>
           <artifactId>maven-site-plugin</artifactId>
           <configuration>
             
<stagingSiteURL>scp://people.apache.org/www/maven.apache.org/plugin-tools-${project.version}</stagingSiteURL>
@@ -441,5 +459,16 @@
         </plugins>
       </reporting>
     </profile>
+
+    <profile>
+      <id>site-release</id>
+      <properties>
+        
<maven.pluginTools.siteFilePath>${maven.site.cache}/maven-plugin-tools</maven.pluginTools.siteFilePath>
+        
<maven.pluginTools.scmPubCheckoutDirectory>${maven.site.cache}/plugin-tools</maven.pluginTools.scmPubCheckoutDirectory>
+        
<maven.pluginTools.scmPubUrl>https://svn.apache.org/repos/infra/websites/production/maven/content/plugin-tools</maven.pluginTools.scmPubUrl>
+        
<maven.pluginTools.url>http://maven.apache.org/plugin-tools</maven.pluginTools.url>
+      </properties>
+    </profile>
+
   </profiles>
 </project>


Reply via email to