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

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

Failed to execute goal on project qingcheng_web_manager: Could not resolve dependencies for project
运行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一下
Failed to execute goal on project qingcheng_web_manager: Could not resolve dependencies for project

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

就不会报错了

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

上一篇:alibaba cloud toolkit-部署到阿里云docker镜像仓库


下一篇:maven入门基础:从仓库解析依赖的机制(四)