ant-ivy-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jonathan Williams <>
Subject Ivy cache ignoring changingPattern on ibiblio resolver, not picking up latest SNAPSHOT artifact
Date Wed, 28 Sep 2011 19:55:08 GMT

I'm trying to get Ivy to pick up the latest SNAPSHOT revision of an artifact
from my local Maven repository. I've looked through the documentation and
numerous examples online and followed the suggestions there, but I haven't
had any luck so far. Ivy finds and downloads the SNAPSHOT artifact the first
time without any issue and stores it in the cache. However, if that SNAPSHOT
artifact is subsequently updated in my Maven repo, Ivy will not pick up the
latest artifact. Here are the relevent parts of my ivysettings.xml

<property name="ivy.resolver.default.check.modified" value="true"/>

    <chain name="default-chain" returnFirst="true">

            <filesystem name="enterprise" m2compatible="true">
            <url name="shared" m2compatible="true" checksums="">

            <ibiblio name="maven-local" m2compatible="true"
root="${maven.cache.uri}" changingPattern=".*SNAPSHOT"/>

Here are the contents of my local maven repo:

-rw-r--r-- 1 jwilliam xxxxxx 2042390 Sep 28 15:17
-rw-r--r-- 1 jwilliam xxxxxx    7817 Sep 23 12:01

And my ivy cache, notice how the bar-0.0.1-SNAPSHOT artifact is no longer up
to date (both size and timestamp different from the maven repo):

total 2028
drwxr-xr-x  2 jwilliam xxxxxx    4096 Sep 28 14:56 .
drwxr-xr-x 20 jwilliam xxxxxx    4096 Sep 28 14:57 ..
-rw-r--r--  1 jwilliam xxxxxx    5925 Sep 23 12:01 ivy-0.0.1-SNAPSHOT.xml
-rw-r--r--  1 jwilliam xxxxxx    7817 Sep 23 12:01
-rw-r--r--  1 jwilliam xxxxxx     931 Sep 28 15:19
-rw-r--r--  1 jwilliam xxxxxx 2042413 Sep 28 14:56

My dependency on is declared as such:

        <dependency org="" name="bar" rev="0.0.1-SNAPSHOT"/>

Some of the things I've tried are tweaking the pattern I'm using in
changingPattern, explicitly setting the
and 'checkmodified="true"' fields. Nothing seems to work, short of deleting
my Ivy cache and forcing a re-download of the artifact.

Any ideas on what I'm doing that is different from all the examples I've
looked at that ostensibly work?


  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message