ant-ivy-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Maarten Coene <maarten_co...@yahoo.com>
Subject Re: Cannot delete outdated artifacts in cache
Date Thu, 04 Mar 2010 11:58:50 GMT
Another possibility might be that you use the javac task unforked.
This might keep a lock on the jars.

Maarten




----- Original Message ----
From: Troy Self <tself@bbn.com>
To: ivy-user@ant.apache.org
Sent: Wed, March 3, 2010 11:20:07 PM
Subject: RE: Cannot delete outdated artifacts in cache

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_coene@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 <tself@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]
> 
> 
> 


      

Mime
View raw message