天天看點

* 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
           

繼續閱讀