You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Kaspar Fischer <fi...@inf.ethz.ch> on 2008/09/16 11:18:05 UTC

[OT] How can I tell maven to not always update snapshots

I am using snapshots for Wicket and Wicketstuff. Whenever I do a

   mvn -Dmaven.test.skip=true -Prelease package

mvn updates all the snapshots. Can I tell it not to do this? I
don't want these automatic updates and prefer to determine myself
when to update (mvn -U ...). However, the man page does not help
me, unfortunately, I don't know enough about mvn.

Thanks a lot in advance, Kaspar

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


Re: [OT] How can I tell maven to not always update snapshots

Posted by Uwe Schäfer <sc...@thomas-daily.de>.
lars vonk schrieb:
> You can do several things:

or use a proxy like artifactory to cache that stuff for you. might be 
overkill too, but in a corporate environment, this is the obvious way to go.

cu uwe

-- 

THOMAS DAILY GmbH
Adlerstraße 19
79098 Freiburg
Deutschland
T  + 49 761 3 85 59 0
F  + 49 761 3 85 59 550
E  schaefer@thomas-daily.de
www.thomas-daily.de

Geschäftsführer/Managing Directors:
Wendy Thomas, Susanne Larbig
Handelsregister Freiburg i.Br., HRB 3947

Registrieren Sie sich unter http://morningnews.thomas-daily.de für die 
kostenfreien TD Morning News, eine Auswahl aktueller Themen des Tages 
morgens um 9:00 in Ihrer Mailbox.

Hinweis: Der Redaktionsschluss für unsere TD Morning News ist täglich um 
8:30 Uhr. Es werden vorrangig Informationen berücksichtigt, die nach 
16:00 Uhr des Vortages eingegangen sind. Die Email-Adresse unserer 
Redaktion lautet redaktion@thomas-daily.de.


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


Re: [OT] How can I tell maven to not always update snapshots

Posted by lars vonk <la...@gmail.com>.
You can do several things:

- Provide the -o flag, this puts maven in the offline mode. It will
not update snapshots but it will also not download any new
depedencies.

- Set the updatePolicy flag of your snapshot reopistory in your pom
(or settings.xml) to never (see
http://maven.apache.org/ref/current/maven-model/maven.html#class_snapshots).
This however will never update snapshots... You could externalize this
into a property you can override commandline but maybe that is a bit
overkill.

Lars



On Tue, Sep 16, 2008 at 11:18 AM, Kaspar Fischer <fi...@inf.ethz.ch> wrote:
> I am using snapshots for Wicket and Wicketstuff. Whenever I do a
>
>  mvn -Dmaven.test.skip=true -Prelease package
>
> mvn updates all the snapshots. Can I tell it not to do this? I
> don't want these automatic updates and prefer to determine myself
> when to update (mvn -U ...). However, the man page does not help
> me, unfortunately, I don't know enough about mvn.
>
> Thanks a lot in advance, Kaspar
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>

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