Inheriting Maven profiles

前端 未结 4 1661
无人及你
无人及你 2020-12-14 06:47

Is it possible for a child POM to inherit profiles defined in the parent POM? If so, how?

4条回答
  •  Happy的楠姐
    2020-12-14 06:54

    Profiles defined in a parent POM are inherited in a child POM extending the parent, there is nothing to do. And just in case, the Maven Help Plugin has very useful goals allowing to deal with profiles:

    • help:active-profiles : lists the profiles which are currently active for the build.
    • help:all-profiles : lists the available profiles under the current project.

提交回复
热议问题