Try like this :

<settings>
     <offline>true</offline>
</settings>


On 18/12/2007, Christian Schmidt-Guetter
<[EMAIL PROTECTED]> wrote:
> Hello list,
>
> according to documentation at
> http://maven.apache.org/ref/2.0.4/maven-settings/settings.html
> , Maven should avoid all downloads if
>      <offline/>
> is set in ~/.m2/settings.xml :
>
> +++++++++++++++++++++++ Cite start ++++++++++++++++++++++++++++++++++++
> Element Description
> --------------------
> offline Indicate whether maven should operate in offline mode full-time.
> ======================== Cite end =====================================
>
> However, this does not work for me, e.g. Maven  *does* download
> (sometimes temporarily invalid) JAR files in offline mode.
> Note, that "maven -o <target>"   *will*  work offline as expected
> (but I want a permanent solution).
>
> My environment:
>
> $ mvn --version
> Maven version: 2.0.7
> Java version: 1.5.0_11
> OS name: "linux" version: "2.6.20-16-generic" arch: "i386"
>
> $ cat ~/.m2/settings.xml
> <settings>
>      <offline />
> </settings>
>
> Do I something wrong or is this a bug...?
>
>
> Thank you very much for your help!
> Christian
>
>
>
>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
Jabber : [EMAIL PROTECTED]
Skype : Guillaume.Lederrey
Projects :
* http://rwanda.wordpress.com/
* http://rwandatech.wordpress.com/

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to