]> source.dussan.org Git - archiva.git/commitdiff
simplify site deployment
authorOlivier Lamy <olamy@apache.org>
Fri, 3 May 2013 23:30:53 +0000 (23:30 +0000)
committerOlivier Lamy <olamy@apache.org>
Fri, 3 May 2013 23:30:53 +0000 (23:30 +0000)
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1479005 13f79535-47bb-0310-9956-ffa450edef68

archiva-modules/deploySite.sh
archiva-modules/pom.xml

index c876c99d61bc850b7bdcc4913ac97cc592f80660..44a13e0e9437925b7101875cf18c21d3e0795568 100644 (file)
@@ -1 +1 @@
-mvn clean site-deploy scm-publish:publish-scm $@
+mvn clean site site:stage -Preporting scm-publish:publish-scm $@
index 0af6f5499ec93a6c8215ea6cb1eddc1768198450..d6ac479912a20354e543615cb5616d7417f1c6e5 100644 (file)
@@ -32,7 +32,7 @@
   <properties>
     <siteFilePath>${user.home}/archiva-sites/archiva-ref-${project.version}/</siteFilePath>
     <siteUrlDeployment>file://${siteFilePath}</siteUrlDeployment>
-    <scmPubCheckoutDirectory>${user.home}/archiva-sites/archiva-ref-${project.version}-content</scmPubCheckoutDirectory>
+    <scmPubCheckoutDirectory>${basedir}/.site-content</scmPubCheckoutDirectory>
   </properties>
 
   <modules>
@@ -53,7 +53,7 @@
           <configuration>
             <pubScmUrl>scm:svn:https://svn.apache.org/repos/asf/archiva/site-content/ref/${project.version}</pubScmUrl>
             <checkinComment>Apache Archiva Versionned ref for ${project.version}</checkinComment>
-            <content>${siteFilePath}</content>
+            <content>${project.build.directory}/staging</content>
           </configuration>
         </plugin>
       </plugins>
           <includeTestSourceDirectory>true</includeTestSourceDirectory>
           <configLocation>config/maven_checks.xml</configLocation>
         </configuration>
-        <reportSets>
-          <reportSet>
-            <reports>
-              <report>checkstyle-aggregate</report>
-            </reports>
-          </reportSet>
-        </reportSets>
       </plugin>
       <plugin>
         <!-- No need for the standard project reports -->
     </plugins>
   </reporting>
 
+  <profiles>
+    <profile>
+      <id>reporting</id>
+      <reporting>
+        <plugins>
+          <plugin>
+            <groupId>org.apache.maven.plugins</groupId>
+            <artifactId>maven-checkstyle-plugin</artifactId>
+            <version>${checkstyleVersion}</version>
+            <inherited>false</inherited>
+            <reportSets>
+              <reportSet>
+                <reports>
+                  <report>checkstyle-aggregate</report>
+                </reports>
+              </reportSet>
+            </reportSets>
+          </plugin>
+        </plugins>
+      </reporting>
+    </profile>
+  </profiles>
+
+
 
   <distributionManagement>
     <site>