maven Failed to clean project: Failed to delete

H:\JAVAWEB\jt808-tcp-netty>mvn clean package -DskipTests
[INFO] Scanning for projects...
[INFO]
[INFO] ---------------------< cn.hylexus:jt808-tcp-netty >---------------------
[INFO] Building jt808-tcp-netty 0.0.1-SNAPSHOT
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ jt808-tcp-netty ---
[INFO] Deleting H:\JAVAWEB\jt808-tcp-netty\target
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  1.571 s
[INFO] Finished at: 2019-02-22T10:22:07+08:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-clean-plugin:2.5:clean (default-clean) on project jt808-tcp-netty: Failed to clean project: Failed to delete H:\JAVAWEB\jt808-tcp-netty\target -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
 

按照错误提示说不能删除,就是说当前目录被占用,不能删除操作。只要把占用的关掉就可以了

你可能感兴趣的:(maven)