如何在S3上获取代理Springsource Maven存储库的代理? [英] How can I get nexus to proxy springsource maven repository on s3?
问题描述
我有nexus 1.5.0设置来代理springsource存储库,但是它不起作用.存储库位于s3上,Nexus似乎不了解如何处理该问题.
I have nexus 1.5.0 setup to proxy springsource repositories but it's not working. The repositories are on s3 that nexus doesn't seem to understand how to deal with that.
什么是正确的模式?
这是我被告知需要的存储库,但是我无法访问其中的Maven路径
Here are the repositories I'm told I need, but I cannot access the maven paths with in them
http://repository.springsource.com/maven/bundles/release http://repository.springsource.com/maven/bundles/external
我需要在本地镜像吗?
推荐答案
根据 NEXUS-1121 ,那么您的Nexus版本知道如何处理基于S3的存储库.在下面的
According to NEXUS-1121, your version of Nexus knows how to deal with S3 based repositories. Below, Eugene's comment:
以下是适用于我的Nexus设置:
Here is Nexus setup that works for me:
-
为 http://repository.springsource.com/maven/bundles/
- 配置的代理"存储库释放 为 http://repository.springsource.com/maven/bundles/
- 配置的代理"存储库外部
- 将这两个存储库都添加到默认的公共存储库"组中
- Configured "proxy" repository for http://repository.springsource.com/maven/bundles/release
- Configured "proxy" repository for http://repository.springsource.com/maven/bundles/external
- Added both of those repositories into default "Public Repositories" group
之后,我可以下载 这些存储库中的工件 如果他们在Maven Central 存储库.
After that I am able to download artifacts from those repositories as if they are in Maven Central repository.
唯一的问题是您只能 搜索槽形文物 被代理,因为没有Nexus 在这些存储库上发布的索引. 应该容易发布索引和 独立使用说明 索引器可以在以下位置找到 http://docs.codehaus.org/display/M2ECLIPSE/Nexus+Indexer #NexusIndexer-indexer
The only issue is that you can only search trough artifacts that been proxied, because there is no Nexus index published on those repositories. It should be easy to publish index and instructions for using standalone indexer can be found at http://docs.codehaus.org/display/M2ECLIPSE/Nexus+Indexer#NexusIndexer-indexer
这篇关于如何在S3上获取代理Springsource Maven存储库的代理?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!