Execute Maven plugin goal on child modules, but not on parent

后端 未结 6 915
眼角桃花
眼角桃花 2020-12-07 18:49

In a multi-module project, how can you specify that you want to execute a plugin goal in all the child-modules, but not on the parent project? There is

6条回答
  •  孤城傲影
    2020-12-07 18:59

    I tried the answer from Pascal but it did not work for me. The plugins referenced in the child pom did not execute, I'm assuming because they did not have a build phase binding.

    The post here describes a solution that works by binding the plugins to execution ids and build phases: How to override default binding to phase of a Maven plugin

    I'd recommend that to anyone else trying to get this working.

提交回复
热议问题