Ivy deletion of unwanted (older) artifacts from Ivy cache
Posted
by
John M
on Stack Overflow
See other posts from Stack Overflow
or by John M
Published on 2010-09-14T16:33:46Z
Indexed on
2012/09/28
15:38 UTC
Read the original article
Hit count: 450
ivy
I have a local Artifactory repository in which I have two jars for commons-logging
: one for version 1.0.4
and one for version 1.1.1
. I'm experimenting with using Ivy to download the older one with an ant task (with the proper dependency tag in ivy.xml), and then I change the "rev" attribute of this dependency tag to 1.1.1.
When using ivy:resolve in ant, this newer jar gets successfully downloaded to my cache, but the older one is not deleted automatically, and I'd like to make this happen.
I can't figure out how to do so after looking at the Ivy documentation; does anyone know how to get Ivy to delete old versions of artifacts when newer ones are downloaded, either with the resolve task or something else?
© Stack Overflow or respective owner