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, Windows | Preferences, as follows:
Make changes to the settings.xml file in User Settings and add a proxy section: