You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by hb...@apache.org on 2012/12/14 02:56:08 UTC
git commit: svnpubsub configuration simplification #2: use mvn site
site:stage instead mvn site-deploy
Updated Branches:
refs/heads/master 77669ed20 -> c7831f6e8
svnpubsub configuration simplification #2: use mvn site site:stage
instead mvn site-deploy
BTW, this has others advantages:
- easier to understand (it's a local site staging, not a site deployment
to remote hosting)
- the distributionManagement entry has the real value, not a temporary
local storage location (which appears in Distribution Management report)
Project: http://git-wip-us.apache.org/repos/asf/maven-surefire/repo
Commit: http://git-wip-us.apache.org/repos/asf/maven-surefire/commit/c7831f6e
Tree: http://git-wip-us.apache.org/repos/asf/maven-surefire/tree/c7831f6e
Diff: http://git-wip-us.apache.org/repos/asf/maven-surefire/diff/c7831f6e
Branch: refs/heads/master
Commit: c7831f6e8561a923347076433228fa3b20fec9fa
Parents: 77669ed
Author: Hervé Boutemy <hb...@apache.org>
Authored: Fri Dec 14 02:56:06 2012 +0100
Committer: Hervé Boutemy <hb...@apache.org>
Committed: Fri Dec 14 02:56:06 2012 +0100
----------------------------------------------------------------------
deploySite.sh | 2 +-
pom.xml | 8 +-------
2 files changed, 2 insertions(+), 8 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/maven-surefire/blob/c7831f6e/deploySite.sh
----------------------------------------------------------------------
diff --git a/deploySite.sh b/deploySite.sh
index b6517a2..be6bc26 100644
--- a/deploySite.sh
+++ b/deploySite.sh
@@ -19,4 +19,4 @@
# under the License.
#
-mvn clean site-deploy scm-publish:publish-scm $@
+mvn clean site site:stage scm-publish:publish-scm $@
http://git-wip-us.apache.org/repos/asf/maven-surefire/blob/c7831f6e/pom.xml
----------------------------------------------------------------------
diff --git a/pom.xml b/pom.xml
index e9b15f0..8e43cab 100644
--- a/pom.xml
+++ b/pom.xml
@@ -116,8 +116,6 @@
<shadedVersion>2.12.4</shadedVersion>
<mavenPluginPluginVersion>3.2</mavenPluginPluginVersion>
<maven.site.cache>${user.home}/maven-sites</maven.site.cache>
- <maven.surefire.siteFilePath>${maven.site.cache}/surefire-${project.version}/</maven.surefire.siteFilePath>
- <maven.surefire.siteUrlDeployment>file://${maven.surefire.siteFilePath}</maven.surefire.siteUrlDeployment>
<maven.surefire.scmPubCheckoutDirectory>${maven.site.cache}/surefire-site-content-${project.version}</maven.surefire.scmPubCheckoutDirectory>
<maven.surefire.site.path>surefire-archives/surefire-${project.version}</maven.surefire.site.path>
</properties>
@@ -125,7 +123,7 @@
<distributionManagement>
<site>
<id>apache.website</id>
- <url>${maven.surefire.siteUrlDeployment}</url>
+ <url>scm:svn:https://svn.apache.org/repos/infra/websites/production/maven/content/${maven.surefire.site.path}</url>
</site>
</distributionManagement>
@@ -302,9 +300,7 @@
<version>1.0-beta-2</version>
<configuration>
<checkoutDirectory>${maven.surefire.scmPubCheckoutDirectory}</checkoutDirectory>
- <pubScmUrl>scm:svn:https://svn.apache.org/repos/infra/websites/production/maven/content/${maven.surefire.site.path}</pubScmUrl>
<checkinComment>Apache Maven Surefire site deployment</checkinComment>
- <content>${maven.surefire.siteFilePath}</content>
<tryUpdate>true</tryUpdate>
</configuration>
</plugin>
@@ -422,8 +418,6 @@
<profile>
<id>site-release</id>
<properties>
- <maven.surefire.siteFilePath>${maven.site.cache}/surefire</maven.surefire.siteFilePath>
- <maven.surefire.siteUrlDeployment>file://${maven.surefire.siteFilePath}</maven.surefire.siteUrlDeployment>
<maven.surefire.scmPubCheckoutDirectory>${maven.site.cache}/surefire-site-content</maven.surefire.scmPubCheckoutDirectory>
<maven.surefire.site.path>surefire</maven.surefire.site.path>
</properties>