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:
PS: There are problems in time to ask seniors or colleagues, to avoid wasting time hhhh own Scrapped