Tuesday, February 26, 2013

Configure MAVEN to use SOCKS proxy

Recently involved in JAVA development which require me to setup the development environment. There are much more things to learn. Therefore want to make some note here along my learning path which i hope it will be useful for others as well. Here it is, on how to configure your maven to use socks proxy :

1. set the environment variable (Windows 7)
Right-click "My Computer" and  click "Properties"
Click "Advances system settings"
Click "Environment variables"
Under "System variables",  click "New..."
For "Variable Name", put the following without quote "MAVEN_OPTS"
For "Variable Value",  put the following without quote "-DsocksProxyHost=xxx -DsocksProxyPort=yyy" by replacing xxx with your Sock Proxy Address, and yyy with your Socks Proxy port.
2. Then you might be able to test it out using the example shown in : http://maven.apache.org/guides/getting-started/maven-in-five-minutes.html to create a sample Project.





1 comment:

stanleyxu (2nd) said...
This comment has been removed by a blog administrator.