Hi Mitch,

Thanks for your reply, I quickly tried it, but it does not seems to trigger
a new download when the snapshot change on Nexus. (the jars keep the same
name and the same version, SNAPSHOT, but the timestamp change).

Here is my settings:

<url name="my-resolver"
           changingPattern="\*-SNAPSHOT"
           changingMatcher="regexp"
           m2compatible="true">
...

Did I miss something here or ?

Also, you mentions there would be several way to do so, would mind elaborate
(quickly) ? I think it would help me have a better grasp of Ivy (at least
regarding how I use it).

Thanks !

On 13 January 2011 18:50, Mitch Gitman <mgit...@gmail.com> wrote:

> 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
> >
>



-- 
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