-->

Maven hosting with Bintray

2019-04-12 21:00发布

问题:

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),



标签: maven bintray