maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marcin Kuthan <>
Subject Re: Execution of plugin in child poms and not in current pom
Date Thu, 04 Aug 2011 18:25:23 GMT
Hi Conny

Define enforcer rules in the profile, e.g:

                                <!-- To disable profile, define
property -Dacme-corporate-pom.enforcerRulesDisabled=true -->



When you build corporate pom, disable the profile with:

mvn -Dacme-corporate-pom.enforcerRulesDisabled=true ....

For all other projects the profile is enabled by default.

Marcin Kuthan
Maven For Enterprise -

On 4 August 2011 15:47, Krey├čel, Conny <> wrote:
> Hello,
> i try to create a "company parent pom" that defines the usage of the enforcer plugin
with some handmade enforcer rules. This rules validates the project settings for all our applications
we build with maven.
> My problem is that the enforcer plugin (and the defined rules) are called in the run
of the "company parent pom" build and fail the build because he use the rules that should
only be used in application projects.
> Do anyone know how if i can fix this? The enforcer plugin should only called in all projects
based on "company parent pom" as parent.
> Thanks.
> Conny
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message