官术网_书友最值得收藏!

Setting up internet connectivity

If you are working in an enterprise and have to access internet through a proxy, this can be a pain based on what your enterprise policies limits you to do.

For our development purposes, we need internet connectivity for the following:

  • Downloading dependency libraries such as Log4j and Spring that are configured as part of the Maven repository. This is a one-time activity, as the libraries become part of the local Maven repository once downloaded. If your organization has a repository, you need to configure that.
  • Eclipse plugins from the marketplace as we evolve our sample application.
  • Your program calls a service or APIs that are in the public cloud.

For writing our first service, only the first point is important. Please get your proxy details and configure them in the Maven settings from the main menu, WindowsPreferences, as follows:

Make changes to the settings.xml file in User Settings and add a proxy section:

<proxies> 
<proxy>
<id>myproxy</id>
<active>true</active> <protocol>http</protocol> <host>proxy.yourorg.com</host> <port>8080</port> <username>mahajan</username> <password>****</password> <nonProxyHosts>localhost,127.0.0.1</nonProxyHosts> </proxy> <proxy> <id>myproxy1</id> <active>true</active> <protocol>https</protocol> <host> proxy.yourorg.com</host> <port>8080</port> <username>mahajan</username> <password>****</password> <nonProxyHosts>localhost,127.0.0.1</nonProxyHosts> </proxy>

Save the file and restart Eclipse. We will know whether it worked when we create a project.

主站蜘蛛池模板: 平利县| 缙云县| 石屏县| 九江县| 南阳市| 新田县| 青阳县| 迁西县| 德江县| 密山市| 辽中县| 西乌珠穆沁旗| 温州市| 松阳县| 贺州市| 崇礼县| 宝鸡市| 望奎县| 禄劝| 始兴县| 武定县| 余姚市| 石柱| 鹤庆县| 宁化县| 拉萨市| 崇仁县| 鄄城县| 客服| 石台县| 彰武县| 徐州市| 平远县| 关岭| 合水县| 大同县| 衡阳市| 都昌县| 腾冲县| 肃南| 金华市|