MVN

at.molindo : git-commit-id-plugin

Maven & Gradle

May 22, 2014
0 stars

Git 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" : "[email protected]", "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" : "[email protected]" } 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

<plugin>
    <groupId>at.molindo</groupId>
    <artifactId>git-commit-id-plugin</artifactId>
    <version>2.1.10-alpha-1</version>
</plugin>
Copy
pom.xml
Table Of Contents

Latest Version

Choose a version of at.molindo : git-commit-id-plugin to add to Maven - Latest Versions:

  • Latest Stable: 2.1.10-alpha-1
  • Latest Alpha: 2.1.10-alpha-1

All Versions

Choose a version of at.molindo : git-commit-id-plugin to add to Maven - All Versions:

Version Vulnerabilities Updated
2.1.x
git-commit-id-plugin-2.1.10-alpha-1

How to add a plugin to Maven

Add the maven plugin to the pom.xml file information in this tag as follows:

<plugin>
    <groupId>at.molindo</groupId>
    <artifactId>git-commit-id-plugin</artifactId>
    <version>2.1.10-alpha-1</version>
</plugin>

Advertisement

Dependencies from Group

Mar 02, 2020
10 usages
5 stars
Aug 10, 2015
7 usages
0 stars
Aug 10, 2015
3 usages
0 stars
Jul 16, 2018
3 usages
3 stars
Aug 10, 2015
2 usages
0 stars

Discover Dependencies

Nov 04, 2014
2.2k stars
Apr 10, 2015
1 usages
3 stars
Sep 21, 2005
1 usages
Jan 08, 2014
6 stars
Jun 26, 2014
593 stars
Jul 16, 2014
3 stars
Dec 17, 2005
Nov 22, 2005