0

さまざまな POM を調べると<version>、セクションにのみタグが付いている場合があることがわかりました<parent>。場合によっては<version>${parent.version}</version>、メイン セクションに次のコードと、親のバージョンが含まれていることがあります。

これらのさまざまなケースでどのバージョン値が使用されますか?

4

2 に答える 2

2

The version from the parent, in both cases.

See the "Introduction to the POM" for implicit version inheritance info.

See this document for further information regarding what else is inherited.

于 2012-09-21T17:06:17.773 に答える
1

It will "inherit" the version from the parent and it does many other pieces of configuration. The groupId and dependencies can come from the parent as well.

于 2012-09-21T17:06:48.690 に答える