I try to publish my java project jar on sonatype. Let's say it's called my.jar
. I signed it with pgp
with my recently created key:
gpg --gen-key
...
gpg2 --list-keys
gpg2 --keyserver pgp.mit.edu --send-keys 7E6DE63A
gpg2 --keyserver pgp.mit.edu --recv-keys 7E6DE63A
##gpg: key 7E6DE63A: not changed
gpg2 -ab my.jar
##You need a passphrase to unlock the secret key for
##2048-bit RSA key, ID 7E6DE63A, created 2017-01-24
And then I deployed my.jar
and my.jar.asc
using staging upload
tab in sonatype. Then in staging repositories
tab I see:
No public key: Key with id: (f998bc7c7e6de63a)
was not able to be located on http://pgp.mit.edu:11371/.
Upload your public key and try the operation again.
What's the problem with it? Where did it take the id mentioned in error message?