android 401错误,android – 错误部署工件:传输文件失败返回代码是:401

我正在尝试将我的库

ListBuddies上传到maven.要做到这一点,我正在使用@ChrisBanes的

gradle-mvn-push github项目.我遵循他在回购时提到的所有步骤以及在使用回购之前需要的其他一些步骤:

>我开了一个Jira问题,我等到它解决了

>我创建了GPG键

>我配置ListBuddies’s build.gradle files和gradle.properties

>我在“/Users/jpardogo/.gradle/gradle.properties”创建了另一个本地gradle.properties

本地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

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

gradle clean build uploadArchives

最后我收到代码ERROR 401:

:library:uploadArchives

Uploading: com/jpardogo/listbuddies/library/1.0.0-SNAPSHOT/library-1.0.0-20140209.151716- 1.aar to repository remote at https://oss.sonatype.org/content/repositories/snapshots/

Transferring 67K from remote

:library:uploadArchives FAILED

FAILURE: Build failed with an exception.

* What went wrong:

Execution failed for task ':library:uploadArchives'.

> Could not publish configuration 'archives'

> Error deploying artifact 'com.jpardogo.listbuddies:library:aar': Error deploying artifact: Failed to transfer file: https://oss.sonatype.org/content/repositories/snapshots/com/jpardogo/listbuddies/library/1.0.0-SNAPSHOT/library-1.0.0-20140209.151716-1.aar. Return code is: 401

* Try:

Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED

我一直在寻找昨天和今天整天的答案,但我无法解决.错误401原因很好解释在here,但我无法解决任何问题,我也读到它可能是由于用户权限问题,虽然我在Jira注册,因为guide说.

我希望你能帮助我,如果你需要更多信息,请告诉我.谢谢.

编辑:我想更新问题与链接到jira ticket及其评论.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值