将库发布到maven仓库 [英] Publish a library to maven repositories

查看:190
本文介绍了将库发布到maven仓库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个稳定的开源库,并且想知道如何(如果)我可以发布我的lib maven官方存储库,所以人们可以将它包含在他们的 pom.xml 文件中,并获得自动下载的依赖。

将工件上传到中央存储库的指南。简而言之,新的过程是让您的项目由其中一个已批准的Forges承载,将与中央同步,Maven人员不再rsync个人版本库。在你的情况下,最好的方法是使用 Sonatype Forge (打开任何OSS项目)。检查给定的链接(以及此文档)。


I have a stable opensource library and was wondering how (and if) I can publish my lib to maven official repositories so people can include it in their pom.xml files and get the dependency downloaded automatically.

解决方案

The process to get your library in the central repostiory is documented in the Guide to uploading artifacts to the Central Repository. In short, the new process is to get your project hosted by one of the approved Forges that will be synced with central, the Maven folks don't rsync personal repository anymore. In your case, your best bet would be to use the Sonatype Forge (open to any OSS Project). Check the given link (and also this document).

这篇关于将库发布到maven仓库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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