You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by ol...@apache.org on 2012/09/04 22:13:48 UTC

svn commit: r831140 [2/2] - in /websites/production/maventest/content/plugins/maven-scm-publish-plugin: dependencies.html examples/multi-module-configuration.html various-tips.html

Modified: websites/production/maventest/content/plugins/maven-scm-publish-plugin/examples/multi-module-configuration.html
==============================================================================
--- websites/production/maventest/content/plugins/maven-scm-publish-plugin/examples/multi-module-configuration.html (original)
+++ websites/production/maventest/content/plugins/maven-scm-publish-plugin/examples/multi-module-configuration.html Tue Sep  4 20:13:48 2012
@@ -158,9 +158,9 @@
       <div id="contentBox">
         <!-- Licensed to the Apache Software Foundation (ASF) under one --><!-- or more contributor license agreements.  See the NOTICE file --><!-- distributed with this work for additional information --><!-- regarding copyright ownership.  The ASF licenses this file --><!-- to you under the Apache License, Version 2.0 (the --><!-- "License"); you may not use this file except in compliance --><!-- with the License.  You may obtain a copy of the License at --><!--  --><!-- http://www.apache.org/licenses/LICENSE-2.0 --><!--  --><!-- Unless required by applicable law or agreed to in writing, --><!-- software distributed under the License is distributed on an --><!-- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY --><!-- KIND, either express or implied.  See the License for the --><!-- specific language governing permissions and limitations --><!-- under the License. --><!-- NOTE: For help with the syntax of this file, see: --><!-- http://maven.apache.org/doxia/referen
 ces/apt-format.html --><div class="section"><h2>Maven Multi Module Configuration<a name="Maven_Multi_Module_Configuration"></a></h2><p>With a multi modules build you can not use: mvn site-deploy. You must stage your site first.</p><p>Cli to use: <b>mvn clean site site:stage-deploy scm-publish:publish-scm</b></p><div class="source"><pre>
   &lt;properties&gt;
-    &lt;siteContentPath&gt;${user.home}/my-site-deploy&lt;/siteContentPath&gt;
-    &lt;scmCheckoutPath&gt;${user.home}/my-site-content&lt;/scmCheckoutPath&gt;
-    &lt;siteDeployUrl&gt;file://${siteContentPath}&lt;/siteDeployUrl&gt;
+    &lt;siteContent.path&gt;${user.home}/my-site-deploy&lt;/siteContent.path&gt;
+    &lt;scmCheckout.path&gt;${user.home}/my-site-content&lt;/scmCheckout.path&gt;
+    &lt;siteDeploy.url&gt;file://${siteContent.path}&lt;/siteDeploy.url&gt;
   &lt;/properties&gt;
 
   &lt;plugin&gt;
@@ -168,8 +168,8 @@
     &lt;artifactId&gt;maven-scm-publish-plugin&lt;/artifactId&gt;
     &lt;version&gt;1.0-SNAPSHOT&lt;/version&gt;
     &lt;configuration&gt;
-      &lt;checkoutDirectory&gt;$\{scmCheckoutPath}&lt;/checkoutDirectory&gt;
-      &lt;content&gt;$\{siteContentPath}&lt;/content&gt;
+      &lt;checkoutDirectory&gt;${scmCheckout.path}&lt;/checkoutDirectory&gt;
+      &lt;content&gt;${siteContent.path}&lt;/content&gt;
     &lt;/configuration&gt;
   &lt;/plugin&gt;
   &lt;plugin&gt;
@@ -177,7 +177,7 @@
     &lt;artifactId&gt;maven-site-plugin&lt;/artifactId&gt;
     &lt;version&gt;3.1&lt;/version&gt;
     &lt;configuration&gt;
-      &lt;stagingSiteURL&gt;$\{siteDeployUrl}&lt;/stagingSiteURL&gt;
+      &lt;stagingSiteURL&gt;${siteDeploy.url}&lt;/stagingSiteURL&gt;
     &lt;/configuration&gt;
   &lt;/plugin&gt;
 </pre></div></div>

Modified: websites/production/maventest/content/plugins/maven-scm-publish-plugin/various-tips.html
==============================================================================
--- websites/production/maventest/content/plugins/maven-scm-publish-plugin/various-tips.html (original)
+++ websites/production/maventest/content/plugins/maven-scm-publish-plugin/various-tips.html Tue Sep  4 20:13:48 2012
@@ -156,7 +156,26 @@
     </div>
     <div id="bodyColumn">
       <div id="contentBox">
-        <!-- Licensed to the Apache Software Foundation (ASF) under one --><!-- or more contributor license agreements.  See the NOTICE file --><!-- distributed with this work for additional information --><!-- regarding copyright ownership.  The ASF licenses this file --><!-- to you under the Apache License, Version 2.0 (the --><!-- "License"); you may not use this file except in compliance --><!-- with the License.  You may obtain a copy of the License at --><!--  --><!-- http://www.apache.org/licenses/LICENSE-2.0 --><!--  --><!-- Unless required by applicable law or agreed to in writing, --><!-- software distributed under the License is distributed on an --><!-- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY --><!-- KIND, either express or implied.  See the License for the --><!-- specific language governing permissions and limitations --><!-- under the License. --><!-- NOTE: For help with the syntax of this file, see: --><!-- http://maven.apache.org/doxia/referen
 ces/apt-format.html --><div class="section"><h2>Various tips for using this plugin<a name="Various_tips_for_using_this_plugin"></a></h2><div class="section"><h3>Some Tips to improve performance<a name="Some_Tips_to_improve_performance"></a></h3><p>By default, a complete checkout is done, you can configure the plugin to try update rather than a full checkout/clone</p><div class="source"><pre>
+        <!-- Licensed to the Apache Software Foundation (ASF) under one --><!-- or more contributor license agreements.  See the NOTICE file --><!-- distributed with this work for additional information --><!-- regarding copyright ownership.  The ASF licenses this file --><!-- to you under the Apache License, Version 2.0 (the --><!-- "License"); you may not use this file except in compliance --><!-- with the License.  You may obtain a copy of the License at --><!--  --><!-- http://www.apache.org/licenses/LICENSE-2.0 --><!--  --><!-- Unless required by applicable law or agreed to in writing, --><!-- software distributed under the License is distributed on an --><!-- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY --><!-- KIND, either express or implied.  See the License for the --><!-- specific language governing permissions and limitations --><!-- under the License. --><!-- NOTE: For help with the syntax of this file, see: --><!-- http://maven.apache.org/doxia/referen
 ces/apt-format.html --><div class="section"><h2>Various tips for using this plugin<a name="Various_tips_for_using_this_plugin"></a></h2><div class="section"><h3>URLS format<a name="URLS_format"></a></h3><p>You must a scm url format: +---------------- scm:<i>scm_provider</i><i>delimiter</i><i>provider_specific_part</i> +----------------</p><p>Svn example: scm:svn:https://svn.apache.org/repos/infra/websites/production/maventest/content/plugins/maven-scm-publish-plugin/</p><p>And configure is as it:</p><div class="source"><pre>
+    &lt;plugin&gt;
+      &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
+      &lt;artifactId&gt;maven-scm-publish-plugin&lt;/artifactId&gt;
+      &lt;version&gt;1.0-SNAPSHOT&lt;/version&gt;
+      &lt;configuration&gt;
+        &lt;pubScmUrl&gt;scmUrl&lt;/pubScmUrl&gt;
+      &lt;/configuration&gt;
+    &lt;/plugin&gt;
+</pre></div><p><tt>NOTE</tt>: with the svn if the remote url doesn't exist it will be created.</p><p>To use git branch (by example: github gh-pages)</p><div class="source"><pre>
+    &lt;plugin&gt;
+      &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
+      &lt;artifactId&gt;maven-scm-publish-plugin&lt;/artifactId&gt;
+      &lt;version&gt;1.0-SNAPSHOT&lt;/version&gt;
+      &lt;configuration&gt;
+        &lt;scmBranch&gt;gh-pages&lt;/scmBranch&gt;
+        &lt;pubScmUrl&gt;scm:git:git@github.com:olamy/tomcat-foo-artifact.git&lt;/pubScmUrl&gt;
+      &lt;/configuration&gt;
+    &lt;/plugin&gt;
+</pre></div></div><div class="section"><h3>Some Tips to improve performance<a name="Some_Tips_to_improve_performance"></a></h3><p>By default, a complete checkout is done, you can configure the plugin to try update rather than a full checkout/clone</p><div class="source"><pre>
     &lt;plugin&gt;
       &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
       &lt;artifactId&gt;maven-scm-publish-plugin&lt;/artifactId&gt;