Maven - Failed to clean project: Failed to delete

简介: Maven - Failed to clean project: Failed to delete

如题,在运行maven工程是报“Failed to clean project: Failed to delete”错误,原因是因为之前编译的工程还在运行,无法clean,导致maven生命周期无法继续进行。


看到网上很多误人子弟的方法,什么关闭 Java 进程,还有说等待一段时间让他自动好的。这个问题的解决方法非常简单,也没有上面说的那么折腾。


因为有时在 IDEA 里关闭 Tomcat 不会那么彻底,所以推荐一个必杀技:


image.png    


  • 在 CPU - 关联的句柄 - 搜索"target",将搜索出来的结果结束进程,绝对稳,亲测有效~
目录
相关文章
|
6月前
|
Java 测试技术 Maven
maven 打jar包:mvn clean package
maven 打jar包:mvn clean package
82 7
|
22天前
|
Java Maven Android开发
【Azure Developer】VS Code打包Java maven Project 遇见 BUILD FAILURE
Unknown lifecycle phase "lean". You must specify a valid lifecycle phase or a goal in the format <plugin-prefix>:<goal> or <plugin-group-id>:<plugin-artifact-id>[:<plugin-version>]:<goal>
|
3月前
|
Java Maven Spring
SpringBoot 系列之 Failed to execute goal org.apache.maven.plugins:maven-resources-plugin:3.2.0:resource
这篇文章描述了在使用Maven构建Spring Boot项目时遇到的`maven-resources-plugin`插件版本问题导致的编译失败,并提供了通过修改插件版本至3.1.0来解决这个问题的方法。
SpringBoot 系列之 Failed to execute goal org.apache.maven.plugins:maven-resources-plugin:3.2.0:resource
|
6月前
|
Java Maven 开发工具
maven导入项目出现Unable to import maven project: See logs for details
maven导入项目出现Unable to import maven project: See logs for details
56 0
maven导入项目出现Unable to import maven project: See logs for details
|
6月前
|
Java
springboot打包错误:Failed to execute goal org.apache.maven.plugins:maven-resources-plugin:3.2.0:resource
springboot打包错误:Failed to execute goal org.apache.maven.plugins:maven-resources-plugin:3.2.0:resource
84 0
|
3月前
|
Java Maven
IDEA 报 Unable to import maven project: See logs for details
IDEA 报 Unable to import maven project: See logs for details
48 0
|
5月前
|
Java Maven
Maven运行builder出现Failed to execute goal on projectXXXXX错误
Maven运行builder出现Failed to execute goal on projectXXXXX错误
182 7
|
4月前
|
IDE Java Maven
Unable to import Maven project,Maven依赖全爆红的问题解决
Unable to import Maven project,Maven依赖全爆红的问题解决
|
6月前
|
Java Maven 开发工具
Failed to execute goal org.springframework.boot:spring-boot-maven-plugin:2.1.3.RELEASE:repac
Failed to execute goal org.springframework.boot:spring-boot-maven-plugin:2.1.3.RELEASE:repac
46 0
|
6月前
|
Java Maven
IntelliJ IDEA 新建/创建Maven Web项目Project
IntelliJ IDEA 新建/创建Maven Web项目Project
63 0