简体   繁体   English

无法将 github 私有存储库链接到 bintray 中的 jcenter

[英]Not able to link github private repository to jcenter in bintray

I published my project in the Bintray successfully, but when I tried to link it to the jCenter, I got this error message:我在 Bintray 中成功发布了我的项目,但是当我尝试将其链接到 jCenter 时,我收到了以下错误消息:

Failed to send a message: The version control " https://github-private-repository-url " returns 404.发送消息失败:版本控制“ https://github-private-repository-url ”返回404。

My GitHub repository is private, so I want to know is it possible to link a private repo to the jCenter, and if yes how can I do that?我的 GitHub 存储库是私有的,所以我想知道是否可以将私有存储库链接到 jCenter,如果可以,我该怎么做?

From JFrog Bintray Documentation :来自JFrog Bintray 文档

Note that private repositories in GitHub are only displayed and available for importing by Bintray users with Premium Plan accounts who also have "Access private repositories" permissions in GitHub.请注意,GitHub 中的私有存储库仅由在 GitHub 中具有“访问私有存储库”权限的高级计划帐户的 Bintray 用户显示和导入。

Generally, to publish a private repository, you will need a repository manager like JFrog Artifactory or Nexus Repository .通常,要发布私有存储库,您需要像JFrog ArtifactoryNexus Repository这样的存储库管理器。 You can either maintain your own repository server or avail cloud solutions offered by such repository managers to host your artifacts.您可以维护自己的存储库服务器或利用此类存储库管理器提供的云解决方案来托管您的工件。

One can also read off directly from GitHub private repository.也可以直接从 GitHub 私有存储库中读取。 JitPack Private Package Repository can be used to directly expose GitHub private repositories to publish private Maven, Gradle and Android libraries. JitPack Private Package Repository can be used to directly expose GitHub private repositories to publish private Maven, Gradle and Android libraries. You can also expose source code in your private Github repositories without versioning provided by Jitpack as explained in this Medium article .您还可以在您的私有 Github 存储库中公开源代码,而无需 Jitpack 提供的版本控制,如本文中所述 Also, these approaches need you to share your GitHub repo tokens.此外,这些方法需要您共享您的 GitHub 回购令牌。

For Publishing library in JCENTER you need to make your repository as public.对于在 JCENTER 中发布库,您需要将您的存储库设为公开。

If you want to publish your library without changing public.如果您想在不更改公开的情况下发布您的库。

https://inthecheesefactory.com/blog/how-to-setup-private-maven-repository/en https://inthecheesefactory.com/blog/how-to-setup-private-maven-repository/en

Follow this thread.按照这个线程。

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

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