首页 > 解决方案 > 在 Maven 中央部署一个版本

问题描述

我想在 maven Central 上发布我的 Java 程序。从 SNAPSHOT 上传也有效。但是当我尝试发布一个版本时,我总是会收到以下错误消息。

Nexus Staging Rules Failure Report
[ERROR] ==================================
[ERROR]
[ERROR] Repository "xxxxx" failures
[ERROR]   Rule "signature-staging" failures
[ERROR]     * No public key: Key with id: (xxxxx) was not able to be located on http://keyserver.ubuntu.com:11371. Upload your public key and try the operation again.

然后我尝试使用以下命令将我的密钥上传到服务器。

gpg --keyserver http://keyserver.ubuntu.com --send-keys xxxxx

然后我得到了这个错误。

gpg: WARNING: nothing exported
gpg: skipped "xxxxx": Not found
gpg: keyserver send failed: Not found

有谁知道它可能是什么?

标签: javagitmavenrepositorygnupg

解决方案


推荐阅读