Maven - 无法执行目标org.apache.maven.plugins:maven-clean-plugin:2.4.1:clean [英] Maven - Failed to execute goal org.apache.maven.plugins:maven-clean-plugin:2.4.1:clean

查看:1496
本文介绍了Maven - 无法执行目标org.apache.maven.plugins:maven-clean-plugin:2.4.1:clean的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的pom.xml中存在以下依赖项问题,其中org.springframework.version = 3.1.0.RELEASE:

I've a problem with the following dependency in my pom.xml where org.springframework.version = 3.1.0.RELEASE:

<!-- Spring MVC framework -->
<dependency>
    <groupId>org.springframework</groupId>
    <artifactId>spring-webmvc</artifactId>
    <version>${org.springframework.version}</version>
</dependency>

当我执行命令行'mvn clean install'时,我出现以下错误:

When I execute the command line 'mvn clean install', I've the following error :

 [INFO] BUILD FAILURE
 [INFO] ------------------------------------------------------------------------
 [INFO] Total time: 1.052s
 [INFO] Finished at: Sat Dec 07 15:49:04 CET 2013
 [INFO] Final Memory: 4M/15M
 [INFO] ------------------------------------------------------------------------
 [ERROR] Failed to execute goal org.apache.maven.plugins:maven-clean-plugin:2.4.1:clean (default-clean) on project myGoogleAppEngine: Failed to clean project: Failed to delete C:\EclipseProjects\myGoogleAppEngine\target\myGoogleAppEngine-0.0.1-SNAPSHOT\WEB-INF\lib\spring-webmvc-3.1.0.RELEASE.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

通过查看 http://mvnrepository.com/artifact/org.springframework/spring-webmvc/3.1.0.RELEASE ,我的依赖项中没有任何错误。

By seeing on http://mvnrepository.com/artifact/org.springframework/spring-webmvc/3.1.0.RELEASE , there aren't any errors in my dependency.

你有任何解决方案吗?

Do you have any solutions?

推荐答案


无法删除
C:\ EclipseProjects \ myGoogleAppEngine \ target \ myGoogleAppEngine-0.0.1-SNAPSHOT \WEB-INF \lib \ spring-webmvc-3.1.0.RELEASE.jar

Failed to delete C:\EclipseProjects\myGoogleAppEngine\target\myGoogleAppEngine-0.0.1-SNAPSHOT\WEB-INF\lib\spring-webmvc-3.1.0.RELEASE.jar

由于路径 C:\ EclipseProjects 我猜你在该项目上运行了eclipse。如果应用程序运行,则无法清除输出,因为它可能正在使用中。

Because of the path C:\EclipseProjects i guess you have eclipse running on that project. If you application runs, you cannot clean the output, because it may be in use.

停止应用程序,可能会发生异常情况并重试。

Stop the application and maybe eclipse and try again.

这篇关于Maven - 无法执行目标org.apache.maven.plugins:maven-clean-plugin:2.4.1:clean的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆