The POM for com.xubo:service_base:jar:0.0.1-SNAPSHOT is missing, no dependency information available
报错信息
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | [INFO] Scanning for projects... [INFO] [INFO] ------------------------< com.xubo:service_edu >------------------------ [INFO] Building service_edu 0.0.1-SNAPSHOT [INFO] --------------------------------[ jar ]--------------------------------- [WARNING] The POM for com.xubo:service_base:jar:0.0.1-SNAPSHOT is missing, no dependency information available [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 3.609 s [INFO] Finished at: 2023-09-16T16:48:56+08:00 [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal on project service_edu: <strong>Could not resolve dependencies for project com.xubo:service_edu:jar:0.0.1-SNAPSHOT: Could not find artifact com.xubo:service_base:jar:0.0.1-SNAPSHOT -> [Help 1]</strong> [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] http: //cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionExceptionj |
解决方式:
我的项目是分布式的,里面有多个模块,可能是多个模块之间相互依赖,导致的这个原因,就是在service_edujar包中找不到service_base包
1 | <strong>Could not resolve dependencies for project com.xubo:service_edu:jar:0.0.1-SNAPSHOT: Could not find artifact com.xubo:service_base:jar:0.0.1-SNAPSHOT</strong> |
但是service_base模块所依赖的项目里面是没有启动类的,就是一个公共的模块,导致还是报错,还有另外一个地方就是我勾选了下面的地方,导致不管怎么操作都不好使了.
所以这里我们要了解一下这个勾选是什么意思
看这里 https://www.cnblogs.com/javaxubo/p/17707231.html
1 | <strong> </strong> |
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· 分享4款.NET开源、免费、实用的商城系统
· 全程不用写代码,我用AI程序员写了一个飞机大战
· MongoDB 8.0这个新功能碉堡了,比商业数据库还牛
· 白话解读 Dapr 1.15:你的「微服务管家」又秀新绝活了
· 上周热点回顾(2.24-3.2)