天天看点

* No public key: Key with id: (XXXXX) was not able to be located on <;a href= 解决方式

gpg密钥没有上传到共有服务器上,需要进行上传,如下截图是自己电脑上的gpg证书信息

* No public key: Key with id: (XXXXX) was not able to be located on <;a href= 解决方式
也就是在maven的settings.xml需要配置的id
* No public key: Key with id: (XXXXX) was not able to be located on <;a href= 解决方式

此前你需要将这个密钥上传到公共服务器上进行认证

一、先进行认证

* No public key: Key with id: (XXXXX) was not able to be located on <;a href= 解决方式

二、上传密钥

gpg --keyserver hkp://pool.sks-keyservers.net --send-keys BF24开头那条密钥id
           

三、进行验证

gpg --keyserver hkp://pool.sks-keyservers.net --recv-keys BF46开头那条密钥id
           
mvn clean deploy
           

继续阅读