Question

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?

Was it helpful?

Solution

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

OTHER TIPS

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top