I think this is on Windows. Use Process Explorer to find out who blocks files. Eclipse should not block; perhaps you have code running in the debugger (hanging at a breakpoint). Use the list of open files and properties to find out which Java program keeps file locking.
If this is indeed Eclipse, try upgrading to a newer version of Eclipse or closing the project when you need to update dependencies using ivy.
source share