Nexus behind a proxy

14,106

There is a section in the Nexus Admin UI to configure proxy settings. It is located under Administration --> Server. See section 6.1.5 of the Nexus Documentation.

Share:
14,106
zootropo
Author by

zootropo

Are all programmers addicted to coffee? #SOreadytohelp

Updated on June 11, 2022

Comments

  • zootropo
    zootropo almost 2 years

    I'm trying to install Nexus (the repository manager for Maven) in a machine behind a proxy. When I execute the server it tries to connect to the default repositories (https://repository.apache.org:443, https://repo1.maven.org:443 and https://nexus.codehaus.org:443) but it fails with a "network is unreachable" message (because of the proxy, I assume).

    I tried adding additional JVM parameters to the jsw/config/wrapper.conf file to configure the proxy but it doesn't seem to work:

    wrapper.java.additional.4=-Dhttp.proxyHost=10.104.1.7
    wrapper.java.additional.5=-Dhttp.proxyPort=8080
    wrapper.java.additional.6=-Dhttps.proxyHost=10.104.1.7
    wrapper.java.additional.7=-Dhttps.proxyPort=8080
    

    Anyone know how I can get this to work?