Would it perhaps be sufficient to add a <skip> configuration to all plugins, such that you could declare the plugin the parent, and then add a <skip>true in the plugin definition in the children which would cause that plugin to be skipped for that specific child/module?
Just trying to think of some ways to implement this feature request... Wayne On 2/16/07, Rémy Sanlaville <[EMAIL PROTECTED]> wrote:
I would like to propose a new profile activation. As described in http://www.nabble.com/Execute-only-in-the-parent-POM-and-some-sub-modules---tf3201453s177.html#a8889223 , I need to execute a plugin only for some sub-modules from the parent pom. For instance to generate the project web site. I can do this with profiles : <profiles> <profile> <id>site</id> <modules> <module>moduleA</module> <module>moduleB</module> </modules> </profile> <profile> <id>default</id> <activation> <activeByDefault>true</activeByDefault> </activation> <modules> <module>moduleA</module> <module>moduleB</module> <module>moduleC</module> </modules> </profile> </profiles> mvn compile : compile all my three modules mvn site -Psite : generates the web site only for the modules A and B That's nice but it could be very interesting to activate my site profile only when the site is generate. In other word, it would be nice to attach a profile to a phase. I will have the possibility to do this : mvn compile : compile all my three modules => activate default profiles mvn site : generates the web site only for the modules A and B => activate site profile This is very useful at least for three reasons : - I will not have to explain to all the developers that they now have to add -Psite ; - We won't forget to add -Psite ; - I will have the possibility to execute (I hope) : mvn package site. Interesting with CI like continuum. We could either activate a profile to a phase if its id has the same name of the corresponding phase : <profile> <id>site</id> or with an activation section <profile> <id>mySiteProfile1</id> <activation> <phase>site</phase> </activation> Hope it's enough clear. Rémy
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]