1

我正在尝试将我的回购发布到 Maven 中央回购。我将我的公钥上传到:

  1. http://keys.gnupg.net
  2. hkp://keyserver.ubuntu.com
  3. 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 上传公钥。

4

1 回答 1

1

卸载并重新安装 gpg4win 应用程序就可以了。

于 2019-03-15T19:05:01.773 回答