美文网首页
Maven 打包发布到 Maven 仓库的认证错误排除

Maven 打包发布到 Maven 仓库的认证错误排除

作者: 李飞_fd28 | 来源:发表于2019-12-05 16:05 被阅读0次

Maven 打包发布到 Maven 仓库的认证错误排除


[ERROR] Rule failure while trying to close staging repository with ID "comgithublightbatis-1005".
[ERROR] 
[ERROR] Nexus Staging Rules Failure Report
[ERROR] ==================================
[ERROR] 
[ERROR] Repository "comgithublightbatis-1005" failures
[ERROR]   Rule "signature-staging" failures
[ERROR]     * No public key: Key with id: (38342284bea1a85c) 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 operation again.
[ERROR]     * No public key: Key with id: (38342284bea1a85c) 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: (38342284bea1a85c) 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: (38342284bea1a85c) 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 operation again.
[ERROR]     * No public key: Key with id: (38342284bea1a85c) 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: (38342284bea1a85c) 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: (38342284bea1a85c) 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 operation again.
[ERROR]     * No public key: Key with id: (38342284bea1a85c) 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: (38342284bea1a85c) 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: (38342284bea1a85c) 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 operation again.
[ERROR]     * No public key: Key with id: (38342284bea1a85c) 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: (38342284bea1a85c) 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] 
[ERROR] 
[ERROR] Cleaning up local stage directory after a Rule failure during close of staging repositories: [comgithublightbatis-1005]
[ERROR]  * Deleting context 15a7f1a3eff596.properties
[ERROR] Cleaning up remote stage repositories after a Rule failure during close of staging repositories: [comgithublightbatis-1005]
[ERROR]  * Dropping failed staging repository with ID "comgithublightbatis-1005" (Rule failure during close of staging repositories: [comgithublightbatis-1005]).

执行以下命令:

gpg --list-keys

列出以下所有的 Key

(base) lifeideMacBook-Pro:release lifei$ gpg --list-keys
/Users/lifei/.gnupg/pubring.kbx
-------------------------------
pub   dsa2048 2010-08-19 [SC] [有效至:2020-06-15]
      85E38F69046B44C1EC9FB07B76D78F0500D026C4
uid           [ 未知 ] GPGTools Team <team@gpgtools.org>
sub   elg2048 2010-08-19 [E] [有效至:2020-06-15]
sub   rsa4096 2014-04-08 [S] [有效至:2024-01-02]

pub   rsa4096 2019-12-03 [SC] [有效至:2023-12-03]
      BA693DA732B4E897171F58A238342284BEA1A85C
uid           [ 绝对 ] lifei (lightbatis) <lifei114@126.com>
sub   rsa4096 2019-12-03 [E] [有效至:2023-12-03]

pub   rsa4096 2019-12-05 [SC] [有效至:2023-12-05]
      5F7A2318F542F2EC3ACE93306AB375875ABBC431
uid           [ 绝对 ] lifei114 <lifei114@126.com>
sub   rsa4096 2019-12-05 [E] [有效至:2023-12-05]

pub   rsa4096 2019-12-05 [SC] [有效至:2023-12-05]
      7CD68BD19C59FE5A69EC8157B6D1A8E15413C185
uid           [ 绝对 ] lightbatis <lifei114@126.com>
sub   rsa4096 2019-12-05 [E] [有效至:2023-12-05]

发布PublicKey

gpg --keyserver hkp://keyserver.ubuntu.com:11371 --send-keys BA693DA732B4E897171F58A238342284BEA1A85C

查询Key

gpg --keyserver hkp://keyserver.ubuntu.com:11371 --recv-keys BA693DA732B4E897171F58A238342284BEA1A85C

再执行Maven 发布命令

clean install deploy -P release

执行成功

[INFO] 
[INFO]  * Remote staging into staging profile ID "15a7f1a3eff596"
[INFO]  * Created staging repository with ID "comgithublightbatis-1015".
[INFO]  * Staging repository at https://oss.sonatype.org:443/service/local/staging/deployByRepositoryId/comgithublightbatis-1015
[INFO]  * Uploading locally staged artifacts to profile com.github.lightbatis
[INFO] Uploading to : https://oss.sonatype.org:443/service/local/staging/deployByRepositoryId/comgithublightbatis-1015/com/github/lightbatis/lightbatis-core/1.0.2/lightbatis-core-1.0.2-sources.jar.asc
[INFO] Uploaded to : https://oss.sonatype.org:443/service/local/staging/deployByRepositoryId/comgithublightbatis-1015/com/github/lightbatis/lightbatis-core/1.0.2/lightbatis-core-1.0.2-sources.jar.asc (1.7 kB at 272 B/s)
[INFO] Downloading from : https://oss.sonatype.org:443/service/local/staging/deployByRepositoryId/comgithublightbatis-1015/com/github/lightbatis/lightbatis-core/maven-metadata.xml
[INFO] Uploading to : https://oss.sonatype.org:443/service/local/staging/deployByRepositoryId/comgithublightbatis-1015/com/github/lightbatis/lightbatis-core/maven-metadata.xml
[INFO] Uploaded to : https://oss.sonatype.org:443/service/local/staging/deployByRepositoryId/comgithublightbatis-1015/com/github/lightbatis/lightbatis-core/maven-metadata.xml (316 B at 130 B/s)
[INFO] Uploading to : https://oss.sonatype.org:443/service/local/staging/deployByRepositoryId/comgithublightbatis-1015/com/github/lightbatis/lightbatis-core/1.0.2/lightbatis-core-1.0.2-sources.jar
[INFO] Uploaded to : https://oss.sonatype.org:443/service/local/staging/deployByRepositoryId/comgithublightbatis-1015/com/github/lightbatis/lightbatis-core/1.0.2/lightbatis-core-1.0.2-sources.jar (103 kB at 50 kB/s)
[INFO] Uploading to : https://oss.sonatype.org:443/service/local/staging/deployByRepositoryId/comgithublightbatis-1015/com/github/lightbatis/lightbatis-core/1.0.2/lightbatis-core-1.0.2.pom.asc
[INFO] Uploaded to : https://oss.sonatype.org:443/service/local/staging/deployByRepositoryId/comgithublightbatis-1015/com/github/lightbatis/lightbatis-core/1.0.2/lightbatis-core-1.0.2.pom.asc (833 B at 2.9 kB/s)
[INFO] Uploading to : https://oss.sonatype.org:443/service/local/staging/deployByRepositoryId/comgithublightbatis-1015/com/github/lightbatis/lightbatis-core/1.0.2/lightbatis-core-1.0.2-javadoc.jar.asc
[INFO] Uploaded to : https://oss.sonatype.org:443/service/local/staging/deployByRepositoryId/comgithublightbatis-1015/com/github/lightbatis/lightbatis-core/1.0.2/lightbatis-core-1.0.2-javadoc.jar.asc (833 B at 2.1 kB/s)
[INFO] Uploading to : https://oss.sonatype.org:443/service/local/staging/deployByRepositoryId/comgithublightbatis-1015/com/github/lightbatis/lightbatis-core/1.0.2/lightbatis-core-1.0.2-javadoc.jar
[INFO] Uploaded to : https://oss.sonatype.org:443/service/local/staging/deployByRepositoryId/comgithublightbatis-1015/com/github/lightbatis/lightbatis-core/1.0.2/lightbatis-core-1.0.2-javadoc.jar (505 kB at 172 kB/s)
[INFO] Uploading to : https://oss.sonatype.org:443/service/local/staging/deployByRepositoryId/comgithublightbatis-1015/com/github/lightbatis/lightbatis-core/1.0.2/lightbatis-core-1.0.2.jar.asc.asc
[INFO] Uploaded to : https://oss.sonatype.org:443/service/local/staging/deployByRepositoryId/comgithublightbatis-1015/com/github/lightbatis/lightbatis-core/1.0.2/lightbatis-core-1.0.2.jar.asc.asc (833 B at 1.2 kB/s)
[INFO] Uploading to : https://oss.sonatype.org:443/service/local/staging/deployByRepositoryId/comgithublightbatis-1015/com/github/lightbatis/lightbatis-core/1.0.2/lightbatis-core-1.0.2.pom.asc.asc
[INFO] Uploaded to : https://oss.sonatype.org:443/service/local/staging/deployByRepositoryId/comgithublightbatis-1015/com/github/lightbatis/lightbatis-core/1.0.2/lightbatis-core-1.0.2.pom.asc.asc (833 B at 2.6 kB/s)
[INFO] Uploading to : https://oss.sonatype.org:443/service/local/staging/deployByRepositoryId/comgithublightbatis-1015/com/github/lightbatis/lightbatis-core/1.0.2/lightbatis-core-1.0.2-sources.jar.asc.asc
[INFO] Uploaded to : https://oss.sonatype.org:443/service/local/staging/deployByRepositoryId/comgithublightbatis-1015/com/github/lightbatis/lightbatis-core/1.0.2/lightbatis-core-1.0.2-sources.jar.asc.asc (833 B at 2.6 kB/s)
[INFO] Uploading to : https://oss.sonatype.org:443/service/local/staging/deployByRepositoryId/comgithublightbatis-1015/com/github/lightbatis/lightbatis-core/1.0.2/lightbatis-core-1.0.2.jar
[INFO] Uploaded to : https://oss.sonatype.org:443/service/local/staging/deployByRepositoryId/comgithublightbatis-1015/com/github/lightbatis/lightbatis-core/1.0.2/lightbatis-core-1.0.2.jar (167 kB at 209 kB/s)
[INFO] Uploading to : https://oss.sonatype.org:443/service/local/staging/deployByRepositoryId/comgithublightbatis-1015/com/github/lightbatis/lightbatis-core/1.0.2/lightbatis-core-1.0.2.pom
[INFO] Uploaded to : https://oss.sonatype.org:443/service/local/staging/deployByRepositoryId/comgithublightbatis-1015/com/github/lightbatis/lightbatis-core/1.0.2/lightbatis-core-1.0.2.pom (5.5 kB at 18 kB/s)
[INFO] Uploading to : https://oss.sonatype.org:443/service/local/staging/deployByRepositoryId/comgithublightbatis-1015/com/github/lightbatis/lightbatis-core/1.0.2/lightbatis-core-1.0.2-javadoc.jar.asc.asc
[INFO] Uploaded to : https://oss.sonatype.org:443/service/local/staging/deployByRepositoryId/comgithublightbatis-1015/com/github/lightbatis/lightbatis-core/1.0.2/lightbatis-core-1.0.2-javadoc.jar.asc.asc (833 B at 3.0 kB/s)
[INFO] Uploading to : https://oss.sonatype.org:443/service/local/staging/deployByRepositoryId/comgithublightbatis-1015/com/github/lightbatis/lightbatis-core/1.0.2/lightbatis-core-1.0.2.jar.asc
[INFO] Uploaded to : https://oss.sonatype.org:443/service/local/staging/deployByRepositoryId/comgithublightbatis-1015/com/github/lightbatis/lightbatis-core/1.0.2/lightbatis-core-1.0.2.jar.asc (833 B at 2.1 kB/s)
[INFO]  * Upload of locally staged artifacts finished.
[INFO]  * Closing staging repository with ID "comgithublightbatis-1015".

Waiting for operation to complete...
........

[INFO] Remote staged 1 repositories, finished with success.
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  01:25 min
[INFO] Finished at: 2019-12-05T15:59:36+08:00
[INFO] ------------------------------------------------------------------------

相关文章

网友评论

      本文标题:Maven 打包发布到 Maven 仓库的认证错误排除

      本文链接:https://www.haomeiwen.com/subject/jfbdgctx.html