That was my first thought as well. Unfortunately, this problem also occurs on our continuous build machine which only ever builds using Ant.
-- tBs > -----Original Message----- > From: Maarten Coene [mailto:maarten_co...@yahoo.com] > Sent: Wednesday, March 03, 2010 3:57 PM > To: ivy-user@ant.apache.org > Subject: Re: Cannot delete outdated artifacts in cache > > Maybe your IDE is locking some of the jars in the cache? > Could you confirm this is not the case? > > Maarten > > > > > > ----- Original Message ---- > From: Troy Self <ts...@bbn.com> > To: ivy-user@ant.apache.org > Sent: Tue, March 2, 2010 7:11:09 PM > Subject: Cannot delete outdated artifacts in cache > > I am having an issue where my build fails half the time now because Ivy > is > unable to overwrite files in the cache. My build is setup so that > internal > projects are published to the local repository with the version, > "SNAPSHOT". > This sometimes works and other times fails. > > It appears to fail when a dependent project attempts to resolve the > projects > built earlier in the build. For example, projects A and B are both > building > and publishing correctly. Process C, which depends on A and B is then > failing because it is unable to copy A.jar and B.jar to the cache. > > Has anyone else seen this issue? Is this a locking thing? All of this > is > within a single ant build with no forked JVMs. Error message shown > below my > signature. > > Thanks, > > -- tBs > > [ivy:resolve] :::: ERRORS > [ivy:resolve] Couldn't delete outdated artifact from cache: > C:\Users\tself\.iv > y2\cache\foo\pint-server\jars\a-client-SNAPSHOT.jar > [ivy:resolve] Couldn't delete outdated artifact from cache: > C:\Users\tself\.iv > y2\cache\foo\obs-exporter\jars\a-exporter-SNAPSHOT.jar > [ivy:resolve] > > >