Problem: sometimes, when I execute “mvn clean”, I get this output: “Failed to delete C:\Users\Mircea\Documents\NetBeansProjects\m3\target\ROOT\WEB-INF\lib\rewrite-api-2.0.12.Final.jar”
I execute “mvn clean”, because then I want to clean and do a fresh deployment on Tomee through Maven, but when I get this error, I have to stop Tomee, then clean, then deploy, which takes a lot of time.
Any idea about how to avoid/fix this? It’s pretty annoying and time consuming.
Thank you in advance.
If true, the Tomcat classloader will take extra measures to avoid JAR file locking when resources are accessed inside JARs through URLs. This will impact startup time of applications, but could prove to be useful on platforms or configurations where file locking can occur. If not specified, the default value is false.