Failed to execute goal on project qingcheng_web_manager: Could not resolve dependencies for project

第一次使用多模块练习而且是使用maven作为依赖,啥也不会,在某个模块的的maven运行tomcat时候就报错,我也不知道什么问题

在这里插入图片描述
运行tomcat报错以下:

[ERROR] Failed to execute goal on project qingcheng_web_manager: Could not resolve dependencies for project com.qingcheng:qingcheng_web_manager:war:1.0-SNAPSHOT: The following artifacts could not be resolved: com.qingcheng:qingcheng_interface:jar:1.0-SNAPSHOT, com.qingcheng:qingcheng_common_web:jar:1.0-SNAPSHOT: Could not find artifact com.qingcheng:qingcheng_interface:jar:1.0-SNAPSHOT -> [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] 

后来经过摸索,原来它意思找不到对应的模块的war,所以解决的方法就是你需要在每个模块的maven进行install,把最新改动的模块war打包导项目配置中,以下操作:
注:最谨慎就是把所以模块install一下
在这里插入图片描述

操作上面install后,重新运行tomcat:

就不会报错了

在这里插入图片描述

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值