Use custom git command with buildnumber-maven-plugin

I’m currently working on automating the build process (more or less) using maven.
I need to create an rpm but in order to do so, I need to retrieve the latest version. As part of the convention, we’re using GIT‘s tags to store the version of the system on the master branch.
Unfortunately, buildNumber-maven-plugin is using git show instead of git describe and I can’t find a suitable configuration for it to work.
How should I configure this thing ?

One Solution collect form web for “Use custom git command with buildnumber-maven-plugin”

Thanks to @musiKk ‘s suggestion, I used git-commit-id-plugin. I had several problems at first because I didn’t configure it properly.
Though the plugin is not mature enough, it’s getting the job done.

Git Baby is a git and github fan, let's start git clone.