• linkedu视频
  • 平面设计
  • 电脑入门
  • 操作系统
  • 办公应用
  • 电脑硬件
  • 动画设计
  • 3D设计
  • 网页设计
  • CAD设计
  • 影音处理
  • 数据库
  • 程序设计
  • 认证考试
  • 信息管理
  • 信息安全
菜单
linkedu.com
  • 网页制作
  • 数据库
  • 程序设计
  • 操作系统
  • CMS教程
  • 游戏攻略
  • 脚本语言
  • 平面设计
  • 软件教程
  • 网络安全
  • 电脑知识
  • 服务器
  • 视频教程
  • JavaScript
  • ASP.NET
  • PHP
  • 正则表达式
  • AJAX
  • JSP
  • ASP
  • Flex
  • XML
  • 编程技巧
  • Android
  • swift
  • C#教程
  • vb
  • vb.net
  • C语言
  • Java
  • Delphi
  • 易语言
  • vc/mfc
  • 嵌入式开发
  • 游戏开发
  • ios
  • 编程问答
  • 汇编语言
  • 微信小程序
  • 数据结构
  • OpenGL
  • 架构设计
  • qt
  • 微信公众号
您的位置:首页 > 程序设计 >Android > 利用bintray-release插件上传到Bintray- HTTP/1.1 404 Not Found [message:Repo 'maven' was not found]问题解决,bintrayrelease

利用bintray-release插件上传到Bintray- HTTP/1.1 404 Not Found [message:Repo 'maven' was not found]问题解决,bintrayrelease

作者:网友 字体:[增加 减小] 来源:互联网 时间:2017-05-26

网友通过本文主要向大家介绍了利用bintray-release插件上传到Bintray- HTTP/1.1 404 Not Found [message:Repo 'maven' was not found]问题解决,bintrayrelease等相关知识,希望对您有所帮助,也希望大家支持linkedu.com www.linkedu.com

利用bintray-release插件上传到Bintray- HTTP/1.1 404 Not Found [message:Repo 'maven' was not found]问题解决,bintrayrelease


凡是网上教程 有个5678步的总有这样或者那样的坑。 

上周撸了一个小工具准备上传到jcenter,方便管理以及以后使用。看了一下教程,短短几步,弄了很久。

按Hongyang的教程http://www.voidcn.com/blog/lmj623565791/article/p-5798330.html

陆续改了几个build中的小坑,比如说javadoc lint检查之类的。参考了 
http://blog.csdn.net/xingshen58/article/details/51644599等。

最终,HTTP/1.1 404 Not Found [message:Repo ‘maven’ was not found] 这个错误始终过不去。 
反复修改,publish配置中的userOrg字段,还是不行。 
从gradle-bintray-plugin插件换成了bintray-release插件。还是不行。这里不得不说bintray-release配置起来方便很多。

网上搜的各种解决方法也不行。不过发现一个差异就是我的Bintray 的Edit Profie页面只有五个选项,没有Repositories,而网上贴图有如下7个选项,有Repositories 和GPG signing、 
这里写图片描述

我的账号只能在Organizations里面的一个组织中才能创建repo。

好吧,不能蒙了,去github 找wiki。 
https://github.com/novoda/bintray-release/wiki/Configuration-of-the-publish-closure 
userOrg: Contains the organisation name to use for upload. 
repoName: The repository name. Set to ‘maven’ by default. 
这里解释说..userOrg 包含组织名。。看来 教程里面 
—-userOrg = ‘hyman’//bintray.com用户名 这里有误啊!

but,我的账号是什么鬼呢? 为什么网上各种教程都能直接创建maven仓库,我的不行,必须到组织里面创建? 
这个问题真心百度不到了。。 
没办法,翻Bintray的User manua

翻到maven repositories 
https://bintray.com/docs/usermanual/formats/formats_mavenrepositories.html 
这里写图片描述
To browse JCenter and download Maven artifacts, you can access it from the Bintray Homepage. 
说在主页可以看到这个创建Maven仓库的界面。然而我并没有。点开它给的链接。对主页的解释 
https://bintray.com/docs/usermanual/starting/starting_gettingstarted.html#_the_bintray_homepage 
The Bintray homepage is always available at https://www.bintray.com, and is designed to be a convenient workspace with easy-to-find links to the most important and frequently used features relevant to your account. When you sign in, your organization profile page will be displayed (if you own more than one organization, the last one you visited when signing out will be displyaed). 
If you are on the open source plan and have not yet created an organization then your user profile page will be displayed. 
Either way, you can access your personal profile page, or the profile page of any other organization you own from the profile menu in Bintray’s top ribbon.

仔细看。。1.When you sign in, your organization profile page will be displayed 
2.If you are on the open source plan and have not yet created an organization then your user profile page will be displayed.

我擦,原来有2种主页啊。 一种是普通账户登录,一种是Open source plan的账户登录? 
然后回到注册页面看了一看 
这里写图片描述
真的有2种。。 我眼瞎只看到绿色的START YOUR FREE TRIAL ,注册了好几 尝试都不行。 
这个教程http://www.voidcn.com/blog/lmj623565791/article/p-5798330.html 短短一句话带过。。 坑了我半天。 也可能当时坑爹的Bintary网站并没有这些选项。 
当然以后这个坑爹网站可能还会改,注意看准了。。

终于,点击For Open Source Plan。 注册成功之后,可以在自己 的账号里创建maven 仓库了。 
还有2点 
1 注册时,不少邮箱地址还不支持,要注意。 
2 创建仓库时,如果使用Bintray-release,名字就填成maven,因为他的wiki:repoName: The repository name. Set to ‘maven’ by default.(有错误请指出)

这里写图片描述
Finally,坑了我一天之后,终于BUILD SUCCESSFUL了。

以上如有任何错误或者不详细的地方请指出。

 

本文转载自http://www.voidcn.com/blog/tmac2000/article/p-6317244.html

分享到:QQ空间新浪微博腾讯微博微信百度贴吧QQ好友复制网址打印

您可能想查找下面的文章:

  • 利用bintray-release插件上传到Bintray- HTTP/1.1 404 Not Found [message:Repo 'maven' was not found]问题解决,bintrayrelease

相关文章

  • 2017-05-26[android] 手机卫士设置向导页面,android向导
  • 2017-07-22详解Android中的SQLite数据库存储
  • 2017-05-26菜鸟新闻3--ViewDragHelper详解(侧滑栏),viewdraghelper侧滑
  • 2017-05-26粗暴的解释Android与蓝牙Ble之间的通信,android蓝牙ble
  • 2017-05-26Android基于回调的事件处理
  • 2017-05-26我的android学习经历5,android学习经历5
  • 2017-05-26谷歌电子市场1--BaseFragment,1--basefragment
  • 2017-05-26getCacheDir()、getFilesDir()、getExternalFilesDir()、getExternalCacheDir(),mediacachefiles
  • 2017-05-26硅谷社交6--添加联系人--发送添加好友邀请,硅谷6--
  • 2017-05-26[Android]Activity的生命周期

文章分类

  • JavaScript
  • ASP.NET
  • PHP
  • 正则表达式
  • AJAX
  • JSP
  • ASP
  • Flex
  • XML
  • 编程技巧
  • Android
  • swift
  • C#教程
  • vb
  • vb.net
  • C语言
  • Java
  • Delphi
  • 易语言
  • vc/mfc
  • 嵌入式开发
  • 游戏开发
  • ios
  • 编程问答
  • 汇编语言
  • 微信小程序
  • 数据结构
  • OpenGL
  • 架构设计
  • qt
  • 微信公众号

最近更新的内容

    • Android程序中使用iconfont心得,androidiconfont
    • Android框架设计模式(四)——Adapter Method
    • Android之Activity系列总结(一)--Activity概览,android--activity
    • 历代安卓版本回顾(使用者角度+开发者角度)长期更新!!!,安卓开发者
    • Android和JavaScript相互调用的方法,androidjavascript
    • Android安全机制
    • Android自定义ViewGroup打造各种风格的SlidingMenu
    • android fragment生命周期应用
    • 安卓四大组件之内容提供者,安卓四大提供者
    • 3.4 TouchListener PK OnTouchEvent + 多点触碰

关于我们 - 联系我们 - 免责声明 - 网站地图

©2020-2025 All Rights Reserved. linkedu.com 版权所有