maven - 如何将 Github 原始存储库作为代理存储库添加到 Sonatype Nexus?

标签 maven github nexus

现在有很多 github 托管的 Maven 存储库。
例如)https://github.com/nhnopensource/nhnopensource.maven.repo

我尝试将这些存储库作为代理存储库添加到我的 Sonatype Nexus 存储库管理器中,但一直失败。

但是当我在 gradle/maven 配置中将存储库 url 直接设置到 github 存储库时,存储库工作正常。

有没有人成功地将 github 托管的 maven 存储库添加到 Nexus 中?

最佳答案

我找到了解决方案:https://github.com/sagemintblue/sagemintblue-repositories

If you use Sonatype's Nexus repository manager, you may want to add proxy entries to your Nexus configuration for the Sagemintblue repositories. Here are a few notes to keep in mind:

Sagemintblue repositories don't contain indices. You should set Remote Repository Access > Download Remote Indexes to false.

Because GitHub doesn't generate directory listings for raw repository directory URLs, Nexus will automatically block the proxied repositories if Remote Repository Access > Auto blocking active is set to true. Set this option to false and click Refresh. You should see a Repository Status of Attempting to Proxy and Remote Unavailable. Nexus should still be able to access specific artifact, pom and checksum file URLs despite the missing directory listings.

关于maven - 如何将 Github 原始存储库作为代理存储库添加到 Sonatype Nexus?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17991752/

相关文章:

npm - 如何在 Sonatyoe Nexus OSS 中使用带有私有(private) npm 注册表的 yarn ?

linux - 不使用maven从nexus服务器下载包

playframework - 将 play 模块发布到内部 Maven 存储库

java - 如何在 gitlab-ci docker 构建过程中拉取共享库?

java - 对于要从​​ Eclipse IDE 使用的 Maven 项目,建议的 Git 存储库结构是什么

php - 'git pull' 命令可以从终端运行,但不能通过 git 存储库 Hook 使用 php shell_exec()

git - 如何恢复中止或中断的 "git clone"?

java - 如何对 for 循环的每次迭代进行基准测试(使用 JMH)?

java - JAXB maven 插件不生成类

github - 我可以使用 Post-Receive URL Hook 中止推送吗?