In B's ivy.xml file, you should note that A is changing as follows:
<dependency name="A"
rev="latest.integration"
conf="compile->master;runtime->default"
changing="true" />
That tells Ivy that the dependency is likely to change even when the version
is the same. It will take the extra step to compare file size/date instead
of just checking the cache for the version.
Hope this helps.
-- tBs
> -----Original Message-----
> From: acec acec [mailto:[email protected]]
> Sent: Friday, August 06, 2010 12:13 PM
> To: [email protected]
> Subject: updated SNAPSHOT.jar
>
> Hi, all
> I have two projects: a and b
>
> a project will publish a-1.0.0-SNAPSHOT.jar into shared repository.
>
> b project depends on a-1.0.0-SNAPSHOT.jar.
>
> If I did some changes on a, I published a again, I checked share
> repository, which includes the right jar file.
>
> But in b project, when b retrieves dependent jar files, for some
> reason, it still keep the old a-1.0.0-SNAPSHOT.jar.
>
> it seems the ~/.ivy2/cache also keeps the old jar file. How do I get
> the updated jar file?
>
>
> Thanks.