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.

Bug 271783

Summary: always unable to perform "mvn clean" because can't delete the target directory
Product: projects Reporter: mcheung63
Component: MavenAssignee: Tomas Stupka <tstupka>
Status: NEW ---    
Severity: normal    
Priority: P1    
Version: 8.2   
Hardware: PC   
OS: Windows 8.1   
Issue Type: DEFECT Exception Reporter:

Description mcheung63 2017-11-10 15:07:46 UTC
cd C:\workspace\netbeans-antlr; "JAVA_HOME=C:\\Program Files\\Java\\jdk1.8.0_144" M2_HOME=C:\\download\\apache-maven-3.5.0 cmd /c "\"\"C:\\download\\apache-maven-3.5.0\\bin\\mvn.cmd\" -DskipTests=true -Dkeystorepass=123456 -Dmaven.ext.class.path=\"C:\\Program Files\\NetBeans 8.2\\java\\maven-nblib\\netbeans-eventspy.jar\" -Dfile.encoding=UTF-8 clean install -Dcurrent.jrebel.agent.path=C:\\Users\\Peter\\AppData\\Roaming\\NetBeans\\8.2\\griffin\\jrebel.jar\""
Scanning for projects...

------------------------------------------------------------------------
Building Netbeans Antlr 1.0
------------------------------------------------------------------------

--- maven-clean-plugin:2.5:clean (default-clean) @ netbeans-antlr ---
Deleting C:\workspace\netbeans-antlr\target
------------------------------------------------------------------------
BUILD FAILURE
------------------------------------------------------------------------
Total time: 2.418 s
Finished at: 2017-11-10T23:06:06+08:00
Final Memory: 12M/309M
------------------------------------------------------------------------
Failed to execute goal org.apache.maven.plugins:maven-clean-plugin:2.5:clean (default-clean) on project netbeans-antlr: Failed to clean project: Failed to delete C:\workspace\netbeans-antlr\target\nbm\netbeans\extra\modules\ext\com.github.mcheung63.netbeans.antlr\xml-apis\xml-apis.jar -> [Help 1]

To see the full stack trace of the errors, re-run Maven with the -e switch.
Re-run Maven using the -X switch to enable full debug logging.

For more information about the errors and possible solutions, please read the following articles:
[Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException