Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Sign Git tag with Maven release plugin?

Is there a way to get the Maven release plugin to sign the Git tag it creates during a mvn release:prepare execution?

like image 909
David B. Avatar asked Mar 06 '12 02:03

David B.


2 Answers

Staring from version 2.9.0 git supports tag.forceSignAnnotated config option, which will force git to sign tags as maven uses annotated tags when releasing. Just put

[tag]
    forceSignAnnotated = true

into your .gitconfig file.

like image 82
kofemann Avatar answered Nov 12 '22 00:11

kofemann


Unfortunately this seemed to be currently not available.

https://issues.apache.org/jira/browse/SCM-486

But this does not mean it might not be possible somehow?

like image 3
khmarbaise Avatar answered Nov 12 '22 00:11

khmarbaise