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
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