Last Version

Git Commit Id Plugin Maven Mojo 2.1.10-alpha-1

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

License

License

Categories

Categories

Git Development Tools Version Controls
GroupId

GroupId

at.molindo
ArtifactId

ArtifactId

git-commit-id-plugin
Version

Version

2.1.10-alpha-1
Type

Type

maven-plugin
Description

Description

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

Download git-commit-id-plugin 2.1.10-alpha-1


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

Dependencies

compile (8)

Group / Artifact Type Version
org.apache.maven : maven-plugin-api jar 2.2.1
org.apache.maven : maven-project jar 2.2.1
com.fasterxml.jackson.core : jackson-databind jar 2.2.3
com.google.inject : guice jar 2.0
joda-time : joda-time jar 2.0
com.google.guava : guava jar 15.0
com.intellij : annotations jar 9.0.4
org.eclipse.jgit : org.eclipse.jgit jar 2.0.0.201206130900-r

test (5)

Group / Artifact Type Version
junit : junit jar 4.10
org.easytesting : fest-assert jar 1.4
org.codehaus.plexus : plexus-utils jar 2.0.5
org.mockito : mockito-all jar 1.9.0
org.apache.commons : commons-io jar 1.3.2

Project Modules

There are no modules declared in this project.