SrpingBoot, SpringCloud project import spring-boot-starter-amqp dependency download failed

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:

Insert picture description here

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
Insert picture description here

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.
Insert picture description here
code show as below

nexus-aliyun Maven Nexus aliyun https://maven.aliyun.com/repository/public

Guess you like

Origin blog.csdn.net/u013456390/article/details/109428974
Recommended