maven - 我不能用 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
解决方案
其他一些应用程序已打开目标文件夹。由于这个 maven-clean-plugin 无法删除目标文件夹并失败。
推荐阅读
- python - 将值“附加”到特定键的字典中
- angular - 正则表达式会中断 Angular 延迟加载模块的加载(仅限 Safari)
- java - 当我尝试使用多个查询参数调用端点时得到 404
- sql - 查询在简单选择上花费的时间太长
- bash - 如何将文本从一个 Vim 文件复制/粘贴到另一个 shell 选项卡中的另一个 Vim 文件?
- c++ - GRPC c ++中的相互身份验证?
- java - 使用 Java 可选 ifPresentOrElse 方法时无法抛出“已检查”异常
- pdf - 实现 PDF 单选按钮字段的问题
- javascript - 无法读取从 Express 服务器上的 React js 前端发送的 cookie
- graph - 具有不规则顶点的四边形网格的拓扑可以表示为方形网格图吗?