问题:

[ERROR] Failed to execute goal on project service-1-server: Could not resolve dependencies for project com.it2:service-1-server:jar:1.0-SNAPSHOT: Failed to collect dependencies at com.it2:service-1-api:jar:1.0-SNAPSHOT: Failed to read artifact descriptor for com.it2:service-1-api:jar:1.0-SNAPSHOT: Could not find artifact com.it2:service-1:pom: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] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException

原因:

父类maven仓库没有安装到本地仓库

解决方法:

先将父类的maven(root)安装到本地仓库,之后再安装子类项目
在这里插入图片描述

GitHub 加速计划 / de / Dependencies
40
1
下载
A rewrite of the old legacy software "depends.exe" in C# for Windows devs to troubleshoot dll load dependencies issues.
最近提交(Master分支:2 个月前 )
1997a400 - 3 年前
2f423539 - 4 年前
Logo

AtomGit 是由开放原子开源基金会联合 CSDN 等生态伙伴共同推出的新一代开源与人工智能协作平台。平台坚持“开放、中立、公益”的理念,把代码托管、模型共享、数据集托管、智能体开发体验和算力服务整合在一起,为开发者提供从开发、训练到部署的一站式体验。

更多推荐