you could place the enforcer plugin definition in <pluginManagement> section of the parent pom and then in each of the child poms you want to execute the plugin, you would include it in the <plugins> section
Milos On Thu, Aug 4, 2011 at 3:47 PM, Kreyßel, Conny <[email protected]> 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: [email protected] > For additional commands, e-mail: [email protected] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
