You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Christian Schmidt-Guetter <Ch...@1und1.de> on 2007/12/18 14:47:20 UTC

offline setting inside settings.xml does not work with Maven 2.0.7

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: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


RE: offline setting inside settings.xml does not work with Maven 2.0.7

Posted by ni...@planet.nl.
Also take a look at the XSD [1]. Here the offline element is of type xs:boolean, which indicates it should be true or false. Default = false, so even if you include the element it is still false.

Hth,

Nick Stolwijk


[1] http://maven.apache.org/xsd/settings-1.0.0.xsd.


-----Original Message-----
From: Christian Schmidt-Guetter [mailto:Christian.Schmidt-Guetter@1und1.de]
Sent: Tue 12/18/2007 3:05 PM
To: Maven Users List
Subject: Re: offline setting inside settings.xml does not work with Maven 2.0.7
 
Hello Guillaume,

Guillaume Lederrey schrieb:
> Try like this :
> 
> <settings>
>      <offline>true</offline>
> </settings>
> ...

That works fine!  -  Thank you very much.
Christian




---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org



Re: offline setting inside settings.xml does not work with Maven 2.0.7

Posted by Christian Schmidt-Guetter <Ch...@1und1.de>.
Hello Guillaume,

Guillaume Lederrey schrieb:
> Try like this :
> 
> <settings>
>      <offline>true</offline>
> </settings>
> ...

That works fine!  -  Thank you very much.
Christian




---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: offline setting inside settings.xml does not work with Maven 2.0.7

Posted by Guillaume Lederrey <gu...@gmail.com>.
Try like this :

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


On 18/12/2007, Christian Schmidt-Guetter
<Ch...@1und1.de> 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: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>


-- 
Jabber : gehel@amessage.ch
Skype : Guillaume.Lederrey
Projects :
* http://rwanda.wordpress.com/
* http://rwandatech.wordpress.com/

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org