Permalink
Browse files

prepared asf parent pom site deployment with svnpubsub

git-svn-id: https://svn.apache.org/repos/asf/maven/pom/trunk@1421789 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information...
1 parent ffeac81 commit c3f4bac18475966181a0f945d4d19cb49c63c2e1 @hboutemy hboutemy committed Dec 14, 2012
Showing with 15 additions and 19 deletions.
  1. +15 −19 asf/site-pom.xml
View
34 asf/site-pom.xml
@@ -52,33 +52,38 @@ under the License.
<distributionManagement>
<site>
<id>apache.website</id>
- <url>scm:svn:https://svn.apache.org/repos/infra/websites/production/maventest/content/pom/asf/</url>
- <!--url>scp://people.apache.org/www/maven.apache.org/pom/asf/</url-->
+ <url>scm:svn:https://svn.apache.org/repos/infra/websites/production/maven/content/${maven.site.path}</url>
</site>
</distributionManagement>
+ <properties>
+ <maven.site.cache>${user.home}/maven-sites</maven.site.cache>
+ <maven.site.path>pom-archives/asf-${project.version}</maven.site.path>
+ </properties>
+
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-site-plugin</artifactId>
<configuration>
<siteDirectory>${basedir}/src/site-docs</siteDirectory>
- <!--stagingSiteURL>scp://people.apache.org/www/maven.apache.org/pom/asf-${project.version}/</stagingSiteURL-->
- <skipDeploy>true</skipDeploy><!-- don't deploy with maven-site-plugin -->
+ <skipDeploy>true</skipDeploy><!-- don't deploy site with maven-site-plugin -->
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-scm-publish-plugin</artifactId>
<version>1.0-beta-2</version>
<configuration>
- <content>${project.build.directory}/site</content>
+ <content>${project.reporting.outputDirectory}</content>
+ <checkoutDirectory>${maven.site.cache}/${maven.site.path}</checkoutDirectory>
+ <tryUpdate>true</tryUpdate>
</configuration>
<executions>
<execution>
<id>scm-publish</id>
- <phase>site-deploy</phase><!-- deploy with maven-scm-publish-plugin -->
+ <phase>site-deploy</phase><!-- deploy site with maven-scm-publish-plugin -->
<goals>
<goal>publish-scm</goal>
</goals>
@@ -90,19 +95,10 @@ under the License.
<profiles>
<profile>
- <id>staging</id>
- <build>
- <plugins>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-scm-publish-plugin</artifactId>
- <configuration>
- <checkinComment>Staging site checkin for project ${project.name}</checkinComment>
- <pubScmUrl>${project.distributionManagement.site.url}../asf-${project.version}/</pubScmUrl>
- </configuration>
- </plugin>
- </plugins>
- </build>
+ <id>site-release</id>
+ <properties>
+ <maven.site.path>pom/asf</maven.site.path>
+ </properties>
</profile>
</profiles>
</project>

0 comments on commit c3f4bac

Please sign in to comment.