Atlas-package failing while instance is running

Hi.
We are developing a plugin for Confluence Data Center and make use of QuickReload in our development workflow, on Windows 11. Since we updated our code to be compatible with Confluence 9 (9.2.0) we have an issue with the packaging command when the Confluence instance is running (in debug mode): java.nio.file.FileSystemException: plugin.jar: The process cannot access the file because it is being used by another process. That is an OS level lock that wouldn’t happen on Linux, but we use Windows.

The error sometimes doesn’t occur the first time running atlas-package, but otherwise it happens consistently. Was there any change to the ClassLoader that can explain this?
We can still edit the jar file manually, but that’s not a realistic option.

Thanks!