

一次 maven clean 失败 Failed to execute goal org.apache.maven.plugins:maven-clea...
source link: https://hellodk.cn/post/726
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

一次 maven clean 失败 Failed to execute goal org.apache.maven.plugins:maven-clean-plugin Failed to clean project 问题解决
如果你遇到这个问题,建议
- 看一下程序是否有正常退出
- 看一下 tomcat 有没有关闭
- 如果是 java -jar 运行的程序看一下源码是否有退出代码
return
或者System.exit(0);
- 看一下当前 clean 的文件夹有没有在终端被占用,比如你在
target
文件夹下执行的java -jar xxx.jar
- 看一下
java.exe
程序有没有 kill 掉, 以及javaw.exe
查看 java 程序是否有在运行
tasklist |findstr java
杀死 java 进程树
taskkill -f -t -im java.exe
java -jar xxx.jar
运行时应把 jar 包拷贝到别的路径再执行,不能在项目的 target 文件夹下直接执行。如果在 target 文件夹下直接执行,然后终端又没有关闭,再 maven clean,就会遇到本文标题中的问题。
Recommend
-
22
README.md Apache Maven
-
5
matplotlib保存动画为mp4失败,convert: delegate failed ffmpeg error欢迎转载,请支持原创,保留原文
-
10
Apache Maven SCM Publish Plugin The maven-scm-publish-plugin is a utility plugin to allow publishing Maven website to any supported SCM. The primary goal was to have an utility plugin to allow Apache projects to publish Maven website...
-
15
Various tips for using this plugin URL format You must use a scm url format: scm:<scm_provider><delimiter><provider_specific_part> Example for svn: scm...
-
10
Usage The maven-scm-publish-plugin submits modified content to SCM, sites being the most classical case. The standard use for sites is: mvn -Preporting site site:stagemvn scm-publish:publis...
-
16
Files Permalink Latest commit message Commit time
-
9
Building Class Data Sharing Archives with Apache Maven Posted at Jun 11, 2020 Ahead-of-time compilation (AOT) is the big topic in the Java ecosystem lately: by compiling...
-
2
Apache/ Maven/ Installing Apache Maven | Last Published: 2021-03-15 |
-
11
Filtering Variables can be included in your resources. These variables, denoted by the ${...} delimiters, can come from the system properties, your project properties, from your filter resources and from the command line. For...
-
12
Google took a hard stance on stalkerware in 2020, publicly stating that it would ban related ads and apps from Google searches and the Google Play Store. But, a couple of years after its public commitment, it appears that stalkerware ads can still...
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK