4.0.0org.sonatype.ossoss-parent6pl.project13.mavengit-commit-id-pluginmaven-plugin2.1.3Git Commit Id Plugin Maven Mojo
git-commit-id-plugin is a plugin quite similar to
https://fisheye.codehaus.org/browse/mojo/tags/buildnumber-maven-plugin-1.0-beta-4 for example but as buildnumber
only supports svn (which is very sad) and cvs (which is even more sad).
This plugin makes basic repository information available through maven resources. This can be used to display
"what version is this?" or "who has deployed this and when, from which branch?" information at runtime - making
it easy to find things like "oh, that isn't deployed yet, I'll test it tomorrow" and making both testers and
developers life easier.
The data currently exported is like this (that's the end effect from the GitRepositoryState Bean):
{
"branch" : "testing-maven-git-plugin",
"commitTime" : "06.01.1970 @ 16:16:26 CET",
"commitId" : "787e39f61f99110e74deed68ab9093088d64b969",
"commitUserName" : "Konrad Malawski",
"commitUserEmail" : "konrad.malawski@java.pl",
"commitMessageFull" : "releasing my fun plugin :-) + fixed some typos + cleaned up directory structure + added
license etc",
"commitMessageShort" : "releasing my fun plugin :-)",
"buildTime" : "06.01.1970 @ 16:17:53 CET",
"buildUserName" : "Konrad Malawski",
"buildUserEmail" : "konrad.malawski@java.pl"
}
Note that the data is exported via maven resource filtering and is really easy to use with spring -
which I've explained in detail in this readme https://github.com/ktoso/maven-git-commit-id-plugin
http://www.blog.project13.plktosoKonrad Malawskikonrad.malawski@java.plProject13.plhttp://blog.project13.pl[${maven-plugin-api.version},)GNU Lesser General Public License 3.0http://www.gnu.org/licenses/lgpl-3.0.txtgit@github.com/ktoso/maven-git-commit-id-plugin.gitscm:git:https://github.com/ktoso/maven-git-commit-id-pluginscm:git:git@github.com:ktoso/maven-git-commit-id-plugin.git2.2.12.0.0.201206130900-r4.101.9.01.6UTF-8UTF-81.4org.apache.mavenmaven-plugin-api${maven-plugin-api.version}org.apache.mavenmaven-project${maven-plugin-api.version}com.google.guavaguava13.0com.intellijannotations9.0.4org.eclipse.jgitorg.eclipse.jgit${jgit.version}junitjunit${junit.version}testorg.easytestingfest-assert${fest-assert.version}testorg.codehaus.plexusplexus-utils2.0.5testorg.mockitomockito-all${mockito.version}testorg.apache.commonscommons-io1.3.2jartestsrc/main/resourcestrue**/*.properties**/*.xmlorg.apache.maven.pluginsmaven-compiler-plugin2.5.1UTF-8${java.target}gpgorg.apache.maven.pluginsmaven-gpg-pluginsign-artifactsverifysign