Laird Nelson wrote:
Hello; could someone tell me if there's a way to make it so that if a
configured <mirror> isn't working for some reason--or isn't accessible--that
the repository it mirrors should be used directly instead?

I am wide open to various recipes to accomplish the same result.

The setup: I have a Nexus repository manager installed at work.  Sometimes
I'm on the VPN, sometimes I'm not.  I'd like it so that if I'm off the VPN
and therefore Nexus isn't available to proxy all the repositories from any
given POM, that the repositories so proxied should be used directly instead.

The closest I've been able to come is to set up a profile that tests for the
existence of a file that is only accessible when the VPN is up.  If that
profile activates, then it adds the Nexus repository as its only
repository.  But as far as I can tell this profile's list of repositories
doesn't *replace* the POM's list of repositories--it augments it.  So my
Nexus repository is indeed conditionally in the mix, which is nice, but it's
not the ONLY thing in the mix.

In general, it seems like it might be nice to be able to define or take
different behavior if a mirror is not reachable.  Other thoughts?

Best,
Laird

Why not simply make your Nexus available on the Internet and password protect the access.
I can reach mine from anywhere in the world as long as I am on the net.

Ron


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to