Maven没有下载代理后面的jar子

Maven无法在代理后面下载jar(s)(Dependency)。

这是我的pom.xml

  4.0.0 com.faizan.firstbootapp.group1 com-faizan-firstbootapp-group-1 0.0.1-SNAPSHOT jar FirstBootApp Test app for Maven build system  org.springframework.boot spring-boot-starter-parent 2.0.2.RELEASE     UTF-8 UTF-8 1.8    org.springframework.boot spring-boot-starter-web   com.h2database h2 runtime   org.springframework.boot spring-boot-starter-test test   org.springframework.boot spring-boot-starter-tomcat   org.apache.tomcat.embed tomcat-embed-jasper   javax.servlet jstl   org.springframework.boot spring-boot-starter-thymeleaf      org.springframework.boot spring-boot-maven-plugin     

这是路径C:\Users\faizanmubasher\.m2\settings.xml 。 我在其中添加了代理。

    skm--http-proxy true http my.proxy.ip.here 8080 faizanmubasher *****   skm--https-proxy true https my.proxy.ip.here 8080 faizanmubasher *****    

用户名和密码是正确的。

是因为我办公室的代理不允许下载jar,还是我需要配置一些Maven设置?

我在STS IDE上遇到此错误。

 The container 'Maven Dependencies' references non existing library 'C:\Users\faizanmubasher\.m2\repository\org\springframework\boot\spring-boot-autoconfigure\2.0.2.RELEASE\spring-boot-autoconfigure-2.0.2.RELEASE.jar' FirstBootApp Build path Build Path Problem 

我的Maven版本是Apache Maven 3.5.3。

编辑

命令set MAVEN_OPTS="-DhttpProxyHost=xxx.xx.xx.xx -DsocksProxyPort=8080"也不起作用。

尝试这个,如果1不起作用尝试2,然后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. 

您可以使用以下命令测试maven到maven central repo连接:

 mvn archetype:generate 

你应该看到超过2000个原型返回