Questions tagged [mavanagaiata]

Mavanagaiata is a Maven plugin providing information about the Git repository of your project.

Mavanagaiata is a Maven plugin providing information about the Git repository of your project. For more information see the project site and the project's source code.

4 questions
75
votes
7 answers

Deriving maven artifact version from git branch

We have a workflow requirement that essentially mean that we need to have the artifact version of a module externally defined from the current branch in git. I.e. if we are on the master branch in git, I need master-... and if we…
Thorbjørn Ravn Andersen
  • 73,784
  • 33
  • 194
  • 347
43
votes
6 answers

Is there a single Git command to get the current tag, branch and commit?

I'm currently using a collection of three commands to get the current tag, branch and the date and SHA1 of the most recent commit. git describe --always --tag git log -1 --format="%H%n%aD" git rev-parse --abbrev-ref HEAD Which will output something…
Koraktor
  • 41,357
  • 10
  • 69
  • 99
7
votes
1 answer

How to get the git SHA1 value in the Implementation-Version field in the manifest for a Maven project?

We use git and maven and logback. This mean that the stack traces in the log show the Implementation-Version of the jar containing each line in the stack trace (see http://logback.qos.ch/reasonsToSwitch.html#packagingData for an example). So if we…
Thorbjørn Ravn Andersen
  • 73,784
  • 33
  • 194
  • 347
5
votes
2 answers

select maven profile based on git branch

Is it possible to select a profile based on what the current git branch is? For example, if you are in the master branch, it selects the 'production' profile. If it is the develop branch, it selects the 'development' profile. I found the…
rve
  • 5,897
  • 3
  • 40
  • 64