Sign Git tag with Maven release plugin?

Is there a way to get the Maven release plugin to sign the Git tag that it creates at run time mvn release:prepare ?

+6
source share
2 answers

Unfortunately, this is not yet available.

http://jira.codehaus.org/browse/SCM-486

But this does not mean that it may be impossible?

+3
source

Starting with version 2.9.0, git supports the tag.forceSignAnnotated configuration parameter , which will force git to sign tags, since maven uses annotated tags at release. Just put

 [tag] forceSignAnnotated = true 

into your .gitconfig file.

+3
source

Source: https://habr.com/ru/post/910047/


All Articles