简单发布开源Java项目到Maven的方法。

huangapple go评论52阅读模式
英文:

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

huangapple
  • 本文由 发表于 2020年7月29日 22:09:53
  • 转载请务必保留本文链接:https://go.coder-hub.com/63155573.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定