Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Maven: check for changes in scm [closed]

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?

like image 733
dabuki Avatar asked Nov 03 '22 17:11

dabuki


1 Answers

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.

like image 85
user944849 Avatar answered Nov 08 '22 08:11

user944849