You are viewing a plain text version of this content. The canonical link for it is here.
Posted to muse-commits@ws.apache.org by da...@apache.org on 2006/09/11 18:41:30 UTC

svn commit: r442250 - in /webservices/muse: site/source-code.html trunk/modules/build-instructions.txt

Author: danj
Date: Mon Sep 11 09:41:29 2006
New Revision: 442250

URL: http://svn.apache.org/viewvc?view=rev&rev=442250
Log:
added maven build instructions to page with svn/checkout info. TODOs in place for andrew to add info about building 
the full release (with ant) and setting up an eclipse workspace.

Removed:
    webservices/muse/trunk/modules/build-instructions.txt
Modified:
    webservices/muse/site/source-code.html

Modified: webservices/muse/site/source-code.html
URL: http://svn.apache.org/viewvc/webservices/muse/site/source-code.html?view=diff&rev=442250&r1=442249&r2=442250
==============================================================================
--- webservices/muse/site/source-code.html (original)
+++ webservices/muse/site/source-code.html Mon Sep 11 09:41:29 2006
@@ -115,87 +115,128 @@
 <div id="content">
 <div id="skinconf-txtlink"></div>
 <h2>Apache Muse - Source Code Repository and Build Instructions</h2>
-TODO: Maven, Ant, and Eclipse sections
 <div id="minitoc-area">
 <ul class="minitoc">
 <li>
-<a href="#Overview">Overview</a>
+<a href="#get-src">Getting the Source Code</a>
 </li>
 <li>
-<a href="#Web+Access+%28read-only%29">Web Access (read-only)</a>
+<a href="#build-src">Building the Source Code</a>
 </li>
 <li>
-<a href="#Anonymous+Access+%28read-only%29">Anonymous Access (read-only)</a>
+<a href="#build-release">Building the Release</a>
 </li>
 <li>
-<a href="#Committer+Access+%28read-write%29">Committer Access (read-write)</a>
-</li>
-<li>
-<a href="#Access+Via+a+Proxy">Access Via a Proxy</a>
+<a href="#eclipse">Developing with Eclipse</a>
 </li>
 </ul>
 </div>
-  
-    
-<a name="N1000C"></a><a name="Overview"></a>
-<h2 class="boxed">Overview</h2>
-<div class="section">
-<p>
-        The Apache Muse source code resides in Apache's <a class="external" href="http://subversion.tigris.org/">Subversion</a> (SVN) repository.
-        The command-line SVN client can be obtained <a class="external" href="http://subversion.tigris.org/project_packages.html">here</a>.
-        The TortoiseSVN GUI client for Windows can be obtained <a class="external" href="http://tortoisesvn.tigris.org/">here</a>. There is 
-        an Eclipse plugin that provides SVN support <a class="external" href="http://subclipse.tigris.org">here</a>.
-      </p>
-</div>
-    
-    
-<a name="N10022"></a><a name="Web+Access+%28read-only%29"></a>
-<h2 class="boxed">Web Access (read-only)</h2>
+
+<a name="N10022"></a><a name="get-src"></a>
+<h2 class="boxed">Getting the Source Code</h2>
 <div class="section">
-<p>
-        The SVN repository can be browsed via the Web at 
+		<p>
+        <strong>Web Access:</strong> The code repository can be browsed at 
         <a class="external" href="http://svn.apache.org/viewcvs.cgi/webservices/muse/">http://svn.apache.org/viewcvs.cgi/webservices/muse/</a>.
-        No SVN client software is required.
-      </p>
-</div>
-    
-    
-<a name="N10030"></a><a name="Anonymous+Access+%28read-only%29"></a>
-<h2 class="boxed">Anonymous Access (read-only)</h2>
-<div class="section">
-<p>
-        The SVN URL for anonymous users is 
+		</p>
+
+		<p>
+        <strong>Anonymous SVN:</strong> The SVN URL for anonymous users is 
         <a class="external" href="http://svn.apache.org/repos/asf/webservices/muse/">http://svn.apache.org/repos/asf/webservices/muse/</a>.
-        Instructions for anonymous SVN access are 
+        Instructions for anonymous access are 
         <a class="external" href="http://www.apache.org/dev/version-control.html#anon-svn">here</a>.
-      </p>
-</div>
-    
-    
-<a name="N10042"></a><a name="Committer+Access+%28read-write%29"></a>
-<h2 class="boxed">Committer Access (read-write)</h2>
-<div class="section">
-<p>
-        The SVN URL for committers is 
+		</p>
+
+		<p>
+        <strong>Committer SVN:</strong> The SVN URL for committers is 
         <a class="external" href="https://svn.apache.org/repos/asf/webservices/muse/">https://svn.apache.org/repos/asf/webservices/muse/</a>.
-        Instructions for committer SVN access are 
+        Instructions for committer access are 
         <a class="external" href="http://www.apache.org/dev/version-control.html#https-svn">here</a>.
-      </p>
-</div>
-    
-    
-<a name="N10054"></a><a name="Access+Via+a+Proxy"></a>
-<h2 class="boxed">Access via Proxy</h2>
+		</p>
+</p>
+</div>    
+
+<a name="N10022"></a><a name="build-src"></a>
+<h2 class="boxed">Building the Source Code</h2>
 <div class="section">
 <p>
-        SVN clients can go through a proxy, if you configure them to do so. The 
-        <a class="external" href="http://subversion.tigris.org/faq.html#proxy">Subversion FAQ</a>
-        describes how to configure the command-line client to use a proxy. To 
-        configure TortoiseSVN to use a proxy, go to "TortoiseSVN Settings &gt; Network".
-      </p>
+<a href="http://maven.apache.org/" class="external">Apache Maven</a> provides the 
+compilation and dependency management framework for Apache Muse. We are currently 
+using version <strong>2.0.4</strong>.
+</p>
+<p>When you <a href="http://maven.apache.org/download.html#Installation" 
+class="external">install Maven</a>, you may notice that the project has a very 
+small download and that the instructions are very simple. Do not be misled. There 
+is more to Maven than meets the eye. Below are some additional instructions that 
+you should follow in order to get the build up and running:
+</p>
+<p>
+<ul>
+<li>
+Read Maven's <a href="http://maven.apache.org/guides/getting-started" class="external">tutorial</a>. 
+You can ignore the material about plugins for now.
+<br/></li><br/>
+
+<li>Change the location of your local Maven repository from the default to 
+something more meaningful. You can do this by modifying the <em>/conf/settings.xml</em> 
+file in your Maven install directory. Just change the <em>localRespository</em>
+element to something like this:
+<blockquote><code>
+	&lt;localRepository&gt;/maven/repository&lt;/localRepository&gt;
+</code></blockquote>
+This is especially important on Windows machines, where the repository is hidden 
+in the <em>C:\Documents and Settings\%user%\.m2</em> directory.
+<br/></li><br/>
+
+<li>The reason that the Maven installation package is so small is that it doesn't really include the 
+entire project; Maven uses its own technology to download its dependencies 
+the first time it's used for a build. Unfortunately, the 
+<a href="http://www.ibiblio.org/maven2/" class="external">default Maven repository</a> 
+is constantly under heavy traffic, so the first few times you try to run the build, 
+it may "fail" simply because it times out waiting for a JAR file that is referenced 
+by the build. This is normal. Your best course of action is to re-run the build 
+until Maven manages to download all of the dependencies and compile the code; once 
+all of the dependencies are downloaded, you won't have to fetch them again.
+<br/></li><br/>
+
+<li>
+Run the the following commands from /trunk/modules:
+<blockquote><code>
+	mvn -ff -e install<br/>
+	mvn clean
+</code></blockquote>
+This will run the build, copy the JAR files to your local repository, and 
+clean up the temporary directories that were created.
+<br/><br/>
+Do <strong>not</strong> combine the install and clean tasks into one command - this 
+will cause Maven to clean up after each individual module is built, causing the 
+compilation of later modules to fail.
+<br/></li><br/>
+</ul>
+</p>
+<p>Once Maven has built all of the modules, you can access the JAR files in 
+your local repository under <em>/muse</em>.</p>
 </div>    
-    
-  
+
+<a name="N10022"></a><a name="build-release"></a>
+<h2 class="boxed">Building the Release</h2>
+<div class="section">
+<p>
+TODO: Andrew
+</p>
+</p>
+</div>   
+
+
+<a name="N10022"></a><a name="build-src"></a>
+<h2 class="boxed">Developing with Eclipse</h2>
+<div class="section">
+<p>
+TODO: Andrew
+</p>
+</p>
+</div>   
+
 </div>
 <!--+
     |end content



---------------------------------------------------------------------
To unsubscribe, e-mail: muse-commits-unsubscribe@ws.apache.org
For additional commands, e-mail: muse-commits-help@ws.apache.org