首页 > 解决方案 > 我不能用 maven 创建 .war

问题描述

我用 maven clean install 创建了一个 .war,现在我需要创建其他的 .war,但是我得到了这个错误 ->

- maven-clean-plugin:2.6.1:clean (default-clean) @ tutorial---
[INFO] Deleting C:\Users\yo\eclipse-workspace\tutorial\target
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 3.843 s
[INFO] Finished at: 2018-09-24T15:46:51+02:00
[INFO] Final Memory: 17M/228M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-clean-plugin:2.6.1:clean (default-clean) on project tutorial: Failed to clean project: Failed to delete C:\Users\yo\eclipse-workspace\tutorial\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

现在我的字段\target是空的,我无法创建 .war

标签: mavenspring-boot

解决方案


其他一些应用程序已打开目标文件夹。由于这个 maven-clean-plugin 无法删除目标文件夹并失败。


推荐阅读