Repository: bval Updated Branches: refs/heads/master af7ed395a -> 3da9b757a
set up publishing of generated site to subsection of CMS site Project: http://git-wip-us.apache.org/repos/asf/bval/repo Commit: http://git-wip-us.apache.org/repos/asf/bval/commit/3da9b757 Tree: http://git-wip-us.apache.org/repos/asf/bval/tree/3da9b757 Diff: http://git-wip-us.apache.org/repos/asf/bval/diff/3da9b757 Branch: refs/heads/master Commit: 3da9b757a24269f630dba30003b4f47e92bb8be9 Parents: af7ed39 Author: Matt Benson <[email protected]> Authored: Wed Oct 17 10:01:31 2018 -0500 Committer: Matt Benson <[email protected]> Committed: Wed Oct 17 10:01:31 2018 -0500 ---------------------------------------------------------------------- pom.xml | 46 +++++++++++++++++++++++++++++++++++++++++++--- 1 file changed, 43 insertions(+), 3 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/bval/blob/3da9b757/pom.xml ---------------------------------------------------------------------- diff --git a/pom.xml b/pom.xml index 311a8a4..db01028 100644 --- a/pom.xml +++ b/pom.xml @@ -40,9 +40,11 @@ <description>Apache BVal parent pom</description> <properties> - <site.deploy.url>sftp://people.apache.org/home/${user.name}/public_html/bval/${project.version}/staging-site</site.deploy.url> <commons.weaver.version>2.0</commons.weaver.version> <privilizer.policy>DYNAMIC</privilizer.policy> + <site.checkout>${user.home}/apache-bval-site</site.checkout> + <site.url>scm:svn:https://svn.apache.org/repos/infra/websites/production/bval/content/mvnsite</site.url> + <site.server>bval.site</site.server> </properties> <inceptionYear>2010</inceptionYear> @@ -243,8 +245,9 @@ <distributionManagement> <site> - <id>people.apache.org</id> - <url>${site.deploy.url}</url> + <id>bval.site</id> + <name>Apache BVal Site SVN</name> + <url>scm:svn:${site.url}</url> </site> </distributionManagement> @@ -691,6 +694,43 @@ </execution> </executions> </plugin> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-site-plugin</artifactId> + <configuration> + <skipDeploy>true</skipDeploy> + </configuration> + <executions> + <execution> + <id>site-stage</id> + <phase>post-site</phase> + <goals> + <goal>stage</goal> + </goals> + </execution> + </executions> + </plugin> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-scm-publish-plugin</artifactId> + <version>3.0.0</version> + <inherited>false</inherited> + <configuration> + <pubScmUrl>${site.url}</pubScmUrl> + <checkoutDirectory>${site.checkout}</checkoutDirectory> + <serverId>${site.server}</serverId> + <tryUpdate>true</tryUpdate> + </configuration> + <executions> + <execution> + <id>scm-publish</id> + <phase>site-deploy</phase><!-- deploy site with maven-scm-publish-plugin --> + <goals> + <goal>publish-scm</goal> + </goals> + </execution> + </executions> + </plugin> <!-- Don't include in all builds for now <plugin> <groupId>org.codehaus.mojo</groupId>
