Related question: If I have a profile section, how do I prevent it from executing on defined modules (children)? Setting plugin/executions/execution/inherited to false seemingly does nothing Thanks, Bob Stone -----Original Message----- From: Stone, Robert [mailto:[EMAIL PROTECTED] Sent: Friday, January 27, 2006 10:22 AM To: users@maven.apache.org Subject: M2, profiles and inheritance
Hi all, I'm struggling with how to do inheritance in m2. I have a single parent project and large number of children projects that are nearly identical. I would like to have a profile that will do the following: 1. Execute first task on the parent only (once). [Defined in the parent POM] 2. Execute a second task on parent and each child. [Defined in the parent POM] 3. Execute a third task(s) (common) on each of the children, but not on the parent. [Defined in the parent POM] 4. Execute a task unique to the child. [Defined in the child POM] So far I successfully managed #2 and #4 within a single profile. Are #1 and #3 even feasible? I would really appreciate any hint or comments Regards, Bob Stone --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]