微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

将GitHub Android库发布到Maven Central

我工作了两天,在maven中心部署我的githubCircularImageView,使用它与gradle依赖,如下所示:

compile 'com.mikhaellopez:circularimageview:2.0.0'

我按照本教程写了这封信:Publish an aar file to jCenter with Gradle但是无所事事我无法以这种方式访问​​我的图书馆.

请帮我知道我做错了什么..

链接

> Bintray Repos:https://bintray.com/lopspower/maven/com.mikhaellopez%3Acircularimageview/view
> Sonatype问题:https://issues.sonatype.org/browse/OSSRH-18203

编辑:2015年10月14日

要在0700的步骤16中最终与Maven Central同步,您需要一个用户令牌密码.我怎么做到的?

Bintray回答:

Hi, The “User token password” is not taken from Bintray, it can be found in your Maven Central account. Please see further @R_329_4045@ion on syncing with Maven here: 07005 Regards Bintray Team

最后,目前尚不清楚,但“用户令牌密码”实际上对应于您的Sonatype帐户的密码.现在该项目通常是同步,但我仍然无法访问该项目:

Failed to resolve: com.mikhaellopez:circularimageview:2.0.0

解决方法:

您可以在bintray HERE中查看所有库.
我意识到我的图书馆很好,但路径不同.

的确,在Android Studio模块名称中非常重要.所以我在“circularimageview”中重命名为“CircularImageView-Library”.我再次与新版本同步,现在它可以工作.

我可以像gradle一样访问我的图书馆:

compile 'com.mikhaellopez:circularimageview:2.0.1'

我编辑教程:https://github.com/lopspower/gradle-jcenter-publish

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。

相关推荐