Maven - skip parent project build

前端 未结 5 1189
轮回少年
轮回少年 2020-12-06 16:30

I know it\'s mauvais ton to ask twice in a single day but here\'s another Maven puzzler:

I have a parent POM which defines 5 modules (5 subprojects). Since

5条回答
  •  离开以前
    2020-12-06 16:37

    I want to document that there's partial compromise to my situation (thanks to guys on maven users mailing list for suggestion). Basically you need to chop profile in two pieces. Reusable configuration section of plugin goes to the parent POM, and executions stays in the child POM. Then the profile plugin in the child is marked as inherited and voila - at run time parent profile is not executed since it's missing executions section. This is far from ideal but it does work. Refer to this link for example

提交回复
热议问题