configure site deployment tru scm publish plugin

Project: http://git-wip-us.apache.org/repos/asf/maven-surefire/repo
Commit: http://git-wip-us.apache.org/repos/asf/maven-surefire/commit/c2dae460
Tree: http://git-wip-us.apache.org/repos/asf/maven-surefire/tree/c2dae460
Diff: http://git-wip-us.apache.org/repos/asf/maven-surefire/diff/c2dae460

Branch: refs/heads/master
Commit: c2dae4607be7834a86e86b7cc892ff2ab6581297
Parents: fff9e32
Author: olivier lamy <ol...@apache.org>
Authored: Tue Dec 11 20:29:13 2012 +0100
Committer: olivier lamy <ol...@apache.org>
Committed: Tue Dec 11 20:29:13 2012 +0100

----------------------------------------------------------------------
 pom.xml |   36 +++++++++++++++++++++++++++++++++++-
 1 files changed, 35 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/maven-surefire/blob/c2dae460/pom.xml
----------------------------------------------------------------------
diff --git a/pom.xml b/pom.xml
index 2ee3ba6..59bded4 100644
--- a/pom.xml
+++ b/pom.xml
@@ -115,8 +115,20 @@
     <mavenVersion>2.0.9</mavenVersion>
     <shadedVersion>2.12.4</shadedVersion>
     <mavenPluginPluginVersion>3.2</mavenPluginPluginVersion>
+    <maven.site.cache>${user.home}/maven-sites</maven.site.cache>
+    
<maven.surefire.siteFilePath>${maven.site.cache}/surefire/</maven.surefire.siteFilePath>
+    
<maven.surefire.siteUrlDeployment>file://${maven.surefire.siteFilePath}</maven.surefire.siteUrlDeployment>
+    
<maven.surefire.scmPubCheckoutDirectory>${maven.site.cache}/surefire-site-content</maven.surefire.scmPubCheckoutDirectory>
+    
<maven.surefire.scmPubUrl>https://svn.apache.org/repos/infra/websites/production/maven/content/surefire-${project.version}</maven.surefire.scmPubUrl>
   </properties>
 
+  <distributionManagement>
+    <site>
+      <id>apache.website</id>
+      <url>${maven.surefire.siteUrlDeployment}</url>
+    </site>
+  </distributionManagement>
+
   <dependencyManagement>
     <dependencies>
       <dependency>
@@ -280,6 +292,23 @@
           <version>${mavenPluginPluginVersion}</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.surefire.scmPubCheckoutDirectory}</checkoutDirectory>
+            <pubScmUrl>scm:svn:</pubScmUrl>
+            <checkinComment>Apache Maven Surefire site 
deployment</checkinComment>
+            <content>${maven.surefire.siteFilePath}</content>
+            <tryUpdate>true</tryUpdate>
+          </configuration>
+        </plugin>
+        <plugin>
           <groupId>org.apache.rat</groupId>
           <artifactId>apache-rat-plugin</artifactId>
           <configuration>
@@ -318,7 +347,6 @@
             <plugin>
               <groupId>org.apache.maven.plugins</groupId>
               <artifactId>maven-site-plugin</artifactId>
-              <version>3.0</version>
               <configuration>
                 <reportPlugins>
                   <plugin>
@@ -381,5 +409,11 @@
         </plugins>
       </build>
     </profile>
+    <profile>
+      <id>site-release</id>
+      <properties>
+        
<maven.surefire.scmPubUrl>https://svn.apache.org/repos/infra/websites/production/maven/content/surefire</maven.surefire.scmPubUrl>
+      </properties>
+    </profile>
   </profiles>
 </project>

Reply via email to