ktoso/maven-git-commit-id-plugin — Issue #21: Add support to execute mojo on pom Projects
Author: diogoeag
Created: 2012-01-05 23:59:04+00:00
State: open

Hi,

I've been using your plugin and in one of my projects I've needed to execute on the release steps the following command:

maven clean install assembly:single -N

And some resources that are being filtered have the git properties to be filled. As the top level project is a pom project, the mojo will not execute.

It would be good if you could add a property like:

/**
* Specified whether the execution in pom projects should be skipped.
*
* @parameter expression="${git.skipPoms}" default-value="true"
*/
private boolean skipPoms;

and then change:

if (isPomProject(project))

to

if (isPomProject(project) && skipPoms)

Thanks,