simplify site deployment

git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1479005 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Olivier Lamy 2013-05-03 23:30:53 +00:00
parent e7394ea2ad
commit 2eaa058a7b
2 changed files with 27 additions and 10 deletions

View File

@ -1 +1 @@
mvn clean site-deploy scm-publish:publish-scm $@
mvn clean site site:stage -Preporting scm-publish:publish-scm $@

View 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>
@ -83,13 +83,6 @@
<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 -->
@ -168,6 +161,30 @@
</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>