检查各种POM我看到有时他们只在<version>
部分中有<parent>
个标签。有时,他们在主要部分中包含以下代码<version>${parent.version}</version>
以及父版本中的版本。
在这些不同情况下将使用哪个版本值?
答案 0 :(得分:2)
两种情况下父母的版本。
See the "Introduction to the POM" for implicit version inheritance info.
See this document for further information regarding what else is inherited.
答案 1 :(得分:1)
它将从父级“继承”该版本,并执行许多其他配置。 groupId
和dependencies
也可以来自父母。