Why do I get invalid pom due to missing dependency.version although the version is managed?

倾然丶 夕夏残阳落幕 提交于 2019-12-22 07:00:11

问题


I have case that looks like this:

super

  • dependency manangement of thrid-party

parent-pom

  • child of super

projectA

  • child of parent-pom
  • dependency to third-party

projectB

  • child of parent-pom
  • dependency to projectA

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

[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' for thrid-party.jar is missing. @

Any idea why?


回答1:


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



来源:https://stackoverflow.com/questions/11339712/why-do-i-get-invalid-pom-due-to-missing-dependency-version-although-the-version

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!