You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by John Fallows <jo...@gmail.com> on 2005/07/08 02:04:54 UTC

[m2] inherited plugin configuration is not applied to subprojects

When plugins are configured in a parent pom inside either
<pluginManagement> or <build>, with <inherit>true</inherit>, the child
pom executes the plugins without the configuration applied.

For example, even if the parent pom configures the
maven-complier-plugin to use source 1.4, Java code in the child
project still complains about the assert keyword, introduced in Java
1.4.

When the plugin configuration is transferred to the child pom
directly, then the correct configuration is used, as expected.

Is this a known problem?

Kind Regards,
John Fallows.

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


Re: [m2] inherited plugin configuration is not applied to subprojects

Posted by Mark Hobson <ma...@gmail.com>.
This was discussed earlier on the list, check the thread '[M2]
pluginManagement and plugins usage' and related issue MNG-522.

Mark

On 08/07/05, John Fallows <jo...@gmail.com> wrote:
> When plugins are configured in a parent pom inside either
> <pluginManagement> or <build>, with <inherit>true</inherit>, the child
> pom executes the plugins without the configuration applied.
> 
> For example, even if the parent pom configures the
> maven-complier-plugin to use source 1.4, Java code in the child
> project still complains about the assert keyword, introduced in Java
> 1.4.
> 
> When the plugin configuration is transferred to the child pom
> directly, then the correct configuration is used, as expected.
> 
> Is this a known problem?
> 
> Kind Regards,
> John Fallows.
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
> 
>

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