Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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...
commit c3f4bac18475966181a0f945d4d19cb49c63c2e1 1 parent ffeac81
Hervé Boutemy hboutemy authored

Showing 1 changed file with 15 additions and 19 deletions. Show diff stats Hide diff stats

  1. +15 19 asf/site-pom.xml
34 asf/site-pom.xml
@@ -52,11 +52,15 @@ under the License.
52 52 <distributionManagement>
53 53 <site>
54 54 <id>apache.website</id>
55   - <url>scm:svn:https://svn.apache.org/repos/infra/websites/production/maventest/content/pom/asf/</url>
56   - <!--url>scp://people.apache.org/www/maven.apache.org/pom/asf/</url-->
  55 + <url>scm:svn:https://svn.apache.org/repos/infra/websites/production/maven/content/${maven.site.path}</url>
57 56 </site>
58 57 </distributionManagement>
59 58
  59 + <properties>
  60 + <maven.site.cache>${user.home}/maven-sites</maven.site.cache>
  61 + <maven.site.path>pom-archives/asf-${project.version}</maven.site.path>
  62 + </properties>
  63 +
60 64 <build>
61 65 <plugins>
62 66 <plugin>
@@ -64,8 +68,7 @@ under the License.
64 68 <artifactId>maven-site-plugin</artifactId>
65 69 <configuration>
66 70 <siteDirectory>${basedir}/src/site-docs</siteDirectory>
67   - <!--stagingSiteURL>scp://people.apache.org/www/maven.apache.org/pom/asf-${project.version}/</stagingSiteURL-->
68   - <skipDeploy>true</skipDeploy><!-- don't deploy with maven-site-plugin -->
  71 + <skipDeploy>true</skipDeploy><!-- don't deploy site with maven-site-plugin -->
69 72 </configuration>
70 73 </plugin>
71 74 <plugin>
@@ -73,12 +76,14 @@ under the License.
73 76 <artifactId>maven-scm-publish-plugin</artifactId>
74 77 <version>1.0-beta-2</version>
75 78 <configuration>
76   - <content>${project.build.directory}/site</content>
  79 + <content>${project.reporting.outputDirectory}</content>
  80 + <checkoutDirectory>${maven.site.cache}/${maven.site.path}</checkoutDirectory>
  81 + <tryUpdate>true</tryUpdate>
77 82 </configuration>
78 83 <executions>
79 84 <execution>
80 85 <id>scm-publish</id>
81   - <phase>site-deploy</phase><!-- deploy with maven-scm-publish-plugin -->
  86 + <phase>site-deploy</phase><!-- deploy site with maven-scm-publish-plugin -->
82 87 <goals>
83 88 <goal>publish-scm</goal>
84 89 </goals>
@@ -90,19 +95,10 @@ under the License.
90 95
91 96 <profiles>
92 97 <profile>
93   - <id>staging</id>
94   - <build>
95   - <plugins>
96   - <plugin>
97   - <groupId>org.apache.maven.plugins</groupId>
98   - <artifactId>maven-scm-publish-plugin</artifactId>
99   - <configuration>
100   - <checkinComment>Staging site checkin for project ${project.name}</checkinComment>
101   - <pubScmUrl>${project.distributionManagement.site.url}../asf-${project.version}/</pubScmUrl>
102   - </configuration>
103   - </plugin>
104   - </plugins>
105   - </build>
  98 + <id>site-release</id>
  99 + <properties>
  100 + <maven.site.path>pom/asf</maven.site.path>
  101 + </properties>
106 102 </profile>
107 103 </profiles>
108 104 </project>

0 comments on commit c3f4bac

Please sign in to comment.
Something went wrong with that request. Please try again.