You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@any23.apache.org by si...@apache.org on 2012/12/30 14:06:36 UTC

svn commit: r1426928 - in /any23/trunk: deploy-site.sh pom.xml

Author: simonetripodi
Date: Sun Dec 30 13:06:35 2012
New Revision: 1426928

URL: http://svn.apache.org/viewvc?rev=1426928&view=rev
Log:
[ANY23-139] Simplify site deploy plugging the maven-scm-publish-plugin

Added:
    any23/trunk/deploy-site.sh   (with props)
Modified:
    any23/trunk/pom.xml

Added: any23/trunk/deploy-site.sh
URL: http://svn.apache.org/viewvc/any23/trunk/deploy-site.sh?rev=1426928&view=auto
==============================================================================
--- any23/trunk/deploy-site.sh (added)
+++ any23/trunk/deploy-site.sh Sun Dec 30 13:06:35 2012
@@ -0,0 +1,20 @@
+#!/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 -P site clean site-deploy scm-publish:publish-scm -Dusername=$1 -Dpassword=$2
\ No newline at end of file

Propchange: any23/trunk/deploy-site.sh
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: any23/trunk/deploy-site.sh
------------------------------------------------------------------------------
    svn:executable = *

Propchange: any23/trunk/deploy-site.sh
------------------------------------------------------------------------------
    svn:keywords = Date Revision Author HeadURL Id

Propchange: any23/trunk/deploy-site.sh
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Modified: any23/trunk/pom.xml
URL: http://svn.apache.org/viewvc/any23/trunk/pom.xml?rev=1426928&r1=1426927&r2=1426928&view=diff
==============================================================================
--- any23/trunk/pom.xml (original)
+++ any23/trunk/pom.xml Sun Dec 30 13:06:35 2012
@@ -255,16 +255,11 @@
 
     <!--
      | Any23 website has to be stored in SVN
-     |
-     | using the appropriate wagon, site deploy is slow, because deploy works file-by-file
-     | So consider the alternative of
-     | deploying the site in a local dir (where you checked out the site dir)
-     | then committing in one shot, i.e.
-     |
-     | svn co https://svn.apache.org/repos/asf/any23/site
-     | mvn site-deploy -Dsite.deploymentBaseUrl=file://path/to/checked/out/site -P site
     -->
-    <site.deploymentBaseUrl>svn:https://svn.apache.org/repos/asf/any23/site</site.deploymentBaseUrl>
+    <site.deploymentBaseUrl>scm:svn:https://svn.apache.org/repos/asf/any23/site</site.deploymentBaseUrl>
+    <site.filePath>${user.home}/any23-site/</site.filePath>
+    <site.urlDeployment>file://${site.filePath}</site.urlDeployment>
+    <site.scmPubCheckoutDirectory>${site.filePath}</site.scmPubCheckoutDirectory>
     <assembly.skip>false</assembly.skip>
   </properties>
 
@@ -914,7 +909,7 @@
         <site>
           <id>any23.website</id>
           <name>Apache Any23 website</name>
-          <url>${site.deploymentBaseUrl}</url>
+          <url>${site.urlDeployment}</url>
         </site>
       </distributionManagement>
 
@@ -968,6 +963,19 @@
               </reportPlugins>
             </configuration>
           </plugin>
+
+          <plugin>
+            <groupId>org.apache.maven.plugins</groupId>
+            <artifactId>maven-scm-publish-plugin</artifactId>
+            <version>1.0-beta-2</version>
+            <configuration>
+              <tryUpdate>true</tryUpdate>
+              <checkinComment>Apache Any23 site deployment</checkinComment>
+              <checkoutDirectory>${site.scmPubCheckoutDirectory}</checkoutDirectory>
+              <pubScmUrl>${site.deploymentBaseUrl}</pubScmUrl>
+              <content>${site.filePath}</content>
+            </configuration>
+          </plugin>
         </plugins>
       </build>
     </profile>