Is there a maven plugin which I can use to check if there was a commit since the project had been released the last time? I want to enforce people to keep up with the project documentation and therefore I want to check during the build process if there have been commits to the documentation docbook project since the last release. If there aren't any the build should fail, because there has been no update of the documentation. Or do you have other approaches to automatically assure that people keep documenting?
I don't know of a single Maven plugin to do what you want. There are a couple of plugins that might work together though. maven-scm-plugin has goals diff
and changelog
. diff
may be configured to write its output to a file; maybe you could examine the file contents with the gmaven plugin or maven enforcer plugin. The latter has a goal that will fail the build if a file is not within a size range. You may also write custom enforcer rules if the existing ones don't quite do it.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With