凡是网上教程 有个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

利用bintray-release插件上传到Bintray- HTTP/1.1 404 Not Found [message:Repo 'maven' was not found]问题解决的更多相关文章

  1. OpenFire后台插件上传获取webshell及免密码登录linux服务器

    1.目标获取 (1)fofa.so网站使用搜索body="Openfire, 版本: " && country=JP,可以获取日本存在的Openfire服务器.如图 ...

  2. Java 利用SWFUpload多文件上传 session 为空失效,不能验证的问题 swfUpload多文件上传

    Java 利用SWFUpload多文件上传 session 为空失效,不能验证的问题(转) 我们都知道普通的文件上传是通过表单进行文件上传的,还不能达到异步上传的目的.通过使用某些技术手段,比如jqu ...

  3. selenium+java利用AutoIT实现文件上传

    转自https://www.cnblogs.com/yunman/p/7112882.html?utm_source=itdadao&utm_medium=referral 1.AutoIT介 ...

  4. maven tomcat插件上传项目到tomcat服务器报错SEVERE: One or more listeners failed to start.

    以前觉了maven依赖设置很简单,就是将手动导入jar包转化为自动下载导入 但发现的一个问题, 在使用maven插件tomcat打包上传工具时 tomcat-maven-plugin <buil ...

  5. 使用IDEA的Git插件上传项目教程

    如何使用IDEA的Git插件上传项目 一.在https://www.cnblogs.com/zyx110/p/10799387.html中下载 二.注册码云账号 搜索gitee码云插件并安装

  6. 利用TortoiseGit向Github上传文件

    利用TortoiseGit向Github上传文件 第一步:建一个新文件夹,作为本地仓库 第二步:右键选择设置为版本库 若弹出,确认即可 重新打开改文件,会发现多了一个绿色的小勾 在文件夹中会自动生成一 ...

  7. 【NopCommerce 3.1】asp.net mvc 利用jQuery from.js上传用户头像

    纯代码不解释. 在CusotmerControllers中添加上传方法 /// <summary> /// ajax上传用户头像 /// </summary> /// < ...

  8. [Asp.net]Uploadify上传大文件,Http error 404 解决方案

    引言 之前使用Uploadify做了一个上传图片并预览的功能,今天在项目中,要使用该插件上传大文件.之前弄过上传图片的demo,就使用该demo进行测试.可以查看我的这篇文章:[Asp.net]Upl ...

  9. [Asp.net]Uploadify上传大文件,Http error 404 解决方案 - wolfy

    引言 之前使用Uploadify做了一个上传图片并预览的功能,今天在项目中,要使用该插件上传大文件.之前弄过上传图片的demo,就使用该demo进行测试.可以查看我的这篇文章: [Asp.net]Up ...

随机推荐

  1. android和iOS平台的崩溃捕获和收集

    转自:http://www.cnblogs.com/lancidie/archive/2013/04/13/3019349.html 通过崩溃捕获和收集,可以收集到已发布应用(游戏)的异常,以便开发人 ...

  2. CodeForces 1097G. Vladislav and a Great Legend

    题目简述:给定$n \leq 10^5$个节点的树$T = (V, E)$,令$X \subseteq V$表示一个非空节点集合,定义$f(X)$为包含$X$的最小子树的边数.求 $$ \sum_{\ ...

  3. 《精通Spring4.X企业应用开发实战》读后感第五章(<bean>之间的关系\整合多个配置文件)

  4. Oracle tns 协议

    下面是翻译国外的一篇博客,原文连接如下: https://thesprawl.org/research/oracle-tns-protocol/ 简介 TNS(Transparent Network ...

  5. NSMutableAttributedString及NSMutableParagraphStyle的使用

    一.在iOS开发中,常常会有一段文字显示不同的颜色和字体,或者给某几个文字加删除线或下划线的需求.之前在网上找了一些资料,有的是重绘UILabel的textLayer,有的是用html5实现的,都比较 ...

  6. Linux 错误集锦

    1. CentOS 7 运行yum时出现/var/run/yum.pid已被锁定,PID为xxxx的另一个程序正在运行的问题解决 解决办法: rm -f /var/run/yum.pid,删除文件后再 ...

  7. .net 扩展方法,lamada表达式 委托

    扩展方法 (1)扩展方法是一种特殊的静态方法,它定义在一个静态类中,但可以在其他类的对象上向调用实例方法那样进行调用.因此,通过扩展方法,我们就可以在不修改一个类型的前提下对一个类型进行功能上的扩充, ...

  8. [51nod] 1007 正整数分组 dp

    将一堆正整数分为2组,要求2组的和相差最小. 例如:1 2 3 4 5,将1 2 4分为1组,3 5分为1组,两组和相差1,是所有方案中相差最少的.   Input 第1行:一个数N,N为正整数的数量 ...

  9. __stdcall

    __stdcall是函数调用约定的一种,函数调用约定主要约束了两件事: 1.参数传递顺序 2.调用堆栈由谁(调用函数或被调用函数)清理 常见的函数调用约定:stdcall cdecl fastcall ...

  10. python 之 列表生成式、生成器表达式、模块导入

    5.16 列表生成式 l=[]for i in range(100):    l.append('egg%s' %i)print(l)​l=['egg%s' %i for i in range(100 ...