我正试图将我的仓库发布到Maven中央仓库。我将我的公钥上传到了:
我什至可以使用以下方式从他们那里收到回复 gpg --keyserver hkp://keyserver.ubuntu.com --recv-keys XXXXXXXX
但是在将仓库上传到Maven阶段时,我遇到了错误
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上传公钥。
答案 0 :(得分:0)
卸载并重新安装gpg4win应用程序可以解决问题。