Closed sleberknight closed 8 months ago
I did some local testing just doing mvn verify -Prelease
to generate the artifacts and get the GPG plugin to sign them.
I was able to get it to work by:
<gpg.passphrase>
from my settings.xml
Here is the relevant text from the usage page:
To prime gpg-agent caches, one can perform simple "sign" operation on workstation like this
echo "test" | gpg --clearsign
After doing this, the maven-gpg-plugin worked. So, even though this additional step is slightly annoying (especially since I never had an actual secret in settings.xml
), it should be safe to update the GPG plugin now.
If interested, also see the gpg man page for a description of the --clearsign
option.
Initially I received a "bad passphrase" error and a warning that a secret was on disk. This is 100% not true as my
settings.xml
file contains this profile:Clearly the new version 3.2.0 thinks one thing but the reality is a bit different.
${env.GPG_PASSPHRASE}
is clearly not an actual passphrase.And their docs were not helpful.
References: