在我的pom.xml中,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‘时,我得到了以下错误:
[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上查看,我的依赖项中没有任何错误。
你有什么解决方案吗?
发布于 2013-12-07 23:37:01
无法删除C:\EclipseProjects\myGoogleAppEngine\target\myGoogleAppEngine-0.0.1-SNAPSHOT\WEB-INF\lib\spring-webmvc-3.1.0.RELEASE.jar
由于路径C:\EclipseProjects,我猜您已经在该项目上运行了eclipse。如果应用程序正在运行,则无法清除输出,因为它可能正在使用中。
停止应用程序,也许可以停止eclipse,然后重试。
发布于 2016-06-08 16:16:05
在任务管理器中删除java.exe进程并重新执行它对我有效。
发布于 2014-05-09 22:47:38
确保您在folder.As上的权限是正确的,我遇到了同样的问题,在更改文件夹和文件的所有权后,问题得到了解决。
https://stackoverflow.com/questions/20442862
复制相似问题