This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
For all my Java EE projects (with different pom and profile strategies), my second clean install build fails with: Failed to execute goal org.apache.maven.plugins:maven-clean-plugin:2.4.1:clean (default-clean) on project sin-plus-core: Failed to clean project: Failed to delete C:\projetos\sin-plus\sin-plus-core\target\classes\META-INF\persistence.xml -> [Help 1] Something in the IDE is locking the file, so the only workaround is to kill NetBeans. Product Version = NetBeans IDE Dev (Build 20150716-7a93174cf75e) Operating System = Windows 8 version 6.2 running on amd64 Java; VM; Vendor = 1.8.0_40 Runtime = Java HotSpot(TM) 64-Bit Server VM 25.40-b25
Created attachment 154683 [details] IDE log
Can you share a project where this happens for testing?
Do you use Java EE server? Even the server may lock the file.
This works fine for me. AFAIK IDE should not lock files in target directory. The server may run project from target directory however when Clean & Build is invoked from the IDE, project is undeployed first. Please describe the exact steps you do in order to reproduce the issue.
this issue may be a duplicate for a problem with hibernate keeping persistence.xml stream open