I have a maven project in eclipse indigo
with m2e 1.2.0.20120903-1050
maven plugin. That project contains maven system
dependencies and these jar files are checked into git repository.
That is all fine until I need to switch to another branch which has changes in system
dependencies. Git can not update contents as file is locked.
That seems that eclipse on its own or on behalf of m2e locked jar libraries. I tried closing project but that does not help, in order to release lock I have to restart eclipse.
That is rather cumbersome. Are there any trick to release lock without restarting eclipse?
You can manualy use handle.exe
from http://technet.microsoft.com/de-de/sysinternals/bb896655.aspx
handle.exe .jar
gives you a list by handle-id and process-id of all jar's
.handle.exe -c <handle-id> -p <process-id>
kills the Handle, maybe a exception will be thrown, if so, fill a bug-report to Eclipse's bug-report-system please to let us know about dead-locks.It is important to execute the command using Administrator rights (Thanks to Paulo Merson).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With