configure svnpubsub deployment

Project: http://git-wip-us.apache.org/repos/asf/maven-scm/repo
Commit: http://git-wip-us.apache.org/repos/asf/maven-scm/commit/95ed7a48
Tree: http://git-wip-us.apache.org/repos/asf/maven-scm/tree/95ed7a48
Diff: http://git-wip-us.apache.org/repos/asf/maven-scm/diff/95ed7a48

Branch: refs/heads/master
Commit: 95ed7a481f9749b4004091715ff0f35b94beeccb
Parents: 3f8778d
Author: olivier lamy <[email protected]>
Authored: Thu Jan 24 17:38:42 2013 +0100
Committer: olivier lamy <[email protected]>
Committed: Thu Jan 24 17:38:42 2013 +0100

----------------------------------------------------------------------
 deploySite.sh |   22 ++++++++++++++++++++++
 pom.xml       |   31 +++++++++++++++++++++++++++----
 2 files changed, 49 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/maven-scm/blob/95ed7a48/deploySite.sh
----------------------------------------------------------------------
diff --git a/deploySite.sh b/deploySite.sh
new file mode 100644
index 0000000..b6517a2
--- /dev/null
+++ b/deploySite.sh
@@ -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 $@

http://git-wip-us.apache.org/repos/asf/maven-scm/blob/95ed7a48/pom.xml
----------------------------------------------------------------------
diff --git a/pom.xml b/pom.xml
index 5d7c9a2..544dc81 100644
--- a/pom.xml
+++ b/pom.xml
@@ -35,7 +35,7 @@
 
   <name>Maven SCM</name>
   <description>Maven SCM provides a common API for doing SCM 
operations.</description>
-  <url>http://maven.apache.org/scm/</url>
+  <url>${maven.scm.url}</url>
   <inceptionYear>2003</inceptionYear>
 
   <mailingLists>
@@ -129,10 +129,19 @@
   <distributionManagement>
     <site>
       <id>apache.website</id>
-      <url>scp://people.apache.org/www/maven.apache.org/scm/</url>
+      <url>${maven.scm.siteUrlDeployment}</url>
     </site>
   </distributionManagement>
 
+  <properties>
+    <maven.site.cache>${user.home}/maven-sites</maven.site.cache>
+    
<maven.scm.siteFilePath>${maven.site.cache}/maven-scm-${project.version}</maven.scm.siteFilePath>
+    
<maven.scm.siteUrlDeployment>file://${maven.scm.siteFilePath}</maven.scm.siteUrlDeployment>
+    
<maven.scm.scmPubCheckoutDirectory>${maven.site.cache}/maven-scm-site-content-${project.version}</maven.scm.scmPubCheckoutDirectory>
+    
<maven.scm.scmPubUrl>https://svn.apache.org/repos/infra/websites/production/maven/content/scm-archives/scm-latest</maven.scm.scmPubUrl>
+    
<maven.scm.url>http://maven.apache.org/scm-archives/scm-latest/</maven.scm.url>
+  </properties>
+
   <dependencyManagement>
     <dependencies>
       <dependency>
@@ -315,9 +324,15 @@
           </configuration>
         </plugin>
         <plugin>
-          <artifactId>maven-site-plugin</artifactId>
+          <groupId>org.apache.maven.plugins</groupId>
+          <artifactId>maven-scm-publish-plugin</artifactId>
+          <version>1.0-beta-2</version>
           <configuration>
-            
<stagingSiteURL>scp://people.apache.org/www/maven.apache.org/scm-${project.version}</stagingSiteURL>
+            
<checkoutDirectory>${maven.scm.scmPubCheckoutDirectory}</checkoutDirectory>
+            <pubScmUrl>scm:svn:${maven.scm.scmPubUrl}</pubScmUrl>
+            <checkinComment>Apache Maven Scm site deployment</checkinComment>
+            <content>${maven.scm.siteFilePath}</content>
+            <tryUpdate>true</tryUpdate>
           </configuration>
         </plugin>
         <plugin>
@@ -581,6 +596,14 @@
         </plugins>
       </build>
     </profile>
+    <profile>
+      <id>site-release</id>
+      <properties>
+        
<maven.scm.scmPubCheckoutDirectory>${maven.site.cache}/maven-scm-site-content</maven.scm.scmPubCheckoutDirectory>
+        
<maven.scm.scmPubUrl>https://svn.apache.org/repos/infra/websites/production/maven/content/scm</maven.scm.scmPubUrl>
+        <maven.scm.url>http://maven.apache.org/scm/</maven.scm.url>
+      </properties>
+    </profile>
 
   </profiles>
   

Reply via email to