I didn't say it would. :-)

There has been several similar questions like this on this list before.
There is no generic way to exclude a bound plugin in a single sub-project.
Either all sub-projects inherit the plugin binding or none.
Some plugins provide a configuration option to skip execution (look at
surefire which has a skipTests option) however. Technically, this still
executes the bound plugin but the plugin doesn't do anything (all dependeing
on the plugin's logic for that option). As an end user the difference
shouldn't really matter, but technically there is a bug difference.
Also, there is an option to say that a plugin binding shouldn't be inherited
by any sub-project. You do that by declaring:
<inherited>false</inherited>
You can find examples of that here:
http://maven.apache.org/guides/introduction/introduction-to-the-pom.html

In your case, I would look at this option for the exec plugin:
http://mojo.codehaus.org/exec-maven-plugin/exec-mojo.html#skip

/Anders

On Tue, Dec 15, 2009 at 08:47, Karl Heinz Marbaise <k...@soebes.de> wrote:

>
> Hi Anders,
> what you mentioned is correct, but this does not solve my problem...
>
> BTW: The usage works for MVN 2.2.1 and MVN 3.0 - Alpha 5...but i've checked
> the docs and you're right...
>
>
> Anders Hammar wrote:
> >
> > I just wanted to mention that defining two plugin sections of the same
> > plugin (exec-maven-plugin in your case) is incorrect. I believe there is
> a
> > bug in som Maven versions that allow that, but it's not te corredt way of
> > doing things. Instead, you should specify two execution sections in the
> > same
> > plugin section.
> >
> >
>
> Kind regards
> Karl Heinz Marbaise
> --
> View this message in context:
> http://old.nabble.com/Maven-Exec---Inheritance---Multi-Module-Build-tp26779913p26790912.html
> Sent from the Maven - Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>
>

Reply via email to