Failed to execute goal org.apache.maven.plugins:maven-clean-plugin:2.4.1:clean (default-clean) 解决办法

本文介绍了在使用Maven过程中遇到的日志清理失败的问题及解决方案。当尝试进行项目清理时,可能会遇到因日志文件被占用导致的错误,文中详细解释了如何手动关闭或通过重启开发工具来解决这一问题。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

描述:淘淘商城项目练习第二天,分页综合测试,启动maven出现如下问题

Failed to execute goal org.apache.maven.plugins:maven-clean-plugin:2.4.1:clean (default-clean) on project taotao-manager-web: Failed to clean project: Failed to delete E:\programs.workspace\taotao\taotao-manager\taotao-manager-web\target\tomcat\logs\access_log.2017-05-10 -> [Help 1]


解决:这是日志被占用,说明已经启动了一个maven了,手动关闭就行了,要是不会关闭,重启eclipse就行了


[INFO] Reactor Summary for ecs-intelligence-monitor 1.0.0: [INFO] [INFO] ecs-intelligence-monitor ........................... SUCCESS [ 1.559 s] [INFO] ecs-intelligence-monitor-service ................... FAILURE [ 22.474 s] [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 30.332 s [INFO] Finished at: 2025-08-07T17:15:47+08:00 [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile (default-compile) on project ecs-intelligence-monitor-service: Compilation failure: Compilation failure: [ERROR] /D:/work/mywork/newwork/ecs-service/ecs-intelligence-monitor-service/src/main/java/com/esc/intelligence/monitor/task/DataSyncTask.java:[7,43] 程序包com.xxl.job.core.handler.annotation不存在 [ERROR] /D:/work/mywork/newwork/ecs-service/ecs-intelligence-monitor-service/src/main/java/com/esc/intelligence/monitor/config/XxlJobConfig.java:[4,38] 程序包com.xxl.job.core.executor.impl不存在 [ERROR] /D:/work/mywork/newwork/ecs-service/ecs-intelligence-monitor-service/src/main/java/com/esc/intelligence/monitor/config/XxlJobConfig.java:[46,12] 找不到符号 [ERROR] 符号: 类 XxlJobSpringExecutor [ERROR] 位置: 类 com.esc.intelligence.monitor.config.XxlJobConfig [ERROR] /D:/work/mywork/newwork/ecs-service/ecs-intelligence-monitor-service/src/main/java/com/esc/intelligence/monitor/task/DataSyncTask.java:[25,6] 找不到符号 [ERROR] 符号: 类 XxlJob [ERROR] 位置: 类 com.esc.intelligence.monitor.task.DataSyncTask [ERROR] -> [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/MojoFailureException [ERROR] [ERROR] After correcting the problems, you can resume the build with the command [ERROR] mvn <args> -rf :ecs-intelligence-monitor-service
最新发布
08-08
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值