简体   繁体   English

如何将 Maven 工件从 jcenter 同步到 Maven Central?

[英]How to sync maven artifact from jcenter to maven central?

I have an artifact (jar) that is deployed to bintray and is available on jcenter.我有一个部署到 bintray 并且在 jcenter 上可用的工件(jar)。 I would also like this artifact to be available on maven central.我也希望这个工件可以在 maven central 上使用。
The instructions available from bintray (located here: https://www.jfrog.com/confluence/display/BT/Syncing+with+Third-Party+Platforms ) tell me to click the "Maven Central" tab within the "version" page for a version of my artifact within the bintray UI. bintray 提供的说明(位于此处: https ://www.jfrog.com/confluence/display/BT/Syncing+with+Third-Party+Platforms)告诉我单击“版本”中的“Maven Central”选项卡bintray UI 中我的工件版本的页面。 Unfortunately, there is no "Maven Central" tab on that page.不幸的是,该页面上没有“Maven Central”选项卡。 Any advice on how to get this artifact synced from bintray/jcenter to maven central?关于如何将这个工件从 bintray/jcenter 同步到 maven central 有什么建议吗? Thanks!谢谢!

Currently, there is no option to sync to Maven Central when using the new UI look.目前,在使用新的 UI 外观时没有同步到 Maven Central 的选项。 You will first need to switch to the "old look" of Bintray.您首先需要切换到 Bintray 的“旧外观”。 This can be done by selecting the "Go to Old Look" option.这可以通过选择“转到旧外观”选项来完成。 (Screenshot #1) Then, after switching to the old look, select the "Maven Central" option (Screenshot #2). (屏幕截图 #1)然后,切换到旧外观后,选择“Maven Central”选项(屏幕截图 #2)。

I hope this helps.我希望这有帮助。

#1

在此处输入图片说明

The most important part to sync with Maven central is surprisingly omitted from every.与 Maven 中心同步的最重要部分令人惊讶地从每个部分中省略。 single.单身的。 article there exists.文章存在。 The credentials are not the Sonatype JIRA credentials, which are also the same for Nexus Repository Manager .凭据不是Sonatype JIRA 凭据,对于Nexus Repository Manager也是相同的。 After logging into Nexus Repository Manager, click on 'Profile' on the top right, and then from the drop down, choose 'User Token'.登录 Nexus Repository Manager 后,单击右上角的“Profile”,然后从下拉列表中选择“User Token”。 Click button 'Access New Token' to generate the credentials to be used by Bintray to sync with Maven Central.单击按钮“访问新令牌”以生成 Bintray 用于与 Maven Central 同步的凭据。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM