maven in 5 min not working

前端 未结 7 1048
花落未央
花落未央 2020-12-01 06:47

I have downloaded latest

maven 3.0.3, java version \"1.6.0_18\".

mvn –version

Apache Maven 3.0.3 (r1075438;          


        
7条回答
  •  时光说笑
    2020-12-01 07:11

    Found solution:

    Solution #1:

    issue was with proxy in settings.xml file:

    webproxy
    

    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:

    
          optional
          true
          http          
          web-proxy.ind.abc.com
          8080          
    
    

    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.

提交回复
热议问题