为什么由于缺少依赖关系而获得无效的pom,尽管版本被管理? [英] Why do I get invalid pom due to missing dependency.version although the version is managed?

查看:192
本文介绍了为什么由于缺少依赖关系而获得无效的pom,尽管版本被管理?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有这样的情况:

超级


  • 依赖性管理第三方

parent-pom


  • 超级小孩

projectA


  • parent-pom的孩子

  • 依赖于第三方

projectB


  • -pom

  • 对projectA的依赖

projectA构建很好,但是当我尝试编译projectB我得到:

projectA builds just fine, but when I try to compile projectB I get:

[警告] [projectA]的POM无效,传递依赖关系(如果有)不可用:构建有效的模型为[projectA]

[WARNING] The POM for [projectA] is invalid, transitive dependencies (if any) will not be available: 1 problems were encountered while building the effective model for [projectA]

[ERROR]'dependencies.dependency.version'为thrid-party.jar缺少。 @

[ERROR] 'dependencies.dependency.version' for thrid-party.jar is missing. @

任何想法为什么?

推荐答案

您需要安装超级对于本地的回购,只要有相对路径设置对于这种情况是不够的。

You need to install super to you local repo, just having relativePath set is not enough for this case.

这篇关于为什么由于缺少依赖关系而获得无效的pom,尽管版本被管理?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆