Failed to execute goal org.apache.maven.plugins:maven-clean-plugin:3.0.0:clean (default-clean) on project springboot1: Failed to clean project: Failed to delete F:\springboot1\target ->
To see the full stack trace of the errors, re-run Maven with the -e switch.
出现这个问题的原因是在项目springboot1的target文件路径下打开了启动springboot1的cmd命令窗口。导致打包springboot1项目失败。下面有提示To see the full stack trace of the errors, re-run Maven with the -e switch。需要关闭一个maven,重新打开。
解决办法:关闭启动springboot1的cmd命令窗口。再次进行打包就可以了。

本文介绍了一个Maven打包失败的问题,原因是springboot1项目的target文件夹被cmd命令窗口占用。解决方法是关闭cmd窗口,重新运行Maven打包命令。
4574

被折叠的 条评论
为什么被折叠?



