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

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.

主站蜘蛛池模板: 阳朔县| 包头市| 河东区| 盐亭县| 梓潼县| 伊吾县| 夏河县| 宁蒗| 嘉义市| 晋宁县| 绥宁县| 会同县| 乐业县| 抚州市| 古田县| 阿拉善盟| 高邮市| 集安市| 南宫市| 北流市| 锡林郭勒盟| 德昌县| 漳州市| 永仁县| 珠海市| 新化县| 收藏| 十堰市| 吉林市| 普格县| 黄大仙区| 六枝特区| 鲜城| 南昌县| 鄂托克前旗| 民勤县| 南安市| 瓮安县| 伊吾县| 鄂托克前旗| 德格县|