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

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

    If you're just wanting to inherit dependencies then I don't think it needs to be type 'pom'. You could have it jar and simply specify it as a dependency of the project which you have as child. However you wouldn't then have the parent/child relationship which is what prevents your parent project being a type other than 'pom'.

    To be clear, you inherit the dependencies of all your dependencies ( transitive dependencies ).

提交回复
热议问题