You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by ol...@apache.org on 2013/01/09 22:11:31 UTC
[1/2] git commit: configure site deployment
configure site deployment
Project: http://git-wip-us.apache.org/repos/asf/maven-wagon/repo
Commit: http://git-wip-us.apache.org/repos/asf/maven-wagon/commit/0d792e9d
Tree: http://git-wip-us.apache.org/repos/asf/maven-wagon/tree/0d792e9d
Diff: http://git-wip-us.apache.org/repos/asf/maven-wagon/diff/0d792e9d
Branch: refs/heads/master
Commit: 0d792e9dbde8f8fd87ff995b914af546dd90a81c
Parents: 5eaec67
Author: olivier lamy <ol...@apache.org>
Authored: Wed Jan 9 22:11:01 2013 +0100
Committer: olivier lamy <ol...@apache.org>
Committed: Wed Jan 9 22:11:01 2013 +0100
----------------------------------------------------------------------
pom.xml | 30 ++++++++++++++++++++++++++++--
1 files changed, 28 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/maven-wagon/blob/0d792e9d/pom.xml
----------------------------------------------------------------------
diff --git a/pom.xml b/pom.xml
index 52be858..2ffdab0 100644
--- a/pom.xml
+++ b/pom.xml
@@ -39,9 +39,16 @@ under the License.
<properties>
<siteDeployUrl>scp://people.apache.org/www/maven.apache.org/wagon/</siteDeployUrl>
- <siteUrl>http://maven.apache.org/wagon/</siteUrl>
+ <siteUrl>http://maven.apache.org/wagon-archives/wagon-${project.version}</siteUrl>
<maven.test.redirectTestOutputToFile>true</maven.test.redirectTestOutputToFile>
<slf4jVersion>1.7.2</slf4jVersion>
+
+ <maven.site.cache>${user.home}/maven-sites</maven.site.cache>
+ <maven.wagon.siteFilePath>${maven.site.cache}/maven-wagon-${project.version}</maven.wagon.siteFilePath>
+ <maven.wagon.siteUrlDeployment>file://${maven.wagon.siteFilePath}</maven.wagon.siteUrlDeployment>
+ <maven.wagon.scmPubCheckoutDirectory>${maven.site.cache}/maven-wagon-site-content-${project.version}</maven.wagon.scmPubCheckoutDirectory>
+ <maven.wagon.scmPubUrl>https://svn.apache.org/repos/infra/websites/production/maven/content/wagon-archives/wagon-${project.version}</maven.wagon.scmPubUrl>
+
</properties>
<contributors>
@@ -199,7 +206,7 @@ under the License.
<distributionManagement>
<site>
<id>apache.website</id>
- <url>${siteDeployUrl}</url>
+ <url>${maven.wagon.siteUrlDeployment}</url>
</site>
</distributionManagement>
@@ -364,6 +371,18 @@ under the License.
</systemPropertyVariables>
</configuration>
</plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-scm-publish-plugin</artifactId>
+ <version>1.0-beta-2</version>
+ <configuration>
+ <checkoutDirectory>${maven.wagon.scmPubCheckoutDirectory}</checkoutDirectory>
+ <pubScmUrl>scm:svn:${maven.wagon.scmPubUrl}</pubScmUrl>
+ <checkinComment>Apache Maven Wagon site deployment</checkinComment>
+ <content>${maven.wagon.siteFilePath}</content>
+ <tryUpdate>true</tryUpdate>
+ </configuration>
+ </plugin>
</plugins>
</pluginManagement>
<plugins>
@@ -581,6 +600,13 @@ under the License.
</reporting>
</profile>
+ <profile>
+ <id>site-release</id>
+ <properties>
+ <maven.site.path>${project.artifactId}</maven.site.path>
+ </properties>
+ </profile>
+
</profiles>
</project>