Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

fix site deployment

git-svn-id: https://svn.apache.org/repos/asf/maven/release/trunk@1425361 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information...
commit 75179aa9fd4c7e4049f4fbe379bbf3e79f706ac8 1 parent e101f0a
Olivier Lamy authored
2  deploySite.bat
@@ -17,4 +17,4 @@
17 17
 @REM under the License.
18 18
 @REM ----------------------------------------------------------------------------
19 19
 
20  
-mvn clean site site:stage scm-publish:publish-scm %*
  20
+mvn clean site-deploy scm-publish:publish-scm %*
2  deploySite.sh
@@ -19,4 +19,4 @@
19 19
 # under the License.
20 20
 #
21 21
 
22  
-mvn clean site site:stage scm-publish:publish-scm $@
  22
+mvn clean site-deploy scm-publish:publish-scm $@
13  pom.xml
@@ -64,14 +64,18 @@
64 64
   <properties>
65 65
     <scmVersion>1.8</scmVersion>
66 66
     <mavenVersion>2.2.1</mavenVersion>
  67
+
67 68
     <maven.site.cache>${user.home}/maven-sites</maven.site.cache>
68  
-    <maven.site.path>${project.artifactId}-archives/${project.artifactId}-${project.version}</maven.site.path>
  69
+    <maven.release.siteFilePath>${maven.site.cache}/maven-release-${project.version}</maven.release.siteFilePath>
  70
+    <maven.release.siteUrlDeployment>file://${maven.release.siteFilePath}</maven.release.siteUrlDeployment>
  71
+    <maven.release.scmPubCheckoutDirectory>${maven.site.cache}/maven-release-site-content-${project.version}</maven.release.scmPubCheckoutDirectory>
  72
+    <maven.release.scmPubUrl>https://svn.apache.org/repos/infra/websites/production/maven/content/maven-release-archives/maven-release-${project.version}</maven.release.scmPubUrl>
69 73
   </properties>
70 74
 
71 75
   <distributionManagement>
72 76
     <site>
73 77
       <id>apache.website</id>
74  
-      <url>scm:svn:https://svn.apache.org/repos/infra/websites/production/maven/content/${maven.site.path}</url>
  78
+      <url>${maven.release.siteUrlDeployment}</url>
75 79
     </site>
76 80
   </distributionManagement>
77 81
 
@@ -113,7 +117,10 @@
113 117
           <artifactId>maven-scm-publish-plugin</artifactId>
114 118
           <version>1.0-beta-2</version>
115 119
           <configuration>
116  
-            <checkoutDirectory>${maven.site.cache}/${maven.site.path}</checkoutDirectory>
  120
+            <checkoutDirectory>${maven.release.scmPubCheckoutDirectory}</checkoutDirectory>
  121
+            <pubScmUrl>scm:svn:${maven.release.scmPubUrl}</pubScmUrl>
  122
+            <checkinComment>Apache Maven Release site deployment</checkinComment>
  123
+            <content>${maven.release.siteFilePath}</content>
117 124
             <tryUpdate>true</tryUpdate>
118 125
           </configuration>
119 126
         </plugin>

0 notes on commit 75179aa

Please sign in to comment.
Something went wrong with that request. Please try again.