maven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject svn commit: r1426288 - in /maven/indexer/trunk: README.TXT README.md deploySite.sh pom.xml
Date Thu, 27 Dec 2012 18:57:45 GMT
Author: olamy
Date: Thu Dec 27 18:57:45 2012
New Revision: 1426288

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

Added:
    maven/indexer/trunk/README.TXT
    maven/indexer/trunk/deploySite.sh   (with props)
Modified:
    maven/indexer/trunk/README.md
    maven/indexer/trunk/pom.xml

Added: maven/indexer/trunk/README.TXT
URL: http://svn.apache.org/viewvc/maven/indexer/trunk/README.TXT?rev=1426288&view=auto
==============================================================================
--- maven/indexer/trunk/README.TXT (added)
+++ maven/indexer/trunk/README.TXT Thu Dec 27 18:57:45 2012
@@ -0,0 +1,30 @@
+Deploying web site
+------------------
+You can use the deploySite.sh script
+Without any profile the site will be deployed to http://maven.apache.org/maven-indexer-archives/maven-indexer-${project.version}
+sh ./deploySite.sh -Preporting
+
+To deploy main version http://maven.apache.org/surefire, use
+sh ./deploySite.sh -Preporting -Psite-release
+
+Note you can add arguments to the script to pass your svn credentials:
+-Dusername=
+-Dpassword=
+
+Workflow for site when releasing
+--------------------------------
+Once release staged, you can publish a staged site.
+cd target/checkout
+sh ./deploySite.sh -Preporting
+content will be in http://maven.apache.org/maven-indexer-archives/maven-indexer-${project.version}
+
+If something goes wrong when publishing the site to svnpubsub (like https://jira.codehaus.org/browse/MSCMPUB-6),
+you can avoid rebuilding the site before publishing with
+mvn -Preporting scm-publish:publish-scm
+
+Once vote passed, redeploy main site:
+cd target/checkout (or use the version tag)
+sh ./deploySite.sh -Preporting -Psite-release
+
+
+

Modified: maven/indexer/trunk/README.md
URL: http://svn.apache.org/viewvc/maven/indexer/trunk/README.md?rev=1426288&r1=1426287&r2=1426288&view=diff
==============================================================================
--- maven/indexer/trunk/README.md (original)
+++ maven/indexer/trunk/README.md Thu Dec 27 18:57:45 2012
@@ -21,4 +21,4 @@ Users: users@maven.apache.org
 (more at http://maven.apache.org/mail-lists.html)
 
 CI:
-https://builds.apache.org/hudson/job/maven-indexer/
+https://builds.apache.org/job/maven-indexer/

Added: maven/indexer/trunk/deploySite.sh
URL: http://svn.apache.org/viewvc/maven/indexer/trunk/deploySite.sh?rev=1426288&view=auto
==============================================================================
--- maven/indexer/trunk/deploySite.sh (added)
+++ maven/indexer/trunk/deploySite.sh Thu Dec 27 18:57:45 2012
@@ -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/indexer/trunk/deploySite.sh
------------------------------------------------------------------------------
    svn:eol-style = native

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

Modified: maven/indexer/trunk/pom.xml
URL: http://svn.apache.org/viewvc/maven/indexer/trunk/pom.xml?rev=1426288&r1=1426287&r2=1426288&view=diff
==============================================================================
--- maven/indexer/trunk/pom.xml (original)
+++ maven/indexer/trunk/pom.xml Thu Dec 27 18:57:45 2012
@@ -69,7 +69,7 @@ under the License.
   <properties>
     <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
     <surefire.redirectTestOutputToFile>false</surefire.redirectTestOutputToFile>
-    <distributionSiteUrl>scp://people.apache.org/www/maven.apache.org/maven-indexer</distributionSiteUrl>
+
     <siteUrl>http://maven.apache.org/maven-indexer/</siteUrl>
 
     <sisu-inject-plexus.version>2.2.3</sisu-inject-plexus.version>
@@ -79,12 +79,19 @@ under the License.
     <archetype.version>2.2</archetype.version>
     <wagon.version>2.2</wagon.version>
     <truezip.version>7.6.6</truezip.version>
+
+    <maven.site.cache>${user.home}/maven-sites</maven.site.cache>
+    <maven.indexer.siteFilePath>${maven.site.cache}/maven-indexer-${project.version}</maven.indexer.siteFilePath>
+    <maven.indexer.siteUrlDeployment>file://${maven.indexer.siteFilePath}</maven.indexer.siteUrlDeployment>
+    <maven.indexer.scmPubCheckoutDirectory>${maven.site.cache}/maven-indexer-site-content-${project.version}</maven.indexer.scmPubCheckoutDirectory>
+    <maven.indexer.scmPubUrl>https://svn.apache.org/repos/infra/websites/production/maven/content/maven-indexer-archives/maven-indexer-${project.version}</maven.indexer.scmPubUrl>
+
   </properties>
 
   <distributionManagement>
     <site>
       <id>apache.website</id>
-      <url>${distributionSiteUrl}</url>
+      <url>${maven.indexer.siteUrlDeployment}</url>
     </site>
   </distributionManagement>
 
@@ -271,6 +278,23 @@ under the License.
           <artifactId>maven-surefire-plugin</artifactId>
           <version>2.12</version>
         </plugin>
+        <plugin>
+          <groupId>org.apache.maven.plugins</groupId>
+          <artifactId>maven-site-plugin</artifactId>
+          <version>3.2</version>
+        </plugin>
+        <plugin>
+          <groupId>org.apache.maven.plugins</groupId>
+          <artifactId>maven-scm-publish-plugin</artifactId>
+          <version>1.0-beta-2</version>
+          <configuration>
+            <checkoutDirectory>${maven.indexer.scmPubCheckoutDirectory}</checkoutDirectory>
+            <pubScmUrl>scm:svn:${maven.indexer.scmPubUrl}</pubScmUrl>
+            <checkinComment>Apache Maven Indexer site deployment</checkinComment>
+            <content>${maven.indexer.siteFilePath}</content>
+            <tryUpdate>true</tryUpdate>
+          </configuration>
+        </plugin>
         <!--This plugin's configuration is used to store Eclipse m2e settings only. It
has no influence on the Maven build itself. -->
         <plugin>
           <groupId>org.eclipse.m2e</groupId>
@@ -325,4 +349,16 @@ under the License.
       </plugin>
     </plugins>
   </reporting>
+
+  <profiles>
+    <profile>
+      <id>site-release</id>
+      <properties>
+        <maven.indexer.siteFilePath>${maven.site.cache}/maven-indexer</maven.indexer.siteFilePath>
+        <maven.indexer.siteUrlDeployment>file://${maven.indexer.siteFilePath}</maven.indexer.siteUrlDeployment>
+        <maven.indexer.scmPubCheckoutDirectory>${maven.site.cache}/maven-indexer-site-content</maven.indexer.scmPubCheckoutDirectory>
+        <maven.indexer.scmPubUrl>https://svn.apache.org/repos/infra/websites/production/maven/content/maven-indexer</maven.indexer.scmPubUrl>
+      </properties>
+    </profile>
+  </profiles>
 </project>



Mime
View raw message