Not sure if this is the same, but there is a well established pattern for kind of 'parent pom exclusion' already used in various plugins (javadoc, sql, openjpa, etc). See [1] for a sample (method 'skipMojo()').
The logic basically works like that 1. if the flag skip == true then just skip the Mojo 2. if the package type == 'pom' and the flag forceMojoExecution == false then skip the Mojo also 3. otherwise execute the Mojo. Is that kind of what you like to have? LieGrue, strub [1] https://svn.codehaus.org/mojo/trunk/mojo/openjpa-maven-plugin/src/main/java/org/codehaus/mojo/openjpa/AbstractOpenJpaMojo.java --- On Thu, 5/20/10, Justin Edelson <[email protected]> wrote: > From: Justin Edelson <[email protected]> > Subject: Re: [mojo-user] Please don't check package type > To: [email protected] > Date: Thursday, May 20, 2010, 8:17 PM > On 5/20/10 4:15 PM, Wayne Fay wrote: > >> I'm using 'pom' package type instead of 'war', to > skip unnecessary java > >> compile process. > >> I think it will be no harm to skip package type > check. > > > > Rather than changing existing functionality, I think > there should be a > > new parameter added "ignorePackageType" or something > that causes the > > package type check to be skipped/ignored. > Or a multi-valued parameter called "allowedPackageTypes" > which defaults > to war. > > Justin > > > > > Feel free to add this functionality to the plugin > yourself and > > contribute your patch back via JIRA. > > > > Wayne > > > > > --------------------------------------------------------------------- > > To unsubscribe from this list, please visit: > > > > http://xircles.codehaus.org/manage_email > > > > > > > --------------------------------------------------------------------- > To unsubscribe from this list, please visit: > > http://xircles.codehaus.org/manage_email > > > --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email
