HoneyMoose
  • 首页
  • Java
  • Jersey
  • Jira
  • Confluence
  • U.S.
    • Real Estate
    • U.S. Travel
    • H1B
  • 项目和网站
    • CWIKI.US
    • OSSEZ 社区
    • WIKI.OSSEZ.COM
    • BUG.OSSEZ.COM
    • RSS.OSSEZ.COM
BLOG.OSSEZ.COM
A responsive blog theme focused om user reading experience
  1. Home
  2. Computer Science
  3. This article

GPG 使用 Maven 签名后发送到中央仓库提示 Upload your public key and try the operation

2020年12月28日 42Browse 0Like 0Comments

在本地使用 GPG 签名需要发布的包后进行上传到中央 Maven 仓库。

提示错误:

[ERROR]     * No public key: Key with id: (1e5cbef8b550fb7d) was not able to be located on <a href=http://keys.openpgp.org:11371/>http://keys.openpgp.org:11371/</a>. Upload your public key and try the operation again.
[ERROR]     * No public key: Key with id: (1e5cbef8b550fb7d) 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.
[ERROR]     * No public key: Key with id: (1e5cbef8b550fb7d) was not able to be located on <a href=http://pool.sks-keyservers.net:11371/>http://pool.sks-keyservers.net:11371/</a>. Upload your public key and try the opera
tion again.

 

gpg-key-01

 

错误原因和解决办法

出现上面的错误的原因是你本地使用 GPG 签名了,但是你的公钥没有上传到服务器上。

这将导致你签名没有办法被使用。

解决办法就是将你的公钥上传上去。

登录: https://keys.openpgp.org 网站

输入你的签名的电子邮件地址进行校验。

 

gpg-key-02

 

如果你的公钥已经上传的话,当你输入你的邮件地址,你将会看到下面的提示,表示的是用户电子邮件地址已经被找到了。

 

gpg-key-03

 

如果提示如下,表示的是你的邮件地址没有找到,你需要将你的公钥上传。

 

gpg-key-04

 

如果你使用的是 Window 的环境,相信在创建 GPG 的时候,你已经安装了Kleopatra,你可以运行 Kleopatra。

然后找到你的秘钥。

右键选择导出。

 

gpg-key-05

 

将这个导出文件保存后,再次返回 https://keys.openpgp.org/ 网站,

选择 上传。

 

gpg-key-06

 

然后选择上一步导出的文件,单击上传

 

gpg-key-07

 

请注意,当你上传成功后,系统会向你的秘钥中的邮件地址发送一个电子邮件过去。

在这个电子邮件中包含有一个链接,你需要单击链接确定后才会完成上传。

 

gpg-key-08

 

当完成所有操作后,刷新浏览器,然后使用你的电子邮件进行搜索。

如果你能够和第一步一样搜索到数据,那么说明你的公钥已经上传上去了。

重新运行 Maven

随后再在项目中运行 mvn clean deploy,需要耐心等待一些时间。

等最后你应该可以看到部署成功,并且签名什么的不会有什么问题了。

 

gpg-key-09

 

如上图提示的部署成功的 Maven 界面。

https://www.ossez.com/t/gpg-maven-upload-your-public-key-and-try-the-operation/785

Tags: None
Last updated:2020年12月28日

Kratos

stay absorbed stay excellent

Like
< Previous
Next >

Comments

Cancel reply

Newest Hotspots Random
Newest Hotspots Random
程序员被辞了可以自己接外包不 现有 B1/B2 是否可以入境美国 货拉拉司机现在的心理阴影面积 Tomcat 是不是已经过气的容器 房地产经纪人为什么会给你设置邮件更新 廉价航空带来了什么糟糕的经历
是不是都喜欢出国旅游而不能接受国内游Java 要掌握多少才可以开发征信很好,单位不错为什么就是不给批信用卡Spring Data JPA 文档翻译的时候引用错误油涨了不少,都 2 以上了Pizza 在线等
Confluence 6 移动应用 app 你需要什么 Postman 如何设置 Bearer token 电脑软件(例如 Adobe、Autodesk)为什么那么容易被破解 微信小程序的 AppID 到哪里找 如何看待中国网民规模破 9 亿,其中七成月收入不足 5000 元,八成学历在专科以下 Confluence 6 字符集编码的问题解决
Categories
  • Akka
  • Algorithm(算法)
  • AMQP
  • Angular
  • CI
  • Compile And CI
  • Computer Science
  • Confluence
  • DataBase
  • Gradle
  • H1B
  • Hibernate
  • IDE
  • Java
  • Jersey
  • Jira
  • MariaDB
  • PrestaShop
  • Real Estate
  • Spring
  • Spring Batch
  • U.S.
  • U.S. Travel
  • 我的小厨

COPYRIGHT © 2020 HoneyMoose. ALL RIGHTS RESERVED.

THEME CWIKIUS.CN MADE BY VTROIS