aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlivier Lamy <olamy@apache.org>2012-08-29 13:57:57 +0000
committerOlivier Lamy <olamy@apache.org>2012-08-29 13:57:57 +0000
commit40634e23dbc49354adab5bfbc807c9cf2e01fc05 (patch)
tree1ef96f49077e91319e11faa5973814811b52c63f
parentef27c31c56f63a94f9aa61438b6134491dfb5788 (diff)
downloadarchiva-40634e23dbc49354adab5bfbc807c9cf2e01fc05.tar.gz
archiva-40634e23dbc49354adab5bfbc807c9cf2e01fc05.zip
configure svnpubsub for site deployment
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1378561 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--archiva-docs/README1
-rw-r--r--archiva-docs/deploySite.sh1
-rw-r--r--archiva-docs/pom.xml15
3 files changed, 16 insertions, 1 deletions
diff --git a/archiva-docs/README b/archiva-docs/README
new file mode 100644
index 000000000..714b3aadf
--- /dev/null
+++ b/archiva-docs/README
@@ -0,0 +1 @@
+to deploy site: sh ./deploySite.sh
diff --git a/archiva-docs/deploySite.sh b/archiva-docs/deploySite.sh
new file mode 100644
index 000000000..9ba6df0a9
--- /dev/null
+++ b/archiva-docs/deploySite.sh
@@ -0,0 +1 @@
+mvn clean site-deploy && mvn scm-publish:publish-scm
diff --git a/archiva-docs/pom.xml b/archiva-docs/pom.xml
index 496a84806..9014d36f0 100644
--- a/archiva-docs/pom.xml
+++ b/archiva-docs/pom.xml
@@ -29,6 +29,11 @@
<name>Archiva :: Documentation</name>
<url>http://archiva.apache.org/docs/${project.version}/</url>
+ <properties>
+ <siteFilePath>${user.home}/archiva-docs-${project.version}/</siteFilePath>
+ <scmPubCheckoutDirectory>${user.home}/archiva-docs-${project.version}-content</scmPubCheckoutDirectory>
+ </properties>
+
<build>
<pluginManagement>
<plugins>
@@ -46,6 +51,14 @@
</excludes>
</configuration>
</plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-scm-publish-plugin</artifactId>
+ <configuration>
+ <pubScmUrl>scm:svn:https://svn.apache.org/repos/asf/archiva/site-content/docs/${project.version}</pubScmUrl>
+ <checkinComment>Apache Archiva Versionned docs for ${project.version}</checkinComment>
+ </configuration>
+ </plugin>
</plugins>
</pluginManagement>
<plugins>
@@ -101,7 +114,7 @@
<distributionManagement>
<site>
<id>apache.website</id>
- <url>${siteBaseDeployment}/docs/${project.version}</url>
+ <url>${siteUrlDeployment}</url>
</site>
</distributionManagement>