Failed to execute goal on project xxx-service: Could not resolve dependencies for project com.xxx:xxx-service:jar:1.0.0: Failed to collect dependencies at com.yyy:yyy-facade:jar:1.0.0: Failed to read artifact descriptor for com.yyy:yyy-facade:jar:1.0.0: Failure to find com.yyy:yyy:pom:1.0.0
in http://host:ip/nexus/public/ was cached in the local repository,resolution will not be reattempted until the update interval oftest-mirrorId has elapsed or updates are forced -> [Help 1]
原因:
子项目引用了父项目的POM,但没有在父项目POM目录下执行安装操作(父目录下执行mvn install),这个问题就会出现。当一个子模块可能会依赖一个兄弟子模块而且去读取兄弟子模块的pom时,除非在父项目POM目录下至少执行一次安装,否则就会读取失败,即出现上述错误。
原文:https://www.jianshu.com/p/60b2719b5e3a
当子项目依赖父项目或兄弟子模块的POM,而未在父项目目录下执行mvninstall时,会出现依赖解析失败的错误。必须在父项目中至少执行一次安装操作,以确保子模块能正确读取所需依赖。
1万+

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



