Is packaging type 'pom' needed when not using project aggregation (multimodule)?

前端 未结 3 1525
迷失自我
迷失自我 2021-02-13 17:47

I want to inherit the dependencies of a (parent) pom.xml in a child project in Maven 2.2.1; i.e. use project inheritance. It seems it is necessary to change the def

3条回答
  •  [愿得一人]
    2021-02-13 18:20

    As documented in the Inheritance section of the POM Reference:

    The packaging type required to be pom for parent and aggregation (multi-module) projects.

    So Maven's behavior seems correct to me (and the error message is nicely self explaining).

提交回复
热议问题