Maven - can't activate profiles in multi-module project

前端 未结 2 619
遇见更好的自我
遇见更好的自我 2020-12-30 12:59

I\'m experiencing some difficulties configuring our project with Maven and need some help :)

Say, I have a multi-module project, with modules A and B (there are ~20

2条回答
  •  鱼传尺愫
    2020-12-30 13:50

    One of the ways to handle this requirement is to define your plugins within section of your multi-module parent pom. In each of the project where you need to use this plugin, you declare it.

    This way, you get to define all the plugin details and configuration in a central place as well as have the flexibility to use it only for relevant modules. More details here.

提交回复
热议问题