Return-Path: X-Original-To: apmail-maven-commits-archive@www.apache.org Delivered-To: apmail-maven-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 5BA2F10411 for ; Sat, 25 Jan 2014 18:07:32 +0000 (UTC) Received: (qmail 91928 invoked by uid 500); 25 Jan 2014 18:07:30 -0000 Delivered-To: apmail-maven-commits-archive@maven.apache.org Received: (qmail 91823 invoked by uid 500); 25 Jan 2014 18:07:30 -0000 Mailing-List: contact commits-help@maven.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@maven.apache.org Delivered-To: mailing list commits@maven.apache.org Received: (qmail 91816 invoked by uid 99); 25 Jan 2014 18:07:30 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 25 Jan 2014 18:07:30 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 25 Jan 2014 18:07:28 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id B1BDD23888FE; Sat, 25 Jan 2014 18:07:08 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1561353 - in /maven/plugins/trunk/maven-scm-publish-plugin/src/site/apt: examples/multi-module-configuration.apt.vm examples/one-module-configuration.apt.vm usage.apt.vm various-tips.apt.vm Date: Sat, 25 Jan 2014 18:07:08 -0000 To: commits@maven.apache.org From: hboutemy@apache.org X-Mailer: svnmailer-1.0.9 Message-Id: <20140125180708.B1BDD23888FE@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: hboutemy Date: Sat Jan 25 18:07:08 2014 New Revision: 1561353 URL: http://svn.apache.org/r1561353 Log: improved doc Modified: maven/plugins/trunk/maven-scm-publish-plugin/src/site/apt/examples/multi-module-configuration.apt.vm maven/plugins/trunk/maven-scm-publish-plugin/src/site/apt/examples/one-module-configuration.apt.vm maven/plugins/trunk/maven-scm-publish-plugin/src/site/apt/usage.apt.vm maven/plugins/trunk/maven-scm-publish-plugin/src/site/apt/various-tips.apt.vm Modified: maven/plugins/trunk/maven-scm-publish-plugin/src/site/apt/examples/multi-module-configuration.apt.vm URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-scm-publish-plugin/src/site/apt/examples/multi-module-configuration.apt.vm?rev=1561353&r1=1561352&r2=1561353&view=diff ============================================================================== --- maven/plugins/trunk/maven-scm-publish-plugin/src/site/apt/examples/multi-module-configuration.apt.vm (original) +++ maven/plugins/trunk/maven-scm-publish-plugin/src/site/apt/examples/multi-module-configuration.apt.vm Sat Jan 25 18:07:08 2014 @@ -29,33 +29,14 @@ Maven Multi Module Configuration - With a multi modules build, you cannot use: <<>>. You must stage your site first. + With a multi modules build, you cannot simply use <<>>: you must stage your site first. - Cli command to use: <<>> then <<>> - -+----------------------- - - - - ${user.home} - // it's a default location for performance reason (avoid checkout the content on every build) - // you can override this value in your settings. - ${site.mainDirectory}/$\{project.artifactId} - - - - org.apache.maven.plugins - maven-scm-publish-plugin - ${project.version} - - ${scmCheckout.path} - - - - org.apache.maven.plugins - maven-site-plugin - - -+----------------------- + Cli commands to use: ++------------+ +mvn -Preporting site site:stage +mvn scm-publish:publish-scm ++------------+ + These commands work well with mono-module too, even if mono-module could permit some optimizations (everything can be run + in only one Maven invocation). Modified: maven/plugins/trunk/maven-scm-publish-plugin/src/site/apt/examples/one-module-configuration.apt.vm URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-scm-publish-plugin/src/site/apt/examples/one-module-configuration.apt.vm?rev=1561353&r1=1561352&r2=1561353&view=diff ============================================================================== --- maven/plugins/trunk/maven-scm-publish-plugin/src/site/apt/examples/one-module-configuration.apt.vm (original) +++ maven/plugins/trunk/maven-scm-publish-plugin/src/site/apt/examples/one-module-configuration.apt.vm Sat Jan 25 18:07:08 2014 @@ -29,9 +29,9 @@ Maven Mono Module Configuration - <> + <> - With this configuration you can simply run: <<>> + With following configuration you can simply run: <<>> +----------------------- @@ -46,7 +46,7 @@ Maven Mono Module Configuration maven-scm-publish-plugin ${project.version} - ${project.reporting.outputDirectory} + ${project.reporting.outputDirectory} @@ -59,5 +59,3 @@ Maven Mono Module Configuration +----------------------- - - Modified: maven/plugins/trunk/maven-scm-publish-plugin/src/site/apt/usage.apt.vm URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-scm-publish-plugin/src/site/apt/usage.apt.vm?rev=1561353&r1=1561352&r2=1561353&view=diff ============================================================================== --- maven/plugins/trunk/maven-scm-publish-plugin/src/site/apt/usage.apt.vm (original) +++ maven/plugins/trunk/maven-scm-publish-plugin/src/site/apt/usage.apt.vm Sat Jan 25 18:07:08 2014 @@ -44,24 +44,24 @@ mvn scm-publish:publish-scm There are two ways you can set this up for site in your POM. - * Use the Custom Lifecycle +** Use the Custom Lifecycle Unfortunately, a Maven plugin can't define a top-level lifecycle like 'site'. However, it can come close. The plugin includes the goal. This goal does nothing except fork a custom lifecycle, consisting of the following phases: - ** <<>> + * <<>> - ** <<>> + * <<>> - ** <<>> + * <<>> - ** <<>> + * <<>> - ** <<>> + * <<>> - [] + [] (Again unfortunately, Maven does not allow a custom lifecycle to share phases with some other lifecycle.) @@ -96,7 +96,7 @@ mvn scm-publish:publish-scm : this is actually not working, the 003-lifecycle IT has been disabled. - * Using the Site Lifecycle +** Using the Site Lifecycle The alternative is to attach the necessary activities to the site lifecycle and deactivate maven-site-plugin's site deploy goal. This requires more XML in the POM, but it may be easier Modified: maven/plugins/trunk/maven-scm-publish-plugin/src/site/apt/various-tips.apt.vm URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-scm-publish-plugin/src/site/apt/various-tips.apt.vm?rev=1561353&r1=1561352&r2=1561353&view=diff ============================================================================== --- maven/plugins/trunk/maven-scm-publish-plugin/src/site/apt/various-tips.apt.vm (original) +++ maven/plugins/trunk/maven-scm-publish-plugin/src/site/apt/various-tips.apt.vm Sat Jan 25 18:07:08 2014 @@ -53,7 +53,7 @@ Various tips for using this plugin * Git branch - To use git branch (by example: github gh-pages) + To use git branch (for example: github gh-pages) +---------------- @@ -74,7 +74,7 @@ Various tips for using this plugin +---------------- -* Some Tips to improve performance +* Improving SCM Checkout Performance By default, a complete checkout is done. You can configure the plugin to try update rather than a full checkout/clone