Skip to content

Commit

Permalink
fix site deployment
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.apache.org/repos/asf/maven/release/trunk@1425361 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
olamy committed Dec 22, 2012
1 parent e101f0a commit 75179aa
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 5 deletions.
2 changes: 1 addition & 1 deletion deploySite.bat
Expand Up @@ -17,4 +17,4 @@
@REM under the License.
@REM ----------------------------------------------------------------------------

mvn clean site site:stage scm-publish:publish-scm %*
mvn clean site-deploy scm-publish:publish-scm %*
2 changes: 1 addition & 1 deletion deploySite.sh
Expand Up @@ -19,4 +19,4 @@
# under the License.
#

mvn clean site site:stage scm-publish:publish-scm $@
mvn clean site-deploy scm-publish:publish-scm $@
13 changes: 10 additions & 3 deletions pom.xml
Expand Up @@ -64,14 +64,18 @@
<properties>
<scmVersion>1.8</scmVersion>
<mavenVersion>2.2.1</mavenVersion>

<maven.site.cache>${user.home}/maven-sites</maven.site.cache>
<maven.site.path>${project.artifactId}-archives/${project.artifactId}-${project.version}</maven.site.path>
<maven.release.siteFilePath>${maven.site.cache}/maven-release-${project.version}</maven.release.siteFilePath>
<maven.release.siteUrlDeployment>file://${maven.release.siteFilePath}</maven.release.siteUrlDeployment>
<maven.release.scmPubCheckoutDirectory>${maven.site.cache}/maven-release-site-content-${project.version}</maven.release.scmPubCheckoutDirectory>
<maven.release.scmPubUrl>https://svn.apache.org/repos/infra/websites/production/maven/content/maven-release-archives/maven-release-${project.version}</maven.release.scmPubUrl>
</properties>

<distributionManagement>
<site>
<id>apache.website</id>
<url>scm:svn:https://svn.apache.org/repos/infra/websites/production/maven/content/${maven.site.path}</url>
<url>${maven.release.siteUrlDeployment}</url>
</site>
</distributionManagement>

Expand Down Expand Up @@ -113,7 +117,10 @@
<artifactId>maven-scm-publish-plugin</artifactId>
<version>1.0-beta-2</version>
<configuration>
<checkoutDirectory>${maven.site.cache}/${maven.site.path}</checkoutDirectory>
<checkoutDirectory>${maven.release.scmPubCheckoutDirectory}</checkoutDirectory>
<pubScmUrl>scm:svn:${maven.release.scmPubUrl}</pubScmUrl>
<checkinComment>Apache Maven Release site deployment</checkinComment>
<content>${maven.release.siteFilePath}</content>
<tryUpdate>true</tryUpdate>
</configuration>
</plugin>
Expand Down

0 comments on commit 75179aa

Please sign in to comment.