我使用 spring 启动器在STS 3.8.3中创建了一个新的空Spring Boot 1.5.1项目 . 但我无法编译它,因为我无法拉动spring-boot-starter-parent . 我收到的是:

项目构建错误:foobar的不可解析的父POM:0.0.1-SNAPSHOT:无法从https:// repo传输org.springframework.boot:spring-boot-starter-parent:pom:1.5.1.RELEASE . maven.apache.org/maven2缓存在本地存储库中,在中心的更新间隔过去或强制更新之前,不会重新尝试解析 . 原始错误:无法传输工件org.springframework.boot:spring-boot-starter-parent:pom:1.5.1.RELEASE from / to central(https://repo.maven.apache.org/ maven2):连接时间out和'parent.relativePath'指向没有本地POM

我的PC是我在用户特定的settings.xml中配置的公司代理的后面,它只包含代理设置和我的仓库的路径,仅此而已 . 通常这个代理工作没有任何问题 .

<?xml version="1.0"?>
<settings>
  <pluginGroups>
    <pluginGroup>com.atlassian.maven.plugins</pluginGroup>
  </pluginGroups>
  <localRepository>C:\Data\Maven\Repo</localRepository>
  <!-- Proxy settings for access to the central repository -->
  <proxies>
    <proxy>
      <active>true</active>
      <protocol>http</protocol>
      <host>wonttell</host>
      <port>8118</port>
      <nonProxyHosts>*.company|localhost</nonProxyHosts>
    </proxy>
  </proxies>
</settings>

从Maven控制台我可以看到该文件已被传输:

格林威治标准时间2:15/17,晚上8:03:23:[信息]已下载https://repo.maven.apache.org/maven2/org/springframework/boot/spring-boot-starter-parent/1.5 . 1.RELEASE / spring-boot-starter-parent-1.5.1.RELEASE.pom 2/15 / 17,8:03:23 GMT 1:[INFO]更新完成:10秒

当我使用相同的代理卷曲pom时,这有效:
enter image description here
运行 Project / Clean ...Maven / Update project 没有帮助 . 我还安装了一个独立的maven 3.3.9以及与STS一起打包的版本,并配置了STS来使用它 . 我斗智斗勇......