如何向Maven中央仓库(Central)发布包

如何将JAR包发布到Maven中央仓库?

注意,第一次使用域名的groupId时,需要验证域名所有权,即新加一个TXT的DNS解析,参考如下说明:

To register this Group Id you must prove ownership of the domain coder4.com. Please complete the following steps to continue:

  1. Add a DNS TXT record to your domain with the text: OSSRH-81020. Please read https://central.sonatype.org/faq/how-to-set-txt-record/
  2. Edit this ticket and set Status to Open.

More info: https://central.sonatype.org/publish/

Leave a Reply

Your email address will not be published.