专栏首页IT云清“Failed to execute goal org.apache.maven.plugins:maven-clean-plugin:2.4.1:clean (default-clean) on..

“Failed to execute goal org.apache.maven.plugins:maven-clean-plugin:2.4.1:clean (default-clean) on..

问    题:“Failed to execute goal org.apache.maven.plugins:maven-clean-plugin:2.4.1:clean 
	   (default-clean) on project”?
出现情况:maven在clean或者install一个项目时,会出现此异常
解决方法:
	1.有可能这个项目正在跑着在,关闭掉就好
	2.有可能某个配置文件打开着在,修改完没有保存关闭
用英语来讲就是:
This usually happens in Windows environments when the target folder is "locked". E.g. 
when you are running your web application (looks like you do) and want to perform a mvn clean.
The application server/servlet engine locks the files so that mvn clean cannot delete 
the files because they are locked. 
Try to run this command when the web application is not running.
Edit: This also may happen if you have the target folder open in explorer 
or editing a text file from target folder, etc.

本文参与腾讯云自媒体分享计划,欢迎正在阅读的你也加入,一起分享。

我来说两句

0 条评论
登录 后参与评论

相关文章

  • @Enable***注解的原理与使用

    摘要:我们在开发中,会经常用到@Enable***开头的这种注解,来自动导入一些框架配置的默认的bean,进入注解源码,会发现这些注解类上都会有一个@Impor...

    IT云清
  • Java中modCount的用法,fail-fast机制

    在线程不安全的集合类中,都有这个用法。我们以AbstractList为例,拿出源码中的解释:

    IT云清
  • SpringCloud教程(Finchley版本)-03:负载均衡(Ribbon)

    启动类中,照例要给注册为一个eurekaClient,添加@EnableEurekaClient

    IT云清
  • 统计学习导论 Chapter3--Linear Regression

    Book: An Introduction to Statistical Learning with Applications in R http:...

    用户1148525
  • cocos2d-js 3.0 屏幕适配方案 分辨率适应

    用户1258909
  • numpy.cumsum

    版权声明:本文为博主原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。

    于小勇
  • matplotlib.collections、(二)

    版权声明:本文为博主原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。 ...

    于小勇
  • NVAE介绍

    In this paper, we aim to make VAEs great again by architecture design. We propos...

    用户1908973
  • R Programming week2 Functions and Scoping Rules

    When R tries to bind a value to a symbol,it searches through a series of environ...

    统计学家
  • Duke@coursera 数据分析与统计推断unit5 inference for categorical variables

    一、sampling variability & CLT for proportions

    统计学家

扫码关注云+社区

领取腾讯云代金券