【已解决】The pom for XXX is missing,no dependency information available

文章讲述了在使用IDEA进行开发时遇到jar包无法找到的问题,尽管包在maven仓库存在。作者发现错误提示提到的镜像在IDEA设置中是注释掉的,但在用户目录下的.m2仓库设置中仍然存在并引起问题。通过删除.m2下的仓库和设置文件,然后重新打包解决了问题。这表明有时本地缓存可能会影响IDEA的正常工作,需要清理。

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

idea使用install打被依赖的包时,出现jar包找不到,但是该jar明明maven仓库存在,而且打包的已经是被依赖的项目,依照其他的解决方法是没法处理的。
最后仔细看了一下报错的内容xxx.jar in http://xxxxx/repository/maven-public was cached in the local repository…,但是这个镜像在idea中配置的setting.xml是注释的,经过排查,最后在C:\Users\Administrator.m2下面找到的setting里面有这个镜像,导致出错。
我是将.m2下面的maven仓和setting都删除,重新打包不报错了(删除的前提是idea配置的maven仓、setting都不是.m2下面的)。

[WARNING] 'dependencyManagement.dependencies.dependency.(groupId:artifactId:type:classifier)' must be unique: cn.dev33:sa-token-dao-redis-jackson:jar -> duplicate declaration of version 1.33.0 @ com.jian:ji_an_riding_master:1.0.0-SNAPSHOT, D:\develop\TaiYangGongShe_v2\ji_an_riding_master\pom.xml, line 205, column 25 [WARNING] 'dependencyManagement.dependencies.dependency.(groupId:artifactId:type:classifier)' must be unique: com.alibaba:easyexcel:jar -> version 3.1.1 vs 3.0.5 @ com.jian:ji_an_riding_master:1.0.0-SNAPSHOT, D:\develop\TaiYangGongShe_v2\ji_an_riding_master\pom.xml, line 211, 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.jian:manage >--------------------------- [INFO] Building 后端管理模块 1.0.0-SNAPSHOT [INFO] from pom.xml [INFO] --------------------------------[ jar ]--------------------------------- [WARNING] The POM for com.jian:service:jar:1.0.0-SNAPSHOT is missing, no dependency information available [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 0.484 s [INFO] Finished at: 2025-03-24T16:19:02+08:00 [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal on project manage: Could not resolve dependencies for project com.jian:manage:jar:1.0.0-SNAPSHOT [ERROR] dependency: com.jian:service:jar:1.0.0-SNAPSHOT (compile) [ERROR] Could not find artifact com.jian:service:jar:1.0.0-SNAPSHOT [ERROR] [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 m
最新发布
03-25
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值