To configure Nexus to go through a SOCKS proxy server when accessing the internet, edit
$NEXUS_HOME/bin/jsw/wrapper.conf and add the following lines:
The numbers after
wrapper.java.additional. are sequence numbers, you need to use the next ones available after the other exiting
If you're running a recent version of Java 8 you can also configure non-proxy hosts by adding the following:
The format of this is the same as for
http.nonProxyHosts, as described here. It isn't clear exactly what version the non-proxy hosts setting went into (the change is here from the JDK issue, but it isn't documented anywhere). Version 1.8.0_40 definitely has it.
Make sure Nexus is using the latest version of Java 8 or newer - Java 7 is known not to work.
Note: If you are using Nexus Professional you will need to uninstall the p2 plugins in order for this to work. This is because Nexus Professional comes with a stripped down instance of Eclipse. This embedded instance is needed for Eclipse p2 repository support, and the code in the embedded Eclipse instance clears the socks system properties (NEXUS-8388).
To remove these plugins delete the following directories from the installation:
This will remove p2 repository support in Nexus Professional, but won't have any other impact.