如何让 Nexus 代理 s3 上的 springsource maven 存储库?

发布于 2024-08-28 06:06:00 字数 328 浏览 10 评论 0原文

我有 Nexus 1.5.0 设置来代理 springsource 存储库,但它不起作用。存储库位于 s3 上,nexus 似乎不明白如何处理这个问题。

什么是正确的模式?

这是我被告知需要的存储库,但我无法访问其中的 Maven 路径

http ://repository.springsource.com/maven/bundles/release

,我需要在本地镜像这些吗?

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.

What's the right pattern?

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

Do, I need to mirror these locally?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

病毒体 2024-09-04 06:06:03

根据 NEXUS-1121,您的 Nexus 版本知道如何处理基于 S3 的存储库。下面,尤金的评论

以下是适合我的 Nexus 设置:

之后我就可以下载了
这些存储库中的工件为
如果他们在 Maven Central
存储库。

唯一的问题是你只能
搜索已存在的工件
代理,因为没有 Nexus
在这些存储库上发布的索引。
发布索引应该很容易
独立使用说明
索引器可以在以下位置找到
http://docs.codehaus.org/display/M2ECLIPSE/Nexus+Indexer #NexusIndexer-索引器

According to NEXUS-1121, your version of Nexus knows how to deal with S3 based repositories. Below, Eugene's comment:

Here is Nexus setup that works for me:

After that I am able to download
artifacts from those repositories as
if they are in Maven Central
repository.

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

山色无中 2024-09-04 06:06:03

它适用于我的此配置和另一个存储库。

我有一个 Sonatype Nexus 存储库版本 1.9.1.1。我想配置存储库以从 http://maven.springframework.org/milestone/ 下载工件。

我使用此配置创建了一个新的代理存储库:

id: repository.springframework.maven.milestone
Name: Spring Maven Milestone Repository
Rep. Type: proxy
Provider: Maven2
Format: Maven2
Rep Policy: Release
Remote storage: http://maven.springframework.org/milestone/
Down. Remote indexes: false
Auto blocking: true
File validation: False
Checksum: warm.

我保存了数据并创建了存储库。

奇怪的是,当我尝试使用“浏览远程”选项卡时,我无法列出任何内容。

重要:之后我单击“公共存储库/配置”并将 Spring Maven 里程碑存储库添加到订购组存储库。

最后,我在我的 POM 存档中写入了依赖项:

<dependency>
    <groupId>org.springframework.data</groupId>
    <artifactId>spring-data-jpa</artifactId>
    <version>1.0.0.RC1</version>
</dependency>

并且下载没有问题。

我希望它会有用。

It works for me with this configuration and with another repository.

I have a Sonatype Nexus repository version 1.9.1.1. I wanted to configure the repositories to download artifacts from http://maven.springframework.org/milestone/.

I have created a new proxy repository with this configuration:

id: repository.springframework.maven.milestone
Name: Spring Maven Milestone Repository
Rep. Type: proxy
Provider: Maven2
Format: Maven2
Rep Policy: Release
Remote storage: http://maven.springframework.org/milestone/
Down. Remote indexes: false
Auto blocking: true
File validation: False
Checksum: warm.

I saved the data and the repository was created.

The strange thing is that when i try to use the "browse Remote" tab I can't list anything.

Important: After that I clicked on Public Repositories / Configuration and added the Spring Maven Milestone Repository to the ordered group repositories.

And finally, I wrote the dependency in my POM archive:

<dependency>
    <groupId>org.springframework.data</groupId>
    <artifactId>spring-data-jpa</artifactId>
    <version>1.0.0.RC1</version>
</dependency>

And it was downloaded without problems.

I hope it will be useful.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文