Bukama commented on issue #104: URL: https://github.com/apache/maven-jmod-plugin/issues/104#issuecomment-4698704801
For reference: The method which actually tries to delete the file is deprecated [`FileUtils.forceDelete`](https://github.com/apache/maven-shared-utils/blob/a2506ecf9d25ba51f5f1a479e377e6d593c33bf7/src/main/java/org/apache/maven/shared/utils/io/FileUtils.java#L1006) from shared-utils. I already thought that there is a concurrency issue and this seems true. I changed the deprecated delete in favor for [Java's NIO Files.delete](https://docs.oracle.com/javase/8/docs/api/java/nio/file/Files.html#delete-java.nio.file.Path-) and the message is clear: > java.nio.file.FileSystemException: D:\Github\Maven\maven-jmod-plugin\target\it\mjmod-20-set-main-class\world\target\jmods\myproject.world.jmod: Der Prozess kann nicht auf die Datei zugreifen, da sie von einem anderen Prozess verwendet wird -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
