Run Apache mvn (maven2) behind proxy

If you want to use maven2(mvn) behind a proxy then you have to do the following.

1. Go to settings.xml file which is located in /etc/maven2

sudo gedit /etc/maven2/settings.xml

2. Edit the file according to your proxy settings appropriate values.

Uncomment the proxies tag under settings and put the values for each tag


3. Save and you are Done!


About kishanthan

I’m currently working as a Software Engineer at WSO2, an open source software company. I hold an Engineering degree, majoring in Computer Science & Engineering field, from University of Moratuwa, Sri Lanka.
This entry was posted in How to, Ubuntu and tagged , , , , , . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s