diff options
-rw-r--r-- | archiva-docs/README | 1 | ||||
-rw-r--r-- | archiva-docs/deploySite.sh | 1 | ||||
-rw-r--r-- | archiva-docs/pom.xml | 15 |
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> |