Maven for proxy

The following situation:

We have quite large projects that I'm trying to change. Therefore, we installed our own nexus repository manager. Everything works so far, but now we are faced with a situation where each developer must enter the proxy server username and password in settings.xml to receive artifacts from the outside (i.e. the Internet).

Unfortunately, developers need to change their proxy passwords from time to time, and they need apapt the settings.xml again.

The connection to our connection is not routed through a proxy. Is it possible to configure a similar DNS approach:

  • Client A asked (intern company, non-proxy) a link for a.jar artifact.
  • It is not in the local repositories, so the link then retrieves this artifact from the maven center and stores it in the local cache.
  • Client A receives the a.jar artifact as if it came directly from the company.
  • Everyone is happy:)
+4
source share
2 answers

Il will give you a more accurate answer as soon as you answer my question, but in any case, here is the best way to achieve what you want.

Nexus, Artifactory and another repo manager (e.g. smw pointed out) can act as proxies for you. They will receive your inquiries, look into their own database to search for your afactacts, and then to access the Internet if they have not found anything.

You must configure Nexus to mirror, and optionnaly give it proxy privileges:

+3
source

The repository manager can do this just for you. The Maven website has a short list .

+1
source

All Articles