Maven Buildnumber plugin - Git

后端 未结 7 1650
心在旅途
心在旅途 2021-02-02 13:33

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 eas

7条回答
  •  孤城傲影
    2021-02-02 14:16

    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.

提交回复
热议问题