benjamin-cartereau opened a new issue, #1318:
URL: https://github.com/apache/maven-mvnd/issues/1318
### Affected version
1.0.2 (windows)
### Bug description
Hello,
I am using mvnd from within VSCode through a filewatcher.
Here is the command executed :
```
for /f "usebackq tokens=*" %d in (`git -C "xxxx" rev-parse --show-toplevel`)
do mvnd -q spotless:apply -f "%d" -DspotlessFiles=".*\\beans.xml$"
```
Here is the output I get :
```
[error] Apr 28, 2025 2:34:31 PM org.jline.utils.Log logr
WARNING: Unable to create a system terminal, creating a dumb terminal
(enable debug logging for more information)
[main] WARNING org.jline - Unable to create a system terminal, creating a
dumb terminal (enable debug logging for more information)
Purged 0 log files with 4 exceptions (log available in
C:\Users\xxx\.m2\mvnd\registry\1.0.2\purge-2025-04-28.log)
```
When looking at "purge-2025-04-28.log" file I can see :
```
Purge executed at 2025-04-28T12:34:34.668944200Z
No files deleted.
4 exception(s) occurred during the purgejava.nio.file.FileSystemException:
C:\Users\xxx\.m2\mvnd\registry\1.0.2\daemon-b4f3270f.log: The process cannot
access the file because it is being used by another process
at
[email protected]/sun.nio.fs.WindowsFileSystemProvider.implDelete(WindowsFileSystemProvider.java:273)
at
[email protected]/sun.nio.fs.AbstractFileSystemProvider.delete(AbstractFileSystemProvider.java:104)
at [email protected]/java.nio.file.Files.delete(Files.java:1152)
at
org.mvndaemon.mvnd.client.DefaultClient.lambda$purgeLogs$11(DefaultClient.java:436)
[...3 more times]
```
I have also tried to prefix the command with "set
org.jline.terminal.dumb=true &&" but it does not change anything.
Any idea why the purge fail and how it could be fixed?
Thank you
--
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]