Author: hboutemy
Date: Sat Dec 15 08:42:15 2012
New Revision: 1422203

URL: http://svn.apache.org/viewvc?rev=1422203&view=rev
Log:
prepared site deployment with svnpubsub for every Maven skins

Modified:
    maven/skins/trunk/maven-skins/pom.xml
    maven/skins/trunk/maven-skins/site-pom.xml

Modified: maven/skins/trunk/maven-skins/pom.xml
URL: 
http://svn.apache.org/viewvc/maven/skins/trunk/maven-skins/pom.xml?rev=1422203&r1=1422202&r2=1422203&view=diff
==============================================================================
--- maven/skins/trunk/maven-skins/pom.xml (original)
+++ maven/skins/trunk/maven-skins/pom.xml Sat Dec 15 08:42:15 2012
@@ -55,12 +55,13 @@ under the License.
   <distributionManagement>
     <site>
       <id>apache.website</id>
-      <url>scp://people.apache.org/www/maven.apache.org/skins/</url>
+      
<url>scm:svn:https://svn.apache.org/repos/infra/websites/production/maven/content/skins</url>
     </site>
   </distributionManagement>
 
   <properties>
-    <site.destination>${project.artifactId}</site.destination>
+    <maven.site.cache>${user.home}/maven-sites</maven.site.cache><!-- TODO 
remove when upgrading parent to 23 -->
+    
<maven.site.path>skins-archives/${project.artifactId}-${project.version}</maven.site.path>
   </properties>
 
   <build>
@@ -75,20 +76,43 @@ under the License.
           </configuration>
         </plugin>
         <plugin>
+          <groupId>org.apache.maven.plugins</groupId>
           <artifactId>maven-site-plugin</artifactId>
+          <version>3.2</version><!-- TODO remove when upgrading parent to 23 
-->
           <configuration>
-            
<stagingSiteURL>scp://people.apache.org/www/maven.apache.org/skins/${project.artifactId}-${project.version}</stagingSiteURL>
+            <skipDeploy>true</skipDeploy><!-- don't deploy site with 
maven-site-plugin -->
           </configuration>
         </plugin>
       </plugins>
     </pluginManagement>
+    <plugins>
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-scm-publish-plugin</artifactId>
+        <configuration>
+          <content>${project.reporting.outputDirectory}</content>
+          
<scmPubUrl>scm:svn:https://svn.apache.org/repos/infra/websites/production/maven/content/${maven.site.path}</scmPubUrl>
+          
<checkoutDirectory>${maven.site.cache}/${maven.site.path}</checkoutDirectory>
+          <tryUpdate>true</tryUpdate>
+        </configuration>
+        <executions>
+          <execution>
+            <id>scm-publish</id>
+            <phase>site-deploy</phase><!-- deploy site with 
maven-scm-publish-plugin -->
+            <goals>
+              <goal>publish-scm</goal>
+            </goals>
+          </execution>
+        </executions>
+      </plugin>
+    </plugins>
   </build>
 
   <profiles>
     <profile>
-      <id>rc</id>
+      <id>site-release</id>
       <properties>
-        
<site.destination>${project.artifactId}-${project.version}</site.destination>
+        <maven.site.path>skins/${project.artifactId}</maven.site.path>
       </properties>
     </profile>
   </profiles>

Modified: maven/skins/trunk/maven-skins/site-pom.xml
URL: 
http://svn.apache.org/viewvc/maven/skins/trunk/maven-skins/site-pom.xml?rev=1422203&r1=1422202&r2=1422203&view=diff
==============================================================================
--- maven/skins/trunk/maven-skins/site-pom.xml (original)
+++ maven/skins/trunk/maven-skins/site-pom.xml Sat Dec 15 08:42:15 2012
@@ -52,19 +52,32 @@ under the License.
   <distributionManagement>
     <site>
       <id>apache.website</id>
-      <url>scp://people.apache.org/www/maven.apache.org/pom/skins/</url>
+      
<url>scm:svn:https://svn.apache.org/repos/infra/websites/production/maven/content/${maven.site.path}</url>
     </site>
   </distributionManagement>
 
+  <properties>
+    <maven.site.path>pom-archives/skins-${project.version}</maven.site.path>
+  </properties>
+
   <build>
     <plugins>
       <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
         <artifactId>maven-site-plugin</artifactId>
         <configuration>
           <siteDirectory>${basedir}/src/site-docs</siteDirectory>
-          
<stagingSiteURL>scp://people.apache.org/www/maven.apache.org/pom/skins-${project.version}/</stagingSiteURL>
         </configuration>
       </plugin>
     </plugins>
   </build>
-</project>
\ No newline at end of file
+
+  <profiles>
+    <profile>
+      <id>site-release</id>
+      <properties>
+        <maven.site.path>pom/skins</maven.site.path>
+      </properties>
+    </profile>
+  </profiles>
+</project>


Reply via email to