user888379
user888379

Reputation: 1467

connecting artifactory repository to nexus

I'm in an organization with multiple development efforts existing in parallel. My project is using Nexus to manage our Maven repository, and there's another group using Artifactory for their Maven needs. I'm trying to set up a proxy that points to their repository for snapshots, and am running into problems. When I try to configure the proxy, the status comes up as "Remote Automatically Blocked and Unavailable."

I'm not having troubles with any of the other proxies, so I think that my Nexus setup is basically okay. Does anyone know of additional Nexus configuration needed to point to an Artifactory repository? Conversely, is there some Artifactory tweaking needed to allow its use by Nexus?

Thank in advance!

Upvotes: 3

Views: 8814

Answers (3)

user888379
user888379

Reputation: 1467

I finally got the proxy working by setting the Authentication options (username and password) to values that the Artifactory repository recognized). There were also some fussy details with the Artifactory URL that took a couple of iterations to sort out. Thanks for the responses; they sparked some ideas - particularly the likelihood of a problem with the Artifactory URL.

Upvotes: 3

Yoav Landman
Yoav Landman

Reputation: 1206

Most likely the Artifactory URL is incorrect. Artifactory answers a HEAD request with 200. If you do not have a trailing slash in the repo URL Artifactory will answer with a 302 that redirects to the slash-ending URL (probably Nexus doesn't follow this). So the easiest way is to use a slash-ending URL in the proxy configuration.

BTW, having Artifactory at both ends allows you to use replication to eagerly fetch remote artifacts to your caches as they become available.

Upvotes: 3

Brian Fox
Brian Fox

Reputation: 6832

Nexus is checking for repo availability by doing a HEAD request against the root of the remote repository. It seems that Artifactory isn't returning a 200 to this for some reason (maybe they don't support it). You can turn off the checking in the proxy settings for this repository so this won't happen. Or you could convince them to use Nexus ;-)

Upvotes: -1

Related Questions