maven install编译出错

在执行Maven install时遇到错误,无法从Nexus仓库下载com.google.collections:google-collections:1.0的pom文件。解决方案是找到报错的具体jar,删除_remote.repositories文件,然后执行clean和install命令以重新尝试编译。

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

项目可以运行,但install编译不通过解决

报错如下:

Could not transfer artifact com.google.collections:google-collections:pom:1.0 from/to nexus (http://127.0.0.1:8081/nexus/content/repositories/aliyun/): transfer failed for http://127.0.0.1:8081/nexus/content/repositories/aliyun/com/google/collections/google-collections/1.0/google-collections-1.0.pom

解决办法:具体哪个jar报错,删除_remote.repositories文件,重新clean,然后在install
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值