]> source.dussan.org Git - archiva.git/commitdiff
configure svnpubsub for site deployment
authorOlivier Lamy <olamy@apache.org>
Wed, 29 Aug 2012 13:57:57 +0000 (13:57 +0000)
committerOlivier Lamy <olamy@apache.org>
Wed, 29 Aug 2012 13:57:57 +0000 (13:57 +0000)
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1378561 13f79535-47bb-0310-9956-ffa450edef68

archiva-docs/README [new file with mode: 0644]
archiva-docs/deploySite.sh [new file with mode: 0644]
archiva-docs/pom.xml

diff --git a/archiva-docs/README b/archiva-docs/README
new file mode 100644 (file)
index 0000000..714b3aa
--- /dev/null
@@ -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 (file)
index 0000000..9ba6df0
--- /dev/null
@@ -0,0 +1 @@
+mvn clean site-deploy && mvn scm-publish:publish-scm 
index 496a8480609f7452b94f31bf1e78a1515a92630b..9014d36f0c724f61c06225d03ab655b380bcee3c 100644 (file)
   <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>
             </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>
   <distributionManagement>
     <site>
       <id>apache.website</id>
-      <url>${siteBaseDeployment}/docs/${project.version}</url>
+      <url>${siteUrlDeployment}</url>
     </site>
   </distributionManagement>