alx3apps/jgit-buildnumber — pull request #8 by bradszabo (2013-09-18 21:37:34+00:00)
Title: Added a new Maven plugin configuration parameter named 'runOnlyAtExecuti...

I really appreciate your plugin! I have run into a limitation imposed by your enforcement of single plugin execution in a multi-module reactor.

The problem stems from variances in Maven project layout. The plugin currently is coded to require that the reactor root pom.xml also be the parent pom.xml for all of its modules. This is a common setup, but is not mandatory. Some projects have the shared parent pom.xml as a sub-module, or outside of the project entirely.

I have added a simple enhancement to allow for flexibility when used by projects not adhering to the expected layout and inheritance.

This idea is actually derived from the same post used to create the singular exclusion.
http://www.sonatype.com/people/2009/05/how-to-make-a-plugin-run-once-during-a-build/

I added a new Maven plugin configuration parameter named 'runOnlyAtExecutionRoot' to allow for the plugin to execute in each module of a multi-module reactor, or restrict to running once in a reactor.

The default value is 'true' which maintains the existing behavior of the plugin to run only once in a reactor build.

This change simply allows for this plugin to be used in Maven multi-module projects without error if they do not conform to the expected project layout, at the cost of having the information extracted for each module.