I have an Eclipse working set (4.4.1), consisting of ~ 60 projects (the number may be relevant, since it takes time to update the workspace). Sometimes I encounter build failures because Eclipse cannot clear the output folder before the build:

It turned out that the process that locks the file is Eclipse itself:

It also turned out that locked files always contain XML content. In particular, if I define resources with the *.foo extension as XML files (through Settings β General β Content Types ), they have a good chance that they will also be blocked as soon as they are copied to the output path.
I thought the problem was caused by the fact that all XML resources are checked automatically:

- so I added exception filters 1 and even completely turned off XML / XSD checking. The problem has ceased to occur often, but still appears from time to time. Updating or closing-reopening a project is not recommended.
The only way is to restart Eclipse or run Unlocker every half hour, which is not very convenient.
Any ideas how to solve, or at least diagnose it even more?
source share