Maven not downloading jars behind proxy

前端 未结 2 1374
太阳男子
太阳男子 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:18
    • I have encountered the same problem.
    • And I turned back to older versions of maven which is 3.1.0.
    • I was trying to use a http proxy to get reached to maven https repository.

      Here, there is a issue for newer versions in maven's jira.
      https://issues.apache.org/jira/browse/PROXY-27

    0 讨论(0)
  • 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

    0 讨论(0)
提交回复
热议问题