There are a few different ways to do this. The way I would recommend is to
specify the following attributes on the resolver in question in your Ivy
settings:
changingPattern="*-SNAPSHOT" changingMatcher="glob"

This way Ivy doesn't trust its cache for anything with a -SNAPSHOT suffix.

On Thu, Jan 13, 2011 at 9:31 AM, Romain Pelisse <bela...@gmail.com> wrote:

> Hi,
>
> My title is rather cryptic, so let me give you a little context. We uses
> Ivy
> as a deployement tool, so for each Java service we need to deploy, we
> simply
> ask Ivy to fetch the according jars (actually zip file but that irrelevant
> here) from a Nexus repository.
>
> I'm now looking for a way to automatically redeployed a service when a new
> SNAPSHOT is published. This is of course for staging purpose. My plan was
> to
> have Ivy triggered every hour so that it can download new jars, if needed.
> However, as the version (SNAPSHOT) itself will not change, I wonder if Ivy
> will be able to detect that it needs to download again this jar and delete
> the one he has in cache...
>
> Any idea about that ?
>
> --
> Romain PELISSE,
> *"The trouble with having an open mind, of course, is that people will
> insist on coming along and trying to put things in it" -- Terry Pratchett*
> http://belaran.eu/wordpress/belaran
>

Reply via email to