Alex Rivera | Logout

Maven Buildnumber plugin - Git

Asked 2010-04-21T17:17:57.800
18

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

Edit
Report

1 Answer

3

This blog post describes how to use profiles to have the buildnumber plugin work differently when in a git or svn working copy.

Obviously(*) the buildnumber created in the git repository does not contain the subversion revision number.

(*) It should be possible to include the subversion revision number in the buildnumber when working in a git repository for commits that are already pushed back to the subverion repository.

answered 2011-05-31T11:33:26.423

Your Answer