JavaGian , Free Online Tutorials, JavaGian provides tutorials and interview questions of all technology like java tutorial, android, java frameworks, javascript, ajax, core java, sql, python, php, c language etc. for beginners and professionals.
Learn to configure maven https proxy settings. By default, maven uses default network connection while running on the local systems. But sometimes we are running our application in our workplace or company. These networks shields the internet usage through proxy servers or firewalls, so all internet queries made from our system goes through this proxy server.
Maven by default does not detect network proxy configuration, and to use maven in these restricted areas, we must configure network proxy settings for maven.
1. How to configure maven proxy settings
To setup maven proxy setting, follow below steps:
Navigate to path – {M2_HOME}/conf/settings.xml
Open file settings.xml in edit mode in any text editor.
Update above proxy server fields with your network specific credentials. You can found network proxy details in your browser’s connection settings. For example, proxy settings can be found at –
Proxy settings in browsers
Internet Explorer >> tools >> internet options >> Connections >> LAN Settings