I'm trying to use maven-gpg-plugin:sign in order to sign project artifacts before deployment to Sonatype OSS repository. The question is where shall I keep my secret key secring.gpg
:
- In continuous integration
~/.gnupg
directory - In project source code, e.g.
src/test/resources/gpg/secring.gpg
And why?