更新snapshot包,怎么也更新不下来。
是因为,只deploy了子包,没deploy父包的缘故。打比方
project-parent
—project-api
projectA依赖project-api,如果只deploy了project-api,那么projectA在打包时就会出错
[ERROR] Failed to execute goal on project projectA: Could not resolve dependencies for project com.example:projectA:war:0.0.1-SNAPSHOT: Failed to collect dependencies at com.xx:project-api:jar:0.0.1-SNAPSHOT: Failed to read artifact descriptor for com.xx:project-api:jar:0.0.1-SNAPSHOT: Could not find artifact com.xx:project-parent:pom:0.0.1-SNAPSHOT in nexus (http://192.168.0.99:8081/nexus/content/groups/public) -> [Help 1]
本文介绍了在使用Maven构建项目时遇到的依赖问题,特别是当只部署了子项目而未部署父项目导致的snapshot包更新失败的情况。文章详细解释了错误信息,并提供了可能的解决方案。
3055

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



