dion 2003/07/03 06:46:09
Modified: xdocs/reference user-guide.xml
Log:
Apply patch for MAVEN-537 thanks to Martin Skopp
Revision Changes Path
1.54 +37 -10 maven/xdocs/reference/user-guide.xml
Index: user-guide.xml
===================================================================
RCS file: /home/cvs/maven/xdocs/reference/user-guide.xml,v
retrieving revision 1.53
retrieving revision 1.54
diff -u -r1.53 -r1.54
--- user-guide.xml 27 Jun 2003 02:01:14 -0000 1.53
+++ user-guide.xml 3 Jul 2003 13:46:09 -0000 1.54
@@ -991,24 +991,51 @@
If you find you need to build your projects offline you can either
use the offline switch on the CLI:
</p>
-<source><![CDATA[
+ <source><![CDATA[
maven -o jar:jar
-]]></source>
-
+ ]]></source>
<p>
- Or you can set the <code>maven.mode.online</code> property to
- <code>false</code>.
+ which is equivalent to
+ </p>
+ <source><![CDATA[
+maven -Dmaven.mode.online=false jar:jar
+ ]]></source>
+ <p>
+ Or you can set <code>maven.mode.online</code> to
+ <code>false</code> in a <a href="#Properties Processing">property
file</a>.
+ </p>
+ <p>
+ In online mode, maven always downloads SNAPSHOT dependencies, see
+ <a href="#Using SNAPSHOT Dependencies">Using SNAPSHOT Dependencies</a>.
+ If the snapshots in your local repository are younger than the ones
+ on the server, you propably don't want that maven overwrites you local
+ snapshot jars.
+ To avoid downloading, set property
+ </p>
+ <source><![CDATA[
+maven.repo.remote.enabled=false
+ ]]></source>
+ <p>
+ In maven beta 9, this property does not work (but it's fixed in newer
releases).
+ Clearing the property <code>maven.repo.remote</code> by setting
+ </p>
+ <source><![CDATA[
+maven.repo.remote.enabled=
+ ]]></source>
+ <p>
+ via CLI or property file has the same effect.
+ </p>
+ <p>
+ Using <code>maven.repo.remote.enabled=false</code> and
+ <code>maven.mode.online=true</code> is the combination to use if one
needs a working
+ "-link" option for the javadoc plugin plus no download of snapshot/any
jars.
</p>
-
-<source><![CDATA[
-maven.mode.online = false
-]]></source>
</subsection>
<subsection name="Summary of CLI Options">
<p>
- If you are using the CLI to build, here is a quick summary of the
+ If you are using the commandline (CLI) to build, here is a quick summary
of the
options available:
</p>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]