我正在尝试将我的回购发布到 Maven 中央回购。我将我的公钥上传到:
- http://keys.gnupg.net
- hkp://keyserver.ubuntu.com
- hkp://pool.sks-keyservers.net
我什至可以使用gpg --keyserver hkp://keyserver.ubuntu.com --recv-keys XXXXXXXX收到他们的回复
但是在将 repo 上传到 maven staging 时,我遇到了错误
No public key: Key with id: (XXXXXXXXXXXXXX)was not able to be located on <a href=http://keyserver.ubuntu.com:11371/>http://keyserver.ubuntu.com:11371/</a>. Upload your public key and try the operation again.[ERROR] * No public key: Key with id: (XXXXXXXXXXXXXX) was not able to be located on <a href=http://keys.gnupg.net:11371/>http://keys.gnupg.net:11371/</a>. Upload your public key and try the operation again.
我不确定是什么错误。任何帮助,将不胜感激。
我正在从 Windows10 上传公钥。