You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by ol...@apache.org on 2013/01/25 22:16:00 UTC

svn commit: r1438713 - in /maven/jxr/trunk: deploySite.sh pom.xml

Author: olamy
Date: Fri Jan 25 21:16:00 2013
New Revision: 1438713

URL: http://svn.apache.org/viewvc?rev=1438713&view=rev
Log:
configure site deployment via svnpubsub

Added:
    maven/jxr/trunk/deploySite.sh   (with props)
Modified:
    maven/jxr/trunk/pom.xml

Added: maven/jxr/trunk/deploySite.sh
URL: http://svn.apache.org/viewvc/maven/jxr/trunk/deploySite.sh?rev=1438713&view=auto
==============================================================================
--- maven/jxr/trunk/deploySite.sh (added)
+++ maven/jxr/trunk/deploySite.sh Fri Jan 25 21:16:00 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/jxr/trunk/deploySite.sh
------------------------------------------------------------------------------
    svn:eol-style = native

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

Modified: maven/jxr/trunk/pom.xml
URL: http://svn.apache.org/viewvc/maven/jxr/trunk/pom.xml?rev=1438713&r1=1438712&r2=1438713&view=diff
==============================================================================
--- maven/jxr/trunk/pom.xml (original)
+++ maven/jxr/trunk/pom.xml Fri Jan 25 21:16:00 2013
@@ -58,6 +58,12 @@ under the License.
 
   <properties>
     <sitePluginVersion>3.0</sitePluginVersion>
+
+    <maven.jxr.siteFilePath>${maven.site.cache}/maven-jxr</maven.jxr.siteFilePath>
+    <maven.jxr.siteUrlDeployment>file://${maven.jxr.siteFilePath}</maven.jxr.siteUrlDeployment>
+    <maven.jxr.scmPubCheckoutDirectory>${maven.site.cache}/maven-jxr-site-content</maven.jxr.scmPubCheckoutDirectory>
+    <maven.jxr.scmPubUrl>https://svn.apache.org/repos/infra/websites/production/maven/content/jxr</maven.jxr.scmPubUrl>
+
   </properties>
 
 
@@ -91,6 +97,17 @@ under the License.
             <tagBase>https://svn.apache.org/repos/asf/maven/jxr/tags</tagBase>
           </configuration>
         </plugin>
+        <plugin>
+          <groupId>org.apache.maven.plugins</groupId>
+          <artifactId>maven-scm-publish-plugin</artifactId>
+          <configuration>
+            <checkoutDirectory>${maven.jxr.scmPubCheckoutDirectory}</checkoutDirectory>
+            <pubScmUrl>scm:svn:${maven.jxr.scmPubUrl}</pubScmUrl>
+            <checkinComment>Apache Maven Jxr site deployment</checkinComment>
+            <content>${maven.jxr.siteFilePath}</content>
+            <tryUpdate>true</tryUpdate>
+          </configuration>
+        </plugin>
       </plugins>
     </pluginManagement>
   </build>