views:

316

answers:

1

Hi all,

The Maven Buildnumber plugin doesn't appear to work with GIT yet. Is there a workaround for the time being? I recently switched from SVN to GIT and have found it to be an easy transition, but this is the only thing that I don't have working presently.

Walter

+1  A: 

Well, there is MOJO-1199 about the buildnumber plugin and GIT support but the patches haven't been applied yet. However, it seems that Anthony Stubbs did some work around this and made it available in this git mirror. Have a look at it.

Pascal Thivent
good catch, that is a shame that it is taking so long to get that patch applied.
Hi guys! I have spies everywhere ;) Yes, it is weird. Seems the plugin may be essentially abandoned. Me and a [friend of mine](http://github.com/talios) are toying with the idea of publishing the fork to repo1.
Antony Stubbs
I just chatted with pgier and wsmoak on irc.codehaus.org#maven, they said if the patch applies cleanly, they'll accept in the buildnumber-maven-plugin.
Adam Monsen
@Adam Nice, thanks for the feedback!
Pascal Thivent
From Antony (or Justin?) - "I use my build every day, it definitely works for me. However, yes, I noticed the failure and disabled the tests! ;) but yes, the git integration works fine. I welcome a patch to fix the integration tests". I'll try to get to this soon. I recall maven plugin integration tests being kinda hard to debug, so I'll probably ask for help on some mailing lists.
Adam Monsen