maven in 5 min not working

Window-Preferences-Maven-User Settings. Check, does settings.xml exists? if eclipse says no, get settings.xml from you friend or set the path to it.


Clearly this is an issue of proxy. Either use VPN or edit procy setting in setting.xml. I searched lot about this error. Finally, I used VPN(Virtual private network ) to disable the proxy and was able to use cemtral repository of Maven.


Found solution:

Solution #1:

issue was with proxy in settings.xml file:

<host>webproxy</host>

to get host goto IE->tools->connection->LAN settings->advanced->http.

=====

Solution #2:

if auto configured proxy is given: then

1> open IE(or any browser)

2> get the url address from your browser through IE->Tools->internet option->connections->LAN Settings-> get address and give in url eg: as http://autocache.abc.com/ and enter, a file will be downloaded with .pac format, save to desktop

3> open .pac file in textpad, identify PROXY:

In your editor, it will come something like:

   return "PROXY web-proxy.ind.abc.com:8080; PROXY proxy.sgp.abc.com:8080"; 

4> go to Maven settings.xml and enter as:

<proxy>
      <id>optional</id>
      <active>true</active>
      <protocol>http</protocol>          
      <host>web-proxy.ind.abc.com</host>
      <port>8080</port>          
</proxy>

5> run mvn:install through command prompt or run through eclipse.

=====

Solution #3:

For any other issues delete maven local repository and run mvn:install again.

Tags:

Maven

Maven 2