Closed
Description
Using the plugin configured with an incremental build using Zinc server on Windows 10 causes a strange bug in which the Zinc process locks some of the output jars and prevents them from being deleted (and perhaps even modified).
Steps to reproduce:
- Download the following project: zinc-bug.zip
- Start a Zinc server.
- Run
maven install
from the root of the project. - Run
maven clean
from the same location.
Make sure that when running mvn install
you see the message [INFO] Using zinc server for incremental compilation
.
On the last step you'll see that Maven cannot delete one of the files. Trying to delete it manually fails as well. Trying to unlock it with utility apps such as Process Explorer fails as well. Only a restart to the Zinc server releases the file.
I had originally created this issue in the new Zinc repository (sbt/zinc#404), but they have referred me here.