问题描述
黑马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