You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by Stephen Connolly <st...@gmail.com> on 2009/11/11 10:43:47 UTC

Use-case for multiple entries in the same section

Just thought of a use-case for listing the same plugin twice in the
one <plugins> section.... namely <inherited>true</inherited> and
<inherited>false</inherited>

OK, so it's somewhat specialised, and I have not had to use it myself,
and you could probably work-around using a profile, but there is a use
case.

So what I would say is than in any one <plugins> section, the
groupId:artifactId:inherited should be unique for each <plugin> in the
<plugins> section

-Stephen

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


Re: Use-case for multiple entries in the same section

Posted by Stephen Connolly <st...@gmail.com>.
but what if you want to configure the defaults for all executions, and for
the child module executions, and you want the defaults for the child modules
to be different from the defaults for this module.

e.g.

turn skip on for this module, but off for child modules

2009/11/12 Brian Fox <br...@infinity.nu>

> You should use the inherited element of the execution for that.
>
> On Wed, Nov 11, 2009 at 4:43 AM, Stephen Connolly
> <st...@gmail.com> wrote:
> > Just thought of a use-case for listing the same plugin twice in the
> > one <plugins> section.... namely <inherited>true</inherited> and
> > <inherited>false</inherited>
> >
> > OK, so it's somewhat specialised, and I have not had to use it myself,
> > and you could probably work-around using a profile, but there is a use
> > case.
> >
> > So what I would say is than in any one <plugins> section, the
> > groupId:artifactId:inherited should be unique for each <plugin> in the
> > <plugins> section
> >
> > -Stephen
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
> > For additional commands, e-mail: dev-help@maven.apache.org
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
> For additional commands, e-mail: dev-help@maven.apache.org
>
>

Re: Use-case for multiple entries in the same section

Posted by Brian Fox <br...@infinity.nu>.
You should use the inherited element of the execution for that.

On Wed, Nov 11, 2009 at 4:43 AM, Stephen Connolly
<st...@gmail.com> wrote:
> Just thought of a use-case for listing the same plugin twice in the
> one <plugins> section.... namely <inherited>true</inherited> and
> <inherited>false</inherited>
>
> OK, so it's somewhat specialised, and I have not had to use it myself,
> and you could probably work-around using a profile, but there is a use
> case.
>
> So what I would say is than in any one <plugins> section, the
> groupId:artifactId:inherited should be unique for each <plugin> in the
> <plugins> section
>
> -Stephen
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
> For additional commands, e-mail: dev-help@maven.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org