SrpingBoot, SpringCloud project import spring-boot-starter-amqp dependency download failed
Project scene:
SrpingBoot, SpringCloud project import spring-boot-starter-amqp dependency download failed
The maven code is as follows:
<!--amqp-->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-amqp</artifactId>
</dependency>
Problem Description:
Cause Analysis:
The maven in my project is configured with Alibaba Cloud warehouse, but the springcloud jar package in the Alibaba Cloud warehouse is incomplete and needs to be changed to a foreign download address.
solution:
1. Find the settings.xml file of Maven
2. Modify the label in the label in the file. The value of this label can be *, central, Maven. *It means to download only at this mirror address. If it cannot be downloaded normally, you can modify the label to central or Maven.
code show as below