Spring-Boot-Maven-Plugin 问题"could not transfer"

Spring-Boot-Maven-Plugin issue "could not transfer"

我的克隆项目有问题:

无法传输工件 org.springframework.boot:spring-boot-maven-plugin:pom:2.1.7.RELEASE from/to central (https://repo.maven.apache.org/maven2): Transfer failed for https://repo.maven.apache.org/maven2/org/springframework/boot/spring-boot-maven-plugin/2.1.7.RELEASE/spring-boot-maven-plugin-2.1.7.RELEASE.pom

这发生在我尝试在 IntelliJ 中清理构建我的 maven 项目时

听起来您的 settings.xml 中没有代理。查看 here 以了解有关如何设置的详细信息。

<proxies>
   <proxy>
      <id>example-proxy</id>
      <active>true</active>
      <protocol>http</protocol>
      <host>proxy.example.com</host>
      <port>8080</port>
      <username>proxyuser</username>
      <password>somepassword</password>
      <nonProxyHosts>www.google.com|*.example.com</nonProxyHosts>
    </proxy>
  </proxies>

您应该能够从浏览器设置中获取代理详细信息。