cocoon-docs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From da...@cocoon.zones.apache.org
Subject [DAISY] Updated: How to solve Maven 2 problems
Date Mon, 03 Jul 2006 05:56:47 GMT
A document has been updated:

http://cocoon.zones.apache.org/daisy/documentation/1164.html

Document ID: 1164
Branch: main
Language: default
Name: How to solve Maven 2 problems (previously Build problems with Maven)
Document Type: Cocoon Document (unchanged)
Updated on: 7/3/06 5:56:46 AM
Updated by: Reinhard Pötz

A new version has been created, state: publish

Parts
=====
Content
-------
This part has been updated.
Mime type: text/xml (unchanged)
File name:  (unchanged)
Size: 2233 bytes (previous version: 37 bytes)
Content diff:
--- <html><body><p>TODO</p></body></html>
+++ <html>
+++ <body>
+++ 
+++ <p>If you have problems to build Cocoon with Maven 2, please follow these
+++ instructions. If they don't solve your problem, report your problems to
+++ <a href="http://issues.apache.org/jira/browse/COCOON/">http://issues.apache.org/jira/browse/COCOON/</a>.
+++ An error report should contain your Maven version (<tt>mvn --version</tt>),
the
+++ revision number of you working copy of Cocoon and the complete error report
+++ (e.g. <tt>mvn install -X -e</tt>).</p>
+++ 
+++ <h2>Configure a mirror</h2>
+++ 
+++ <p>Maven relys on public repositories. From time to time they are not accessible
+++ mostly because of heavy load. To solve this problem, use one of the mirrors:</p>
+++ 
+++ <pre>&lt;settings&gt;
+++   &lt;mirrors&gt;
+++     &lt;mirror&gt;
+++       &lt;mirrorOf&gt;central&lt;/mirrorOf&gt;
+++       &lt;id&gt;ibiblioEuropeanMirror&lt;/id&gt;
+++       &lt;url&gt;http://mirrors.dotsrc.org/maven2&lt;/url&gt;
+++     &lt;/mirror&gt;
+++     &lt;!-- 
+++     &lt;mirror&gt;
+++       &lt;mirrorOf&gt;central&lt;/mirrorOf&gt;
+++       &lt;id&gt;ibiblioAustralianMirror&lt;/id&gt;
+++       &lt;url&gt;http://public.planetmirror.com/pub/maven2&lt;/url&gt;
+++     &lt;/mirror&gt;    
+++      --&gt;
+++   &lt;/mirrors&gt;
+++ &lt;/settings&gt;</pre>
+++ 
+++ <p>In any way, the mirrors a much faster than the official IBiblio central
+++ repository.</p>
+++ 
+++ <h2>Cleanup your local repository</h2>
+++ 
+++ <p>It helps to zap your local repo every now and then. There is no way as of yet
+++ to force maven to redownload poms it has already (MNG-1258).
+++ Poms<strong> are</strong> being updated without version number increment
even
+++ though they shouldn't.</p>
+++ 
+++ <h1>And when your build works</h1>
+++ 
+++ <h2>Run Cocoon in offline mode</h2>
+++ 
+++ <p>You shouldn't  get any problems anymore as long as you don't update your
+++ local repo. To switch on the offline mode, append the -o parameter. e.g.</p>
+++ 
+++ <pre>mvn clean -o</pre>
+++ 
+++ <h2>Setup a company internal proxy repository</h2>
+++ 
+++ <p>If you don't want to rely on external repositories, you can setup a company
+++ internal <a href="http://maven-proxy.codehaus.org/">proxy repository</a>.
The
+++ Codehaus wiki contains
+++ <a href="http://docs.codehaus.org/display/MAVENUSER/Creating+a+Maven+proxy">more
+++ information</a> about the setup process</p>
+++ 
+++ </body>
+++ </html>


Fields
======
no changes

Links
=====
no changes

Custom Fields
=============
no changes

Collections
===========
no changes

Mime
View raw message