Hi Andreas, On Fri, Jan 8, 2010 at 10:09 AM, Andreas Sewe <[email protected]> wrote: > > How can I disable these non-sensical reports for aggregator POMs while > still benefitting from inheritance? (I don't want to configure the plugin > manually in all my non-aggregator POMs.) > > Andreas Sewe >
It would be best if plugins have some intelligence that they really ought not to operate on particular types of POMs, however until that day arrives... I define a property like maven.surefire.skip to be true in the parent pom, and then false in the leaf nodes. A corresponding reference to this property must be placed into the super/aggregator POM's plugin configuration sections (both in pluginManagement and also reporting) for the skip configuration option. We do this for all of our report plugins, but I find it most useful for PMD, Checkstyle, Javadoc, and GWT's SOYC. With this strategy I'm able to get a minimal amount of leaf-node replication. I also think it makes my build process more flexible, as an experienced person can -Dmaven.surefire.skip= on the command line. -Jesse -- There are 10 types of people in this world, those that can read binary and those that can not. --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
