Maven hosting with Bintray

梦想与她 提交于 2020-01-01 19:03:35

问题


I am having issues with hosting maven jars with Github (site-maven-plugin) so I want to move with Bintray asap.

What are the steps to host a existing maven jar in bintray?

Here is my error when doing: mvn releae prepare

Caused by: org.apache.maven.shared.release.ReleaseFailureException: You don't have a SNAPSHOT project in the reactor projects list.

What I have now is I can do mvn clean install with no problems at all. Can I just upload the files under ./m2 repo? I basically uploaded the .jar and .pom I found in the maven repository.

  • How can I access the library I uploaded on Bintray from my pom.xml?

回答1:


You can get started with publishing from Maven to Bintray by copy-pasting some pom parts from "Set Me Up" guide:

Full user manual is available as well.

Please note, that you can't upload SNAPSHOTs to Bintray. It's a distribution platform and it is not intended for development process. Saying that, you are welcome to take advantage of a free Artifactory account for hosting your snapshot during development.

Using OJO you don't need to use the troublesome Maven Release Plugin anymore. Once you're satisfied with the snapshots quality you can promote them to be releases and upload them to Bintray in one REST call (or click of a button in Jenkins),



来源:https://stackoverflow.com/questions/25610068/maven-hosting-with-bintray

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!