user1164061
user1164061

Reputation: 4342

Proxy from org-apache-maven only in Nexus

I want to add a proxy repository in Nexus(OSS 2.5.0 v) just from http://repo1.maven.org/maven2/org/apache/maven ( and not from the entire http://repo1.maven.org/maven2/). When I do this, the Browse index shows nothing, Browse remote shows all contents, Browse storage is empty as expected, and routing shows the status as unsuccessful. Why does this happen? How can I successfully proxy from only http://repo1.maven.org/maven2/org/apache/maven ?

Thanks

Edit: can this be done through pom file? Anybody??

Upvotes: 0

Views: 138

Answers (1)

rseddon
rseddon

Reputation: 5320

You can't, that isn't a valid repository URL. You need to proxy http://repo1.maven.org/maven2. You can add Routing Rules to control what paths Nexus will consider when looking for artifacts in the proxy, so you could limit it to /org/apache/maven that way. But I think you will find that this won't work out very well, the pom files in that location have dependencies which are in other locations in central, so your builds will fail with that restriction.

Upvotes: 3

Related Questions