]> source.dussan.org Git - archiva.git/commitdiff
simplify svnpub sub configuration: just use mvn site-deploy is easier and as usual :-)
authorOlivier Lamy <olamy@apache.org>
Wed, 29 Aug 2012 21:22:51 +0000 (21:22 +0000)
committerOlivier Lamy <olamy@apache.org>
Wed, 29 Aug 2012 21:22:51 +0000 (21:22 +0000)
git-svn-id: https://svn.apache.org/repos/asf/archiva/parent@1378742 13f79535-47bb-0310-9956-ffa450edef68

pom.xml

diff --git a/pom.xml b/pom.xml
index 866a813eccf9417da3148db18d7e3e42ddb3415f..a9ae00ac61d14d48740f1c2aa492106885edee5a 100644 (file)
--- a/pom.xml
+++ b/pom.xml
@@ -68,8 +68,6 @@
 
     <!-- svnsubpub configuration -->
 
-    <siteFilePath></siteFilePath>
-    <siteUrlDeployment>file://${siteFilePath}</siteUrlDeployment>
     <scmPubCheckoutDirectory></scmPubCheckoutDirectory>
     <scmTryUpdate>true</scmTryUpdate>
     <scmSkipDeletedFiles>false</scmSkipDeletedFiles>
           </execution>
         </executions>
       </plugin>
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-scm-publish-plugin</artifactId>
+        <executions>
+          <execution>
+            <id>scm-publish</id>
+            <phase>site-deploy</phase>
+            <goals>
+              <goal>publish-scm</goal>
+            </goals>
+          </execution>
+        </executions>
+      </plugin>
     </plugins>
     <pluginManagement>
       <plugins>
           <groupId>org.apache.maven.plugins</groupId>
           <artifactId>maven-site-plugin</artifactId>
           <version>3.1</version>
+          <configuration>
+            <skipDeploy>true</skipDeploy>
+          </configuration>
+          <executions>
+            <execution>
+              <id>stage-for-scm-publish</id>
+              <phase>post-site</phase>
+              <goals>
+                <goal>stage</goal>
+              </goals>
+              <configuration>
+                <skipDeploy>false</skipDeploy>
+              </configuration>
+            </execution>
+          </executions>
         </plugin>
         <plugin>
           <groupId>org.apache.maven.plugins</groupId>
           <artifactId>maven-scm-publish-plugin</artifactId>
           <version>1.0-SNAPSHOT</version>
           <configuration>
-            <pubScmUrl>scm:svn:https://svn.apache.org/repos/asf/archiva/site-content/</pubScmUrl>
-            <content>${siteFilePath}</content>
             <checkoutDirectory>${scmPubCheckoutDirectory}</checkoutDirectory>
             <tryUpdate>${scmTryUpdate}</tryUpdate>
             <skipDeletedFiles>${scmSkipDeletedFiles}</skipDeletedFiles>
               <svn>javasvn</svn>
             </providerImplementations>
             <checkinComment>Apache Archiva Main site deployment</checkinComment>
-            <ignorePathsToDelete>
-              <ignorePathToDelete>docs/**</ignorePathToDelete>
-              <ignorePathToDelete>ref/**</ignorePathToDelete>
-              <ignorePathToDelete>redback/**</ignorePathToDelete>
-            </ignorePathsToDelete>
           </configuration>
           <dependencies>
             <dependency>
               <version>${svnkit.version}</version>
             </dependency>
           </dependencies>
+          <executions>
+            <execution>
+              <id>scm-publish</id>
+              <phase>site-deploy</phase>
+              <goals>
+                <goal>publish-scm</goal>
+              </goals>
+            </execution>
+          </executions>
         </plugin>
 
       </plugins>