将许可的工件发布到Maven中央存储库 [英] Publishing licensed artifact to Maven Central Repository

查看:91
本文介绍了将许可的工件发布到Maven中央存储库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要将我们的项目API(捆绑的jar)推送到Maven Central Repository.作为其中的一部分,我已经遍历了链接 .但是,对于我们的项目是否有资格在Maven Central回购中发布,我感到很困惑,

I need to push our project API's (bundled jar) to Maven Central Repository. As Part of that,i have gone through this link . However, am quite confused whether our project is eligible to publish in maven central repo,

  • 我们的API不是开源的.它只需要分发给从我们这里购买的客户. Maven是否仅对具有密钥等特定用户的罐子提供了任何限制?

  • Our API is not open source. it need to distribute only to client who purchase from us. is Maven provides any restrictions to download jar only for specific user who has some key etc?

POM.xml正在请求许可信息.我们的不是开源的,如果我们允许发布,那么pom.xml中的许可内容应该是什么?

POM.xml is requesting for licensing information. ours is not open source, if we allowed to publish, what should be licensing content in pom.xml?

为什么我们必须在pom.xml中提供我们的回购信息?我们正在使用bitbucket,因此提供了其他用户无法访问的repo url.我们可以有虚拟回购还是强制性的?

Why we have to give our repo information in pom.xml? we are using bitbucket and hence providing the repo url is not accessible for others. can we have dummy repo or it is mandatory?

请帮帮我.

推荐答案

您发布到Maven Central的所有内容对世界上的所有人都是可用的.

Everything you publish to maven central will be available to everyone in the world.

对于您的用例,您可以考虑托管自己的Maven存储库. 检查声纳型联系,人工制品,档案... 使用自己的存储库,您可以在服务器中配置密码.然后,客户需要在其pom.xml或settings.xml中配置服务器,以下载工件.

For your use case, you can consider hosting your own maven repository. Check sonatype nexus, artifactory, archiva... With your own repo, you can configure a password in your server. Then your clients will need to configure your server in their pom.xml or settings.xml to download your artifacts.

这篇关于将许可的工件发布到Maven中央存储库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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