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

前端 未结 3 1521
迷失自我
迷失自我 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:17

    As noted by Pascal, the behaviour is correct.

    If you're still looking for means to share dependencies between modules, you can consider bundling up the dependencies in question into a pom, and then having your modules both depend on that new "dependencies" pom.

    See Maven Book Section 3.6.1 for more details.

提交回复
热议问题