【发布时间】:2013-10-29 15:53:00
【问题描述】:
我使用 STS(spring tool suite) + maven 插件。
每当我使用maven-clean 运行我的应用程序时,我都会看到以下错误:
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building hhsystem ui 1.0.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ ui ---
[INFO] Deleting C:\Users\Nikolay_Tkachev\workspace\HHSystem\UI\target
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.471s
[INFO] Finished at: Mon Oct 21 12:34:33 MSK 2013
[INFO] Final Memory: 2M/90M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-clean-plugin:2.4.1:clean (default-clean) on project ui: Failed to clean project: Failed to delete C:\Users\Nikolay_Tkachev\workspace\HHSystem\UI\target\org.ow2.util.asm-asm-tree-3.1.jar -> [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
我必须关闭STS并转到C:\Users\Nikolay_Tkachev\workspace\HHSystem\UI\target并删除org.ow2.util.asm-asm-tree-3.1.jar
再次启动 STS 后,它可以工作,但这很麻烦。
你能帮我解决这个问题吗?
更新
为 Kalathoki L.
我从这个状态运行maven-clean:
我在命令行中看到了与 eclipse 插件中相同的行为
如果我在 STS 运行时观看解锁器,我会看到
:
【问题讨论】:
-
你使用的是哪台服务器?
-
我使用 apache Tomcat 7
-
确保停止所有使用同一服务器的进程
-
TL;DR 回答:1. 如果您在 Eclipse 之外打开了任何项目工件,请将其关闭并重试。 2.如果不行,重启eclipse。
标签: java eclipse spring maven spring-tool-suite