Download Maven relies stepped pit: Could not transfer artifact org.springframework.boot: spring-boot-starter-parent

Environment: IDEA, the company office environment
article applies only to enable the proxy service on networking! In this case non-friends also please find another reason.

After creating a project spring-boot-starter-parent and other dependent marked red, because the corresponding dependence can not find, download Times error:
Could not Transfer artifact org.springframework.boot: spring-boot-starter-parent: POM: 2.0.4 .RELEASE from / to nexus-aliyun
or
Connection timed out
after adding Ali cloud images still can not download the maven settings.xml file.

Solution: Add the proxy settings in the settings.xml file:

    <proxy>
      <id>optional</id>
      <active>true</active>
      <protocol>http</protocol>
      <username>proxyuser</username>
      <password>proxypass</password>
      <host>proxy.host.net</host>
      <port>80</port>
      <nonProxyHosts>local.net|some.host.com</nonProxyHosts>
    </proxy>
    -->

The account password, port information for their respective configuration can be modified in the company.
Finally downloaded:
Here Insert Picture Description

PS: There are problems in time to ask seniors or colleagues, to avoid wasting time hhhh own Scrapped

Published 143 original articles · won praise 45 · views 70000 +

Guess you like

Origin blog.csdn.net/z714405489/article/details/98728736