maven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject svn commit: r1421221 - /maven/shared/trunk/maven-shared-incremental/pom.xml
Date Thu, 13 Dec 2012 10:58:27 GMT
Author: olamy
Date: Thu Dec 13 10:58:27 2012
New Revision: 1421221

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

Modified:
    maven/shared/trunk/maven-shared-incremental/pom.xml

Modified: maven/shared/trunk/maven-shared-incremental/pom.xml
URL: http://svn.apache.org/viewvc/maven/shared/trunk/maven-shared-incremental/pom.xml?rev=1421221&r1=1421220&r2=1421221&view=diff
==============================================================================
--- maven/shared/trunk/maven-shared-incremental/pom.xml (original)
+++ maven/shared/trunk/maven-shared-incremental/pom.xml Thu Dec 13 10:58:27 2012
@@ -40,6 +40,13 @@
     <url>http://svn.apache.org/viewvc/maven/shared/trunk/maven-shared-incremental</url>
   </scm>
 
+  <distributionManagement>
+    <site>
+      <id>apache.website.svnpub</id>
+      <url>scm:svn:${svnUrl}</url>
+    </site>
+  </distributionManagement>
+
   <issueManagement>
     <system>jira</system>
     <url>https://jira.codehaus.org/browse/MSHARED/component/15650</url>
@@ -47,6 +54,12 @@
 
   <properties>
     <mavenVersion>2.2.1</mavenVersion>
+
+    <maven.sites.cache>${user.home}/maven-sites</maven.sites.cache>
+    <siteFilePath>${maven.sites.cache}/shared/${project.artifactId}-${project.version}</siteFilePath>
+    <scmPubCheckoutDirectory>${siteFilePath}-content</scmPubCheckoutDirectory>
+    <svnUrl>https://svn.apache.org/repos/infra/websites/production/maven/content/shared-archives/${project.artifactId}-${project.version}</svnUrl>
+
   </properties>
 
   <dependencies>
@@ -130,6 +143,58 @@
           </execution>
         </executions>
       </plugin>
+
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-site-plugin</artifactId>
+        <configuration>
+          <skipDeploy>true</skipDeploy>
+        </configuration>
+        <executions>
+          <execution>
+            <id>stage-for-scm-publish</id>
+            <phase>post-site</phase>
+            <goals>
+              <goal>stage</goal>
+            </goals>
+            <configuration>
+              <skipDeploy>false</skipDeploy>
+            </configuration>
+          </execution>
+        </executions>
+      </plugin>
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-scm-publish-plugin</artifactId>
+        <version>1.0-beta-2</version>
+        <configuration>
+          <checkinComment>Apache ${project.name} site deployment</checkinComment>
+        </configuration>
+        <executions>
+          <execution>
+            <id>scm-publish</id>
+            <phase>site-deploy</phase>
+            <goals>
+              <goal>publish-scm</goal>
+            </goals>
+          </execution>
+        </executions>
+      </plugin>
+
     </plugins>
   </build>
+
+  <profiles>
+    <profile>
+      <id>site-release</id>
+      <properties>
+
+        <siteFilePath>${maven.sites.cache}/shared/${project.artifactId}</siteFilePath>
+        <scmPubCheckoutDirectory>${siteFilePath}-content</scmPubCheckoutDirectory>
+        <svnUrl>https://svn.apache.org/repos/infra/websites/production/maven/content/shared/${project.artifactId}</svnUrl>
+
+      </properties>
+    </profile>
+  </profiles>
+
 </project>



Mime
View raw message