引入依赖失败Could not resolve dependencies for project com.itheima

问题描述

黑马java-web课程P190Day14springboot原理中引入itheima_utils模块依赖后进行依赖注入测试失败。
报错:Could not resolve dependencies for project com.itheima:springboot-web-config2:jar:0.0.1-SNAPSHOT: Could not find artifact com.example:itheima-utils:jar:0.0.1-SNAPSHOT -> [Help 1]

解决方案:

首先在itheima_utils模块的pom 文件将packing改成:

<packaging>jar</packaging>

然后在maven模块生命周期目录下使用 install 将依赖导入的包打包成jar存储在本地maven仓库
在这里插入图片描述
感谢:https://blog.csdn.net/weixin_50682647/article/details/122493453

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值