小编jpa*_*ogo的帖子

部署工件时出错:传输文件失败返回代码为:401

我正在尝试将我的库ListBuddies上传到maven.为此,我使用@ChrisBanes的gradle-mvn-push github项目.我遵循他在回购时提到的所有步骤以及在使用回购之前需要的其他一些步骤:

本地gradle.properties文件(签名密钥只需要发布,所以不应该是SNAPSHOT的问题):

//These are the username/password that I use for:
//[JIRA](https://issues.sonatype.org) 
//and [NEXUS](https://oss.sonatype.org

NEXUS_USERNAME=jpardogo1
NEXUS_PASSWORD=jira-pass

//This is the key ID that I obtain doing "gpg --list-keys" on the terminal
signing.keyId=my-keyid

//This is the paraphrase I set when I first created the key
signing.password=my-paraphrase

//That's the path to my secret key ring
signing.secretKeyRingFile=/Users/jpardogo/.gnupg/secring.gpg
Run Code Online (Sandbox Code Playgroud)

看起来所有设置都正确,但是当我这样做时:

gradle clean build uploadArchives
Run Code Online (Sandbox Code Playgroud)

最后我收到代码ERROR 401:

:library:uploadArchives                 
Uploading: com/jpardogo/listbuddies/library/1.0.0-SNAPSHOT/library-1.0.0-20140209.151716-    1.aar to repository …
Run Code Online (Sandbox Code Playgroud)

authentication android sonatype maven android-gradle-plugin

5
推荐指数
1
解决办法
4394
查看次数