出现的报错信息如下:
Failed to execute goal on project single-mvc-web:
Could not resolve dependencies for project com.imooc:single-mvc-web:war:0.0.1-SNAPSHOT:
The following artifacts could not be resolved:
com.imooc:single-mvc-service-item:jar:0.0.1-SNAPSHOT
其中single-mvc-web single-mvc-service-item是parent项目下面的两个子项目。
解决方案: 首先打开父工程的pom.xml文件,先运行maven install,然后再debug/run子项目即可。
当遇到Maven无法解析项目依赖的问题时,如single-mvc-web和single-mvc-service-item的依赖冲突,可以通过先运行父工程的maven install命令,再debug或run子项目来解决。
3022

被折叠的 条评论
为什么被折叠?



