maven Failed to copy file for artifact

本文介绍了一种常见的Maven构建失败问题及解决方案。当遇到特定的jar包冲突时,可以通过关闭已有项目并重新进行Maven构建的方式解决问题。

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

While building project:
Group-Id: xxx
Artifact-Id: xxxx
Version: x.x.x
From file: E:\workspace\xxxx\pom.xml

Reason: Failed to copy file for artifact[xxx:xxxx:jar:x.x.x:compile]


错误原因是:要下载的这个xxx.xxxx.x.x.x.jar这个包,在本地已经有一个xxxx的工程,先将这工程关掉,然后再去maven war:inplace一下就不会有 问题了。


转载于:https://www.cnblogs.com/blogyuan/p/3739641.html

[WARNING] [WARNING] Some problems were encountered while building the effective model for com.hw:asset:jar:1.0.0 [WARNING] 'dependencies.dependency.systemPath' for com.huawei.gauss:com.huawei.gauss.jdbc.ZenithDriver:jar should not point at files within the project directory, ${project.basedir}/lib/gaussdbv3.jdbc-V300R001C00CP2075.jar will be unresolvable by dependent projects @ line 45, column 25 [WARNING] [WARNING] It is highly recommended to fix these problems because they threaten the stability of your build. [WARNING] [WARNING] For this reason, future Maven versions might no longer support building such malformed projects. [WARNING] [INFO] [INFO] ----------------------------< com.hw:asset >---------------------------- [INFO] Building asset 1.0.0 [INFO] from pom.xml [INFO] --------------------------------[ jar ]--------------------------------- [INFO] [INFO] --- resources:3.2.0:resources (default-resources) @ asset --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] Using 'UTF-8' encoding to copy filtered properties files. [INFO] Copying 3 resources [INFO] Copying 0 resource [INFO] [INFO] --- compiler:3.10.1:compile (default-compile) @ asset --- [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 1.071 s [INFO] Finished at: 2025-07-16T10:46:59+08:00 [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.10.1:compile (default-compile) on project asset: Resolution of annotationProcessorPath dependencies failed: For artifact {org.projectlombok:lombok:null:jar}: The version cannot be empty. -> [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/MojoExecutionException
最新发布
07-17
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值