sonatype出现Received status code 403 from server: Forbidden

问题

Execution failed for task ':uploadPlugin:publishReleasePublicationToUploadApkPluginRepository'.
> Failed to publish publication 'release' to repository 'UploadApkPlugin'
   > Could not PUT 'https://oss.sonatype.org/service/local/staging/deploy/maven2/io/github/eegets/uploadPlugin/1.0.3/uploadPlugin-1.0.3.jar'. Received status code 403 from server: Forbidden

使用maven库上传提示如上错误

解决办法

sonatype官网给了解决方案
https://issues.sonatype.org/browse/OSSRH-65499

https://oss.sonatype.org地址修改为https://s01.oss.sonatype.org,再次执行发布即可

你可能感兴趣的:(sonatype出现Received status code 403 from server: Forbidden)