Maven not downloading jars behind proxy

前端 未结 2 1404
太阳男子
太阳男子 2021-01-22 15:05

Maven is unable to download jar (s) (Dependency) behind proxy.

Here is my pom.xml




        
2条回答
  •  轮回少年
    2021-01-22 15:31

    Try this, if 1 does not work try 2, then 3:

    1) First update the project, Alt-F5
    
    2) Then go to your repo and blow away the directory for that dependency which should be in the directory C:\Users\faizanmubasher.m2\repository\org\springframework\boot\spring-boot-autoconfigure\2.0.2.RELEASE Then do an Alt-F5 again.
    
    3) If this fails try a mvn clean install -U from the command line.
    

    You can test your maven to maven central repo connectivity with the following command:

    mvn archetype:generate
    

    You should see over 2000 archetypes returned

提交回复
热议问题