mvn clean package , 报错 clean 失败,具体报错如下:
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-clean-plugin:3.0.0:clean (default-clean) on project core: Failed to clean project: Failed to delete E:\workspace_idea\server\core\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
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn <goals> -rf :core
原因:我有在命令行窗口打开了 要clean package项目的target目录 E:\workspace_idea\server\core\target 目录,退出这个target目录或直接关闭这个命令窗口,再次去 mvn clean package 成功。