使用Bintray进行Maven托管 [英] Maven hosting with Bintray

查看:255
本文介绍了使用Bintray进行Maven托管的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在使用Github(site-maven-plugin)托管Maven jar时遇到问题,所以我想尽快使用Bintray.

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

在Bintray中托管现有Maven jar的步骤是什么?

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

这样做是我的错误: mvn releae prepare

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

我现在所能做的是mvn clean install,完全没有问题.我可以仅在./m2存储库下上传文件吗?我基本上上传了在Maven存储库中找到的.jar和.pom.

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.

  • 如何从pom.xml访问在Bintray上上传的库?

推荐答案

您可以通过复制粘贴"Set Me Up"指南中的一些pom部件来开始从Maven发布到Bintray:

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

完整的用户手册也可用.

请注意,您不能将SNAPSHOT上传到Bintray.这是一个发行平台,不适合开发过程. 话虽如此,欢迎您利用免费的Artifactory帐户用于在开发过程中托管快照.

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.

使用OJO,您不再需要使用麻烦的Maven版本插件.对快照质量满意后,您可以将它们发布,并通过一个REST调用(或在Jenkins中单击按钮)将其上传到Bintray

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

这篇关于使用Bintray进行Maven托管的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆