利用bintray-release外掛程式上傳到Bintray- HTTP/1.1 404 Not Found [message:Repo 'maven' was not found]問題解決,bintrayrelease

來源:互聯網
上載者:User

利用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

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.