Maven include another pom for plugin configuration

后端 未结 2 971
独厮守ぢ
独厮守ぢ 2021-01-13 00:19

is there a way to include another pom or information in a maven pom ?

I have several poms which are basically not related or have different parent poms. Nevertheless

2条回答
  •  半阙折子戏
    2021-01-13 01:16

    One way to do this is using pluginManagement section. plugin configurations can be defined in this section in a parent pom and will be available to inherited poms to be used as is or overridden.

    Here is the relevant maven documentation. In your specific case, you would need to organize your projects/poms suitably.

提交回复
热议问题