英文:
Simple way to publish opensrc Java project to maven
问题
多年前,通过java.net,我将一个开源项目发布到了Maven Central,这很困难。在java.net关闭后,我尝试将一个更新的版本发布出来,但无法使其正常工作,所以我放弃了。多年后,这个项目仍然活跃,但Maven仓库没有得到更新,我一直被要求更新它,但我真的不知道如何进行下一步。
所以,请问是否有一些完整的步骤来将一个Java库部署到Maven中央仓库,以便我可以解决这个问题。
英文:
Many years ago via java.net I made an opensrc project available on Maven Central, it was difficult. I tried to make a newer version available after java.net folded and I couldn't get it working, I gave up. Many years later the project is still going strong but the maven repository has not been updated, I am always being asked to do it but I really don't know how to progress.
So please are there some complete steps to deploy a java lib to maven central repository so I can get this resolved.
答案1
得分: 0
如@khmarbaise在他上面的评论中指出的,您应该遵循Sonatype发布内容到Maven Central的指南。
(部分原因是他们“无法使其更简单”的原因是,您推送的任何内容都必须可以被证明为您拥有,并且将永远存在于Maven Central下,希望会是永恒的坐标。 这是一个有意设置的高门槛。 这也是这个工具如此强大的原因。)
英文:
As @khmarbaise indicated in his comment above, you should follow Sonatype's guide to publishing content to Maven Central.
(Part of the reason why they "cant…make it easier" is that whatever content you push has to be provably owned by you and will live, hopefully, forever in Maven Central under what will be eternal coordinates. That's a deliberately high barrier to entry. It is also what makes the facility so powerful.)
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论