The POM for xxx is missing, no dependency information available

今天我要记录一个错误

[INFO] Scanning for projects...
[INFO] 
[INFO] ------------------------< com.hxhshr:untitled1 >------------------------
[INFO] Building untitled1 1.0.0
[INFO] --------------------------------[ jar ]---------------------------------
Downloading from alimaven: http://maven.aliyun.com/nexus/content/groups/public/com/hxhshr/untitled12/1.0.0/untitled12-1.0.0.pom
[WARNING] The POM for com.hxhshr:untitled12:jar:1.0.0 is missing, no dependency information available
Downloading from alimaven: http://maven.aliyun.com/nexus/content/groups/public/com/hxhshr/untitled12/1.0.0/untitled12-1.0.0.jar
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  1.568 s
[INFO] Finished at: 2024-01-04T07:31:52+08:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project untitled1: Could not resolve dependencies for project com.hxhshr:untitled1:jar:1.0.0: Could not find artifact com.hxhshr:untitled12:jar:1.0.0 in alimaven (http://maven.aliyun.com/nexus/content/groups/public/) -> [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/DependencyResolutionException

在这里插入图片描述
根据坐标看看本地仓库有没有相应的jar包
在这里插入图片描述

解决方法

一、找到相应依赖所在坐标的本地目录,删除掉。
在这里插入图片描述
二、去idea重新创建这个依赖
在这里插入图片描述

三、查看结果
在这里插入图片描述
点击运行仍然报这个错:
那好,就用上面说到的install,去本地仓库看看有没有jar
在这里插入图片描述
在这里插入图片描述

思考为什么第一次只编译程序,程序构建不成功呢?

我想肯定是idea自身的问题,最后我找到了原因:
在这里插入图片描述
然后我删除掉本地仓库的jar包,只编译
在这里插入图片描述
在运行程序:
在这里插入图片描述
非常nice!
我再次勾选上:如果程序启动/构建失败说明就是这个选项的问题
在这里插入图片描述

在这里插入图片描述
就是这个问题终于找到了。

  • 10
    点赞
  • 8
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值