continuum-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From eveni...@apache.org
Subject svn commit: r385797 - in /maven/continuum/trunk/continuum-site/src/site: apt/guides/getting-started/index.apt fml/about.fml fml/faqs.fml
Date Tue, 14 Mar 2006 13:12:27 GMT
Author: evenisse
Date: Tue Mar 14 05:12:25 2006
New Revision: 385797

URL: http://svn.apache.org/viewcvs?rev=385797&view=rev
Log:
[CONTINUUM-610] Add section about building recursively from parent to FAQ and provide more
information on adding shell projects
Submitted by Mang Lau

Modified:
    maven/continuum/trunk/continuum-site/src/site/apt/guides/getting-started/index.apt
    maven/continuum/trunk/continuum-site/src/site/fml/about.fml
    maven/continuum/trunk/continuum-site/src/site/fml/faqs.fml

Modified: maven/continuum/trunk/continuum-site/src/site/apt/guides/getting-started/index.apt
URL: http://svn.apache.org/viewcvs/maven/continuum/trunk/continuum-site/src/site/apt/guides/getting-started/index.apt?rev=385797&r1=385796&r2=385797&view=diff
==============================================================================
--- maven/continuum/trunk/continuum-site/src/site/apt/guides/getting-started/index.apt (original)
+++ maven/continuum/trunk/continuum-site/src/site/apt/guides/getting-started/index.apt Tue
Mar 14 05:12:25 2006
@@ -122,7 +122,7 @@
  When adding Ant projects you have to specify the project's name, SCM URL, 
  version and the targets to execute.
 
- <NOTE:> The SCM URL is a Maven SCM URL. Here's an example of what an
+ <NOTE:> The SCM URL is a {{{http://maven.apache.org/scm/scm-url-format.html}Maven
SCM URL}}. Here's an example of what an
  SCM URL looks like:
  <<<scm:svn:http://svn.apache.org/repos/asf/maven/continuum/trunk>>>
 
@@ -135,6 +135,31 @@
  <NOTE:> The SCM URL is a Maven SCM URL. Here's an example of what an
  SCM URL looks like:
  <<<scm:svn:http://svn.apache.org/repos/asf/maven/continuum/trunk>>>
+
+ To specify the shell script to be executed, click on the shell project and
+ click "Add" under the "Build Definitions" section. This script should <<at
+ least>> be able to run Maven.
+
+ Here is a sample batch script that calls <<<mvn.bat>>> in a Windows environment:
+
++--+ 
+@echo off
+
+cmd /C mvn.bat MAVEN PARAMETERS HERE
+if ERRORLEVEL 1 goto error
+goto end
+
+:error
+exit 1
+
+:end
+exit 0
++--+
+
+ The script executes Maven and obtains the exit code from it.  You may add
+ post-build tasks to the <<<:error>>> and/or <<<:end>>>
sections provided they
+ are placed before the <<<exit>>> statements.  Pre-build tasks should be
added
+ before the call to <<<mvn.bat>>>.
 
 Building Projects
 

Modified: maven/continuum/trunk/continuum-site/src/site/fml/about.fml
URL: http://svn.apache.org/viewcvs/maven/continuum/trunk/continuum-site/src/site/fml/about.fml?rev=385797&r1=385796&r2=385797&view=diff
==============================================================================
--- maven/continuum/trunk/continuum-site/src/site/fml/about.fml (original)
+++ maven/continuum/trunk/continuum-site/src/site/fml/about.fml Tue Mar 14 05:12:25 2006
@@ -95,7 +95,7 @@
           To checkout the continuum-site project from the ASF Subversion repository, download
the Subversion client for
           your platform and run:
           <source>
-svn co http://svn.apache.org/repos/asf/maven/continuum/trunk/continuum-site
+svn co https://svn.apache.org/repos/asf/maven/continuum/trunk/continuum-site
           </source>
         </p>
         <p>
@@ -108,6 +108,11 @@
           </source>
           After executing the <code>site:site</code> goal, the Continuum site
will be stored in the
           <code>target/site</code> directory.
+        </p>
+        <p>
+          If you receive an error resolving the artifact <code>continuum-parent</code>,
download the parent pom.xml from <a 
+          href="http://svn.apache.org/repos/asf/maven/continuum/trunk/pom.xml">here</a>
and place it in the directory above your
+          <code>continuum-site</code> directory.  Then try the build again.
         </p>
         <p>
           Once you have updated the documentation, generate a patch by running

Modified: maven/continuum/trunk/continuum-site/src/site/fml/faqs.fml
URL: http://svn.apache.org/viewcvs/maven/continuum/trunk/continuum-site/src/site/fml/faqs.fml?rev=385797&r1=385796&r2=385797&view=diff
==============================================================================
--- maven/continuum/trunk/continuum-site/src/site/fml/faqs.fml (original)
+++ maven/continuum/trunk/continuum-site/src/site/fml/faqs.fml Tue Mar 14 05:12:25 2006
@@ -168,6 +168,28 @@
         </p>
       </answer>
     </faq>
-  
+    <faq id="build-entire-project-recursively-from-parent">
+      <question>How can I build the entire project recursively from the parent?</question>
+      <answer>
+        <p>
+          If you want to build recursively from the parent, you have to remove the <code>--non-recursive</code>
or <code>-N</code> argument under the
+          "Build Definitions" section of your parent project.
+        </p>
+        <p>
+          Ensure that your entire project can be checked out using the SCM URL in your parent
project.
+        </p>
+        <p>
+          For CVS users who have each child project in a separate module, you have several
options:
+          <p>
+          <ui>
+            <li>Refactor the CVS directory structure to a more standard one (i.e. a
module with the parent POM at the base and child projects as subdirectories)</li>
+            <li>Keep the structure and create a new module that contains a parent POM
and a list of symbolic links to your actual CVS modules</li>
+          </ui>
+          </p>
+          These options ensure that your child projects will not be checked out into separate
numbered working directories. Instead, they will be checked out
+          correctly under a single working directory.
+        </p>
+      </answer>
+    </faq>
   </part>
 </faqs>



Mime
View raw message