问题截图:

问题描述:

org.springframework.boot:spring-boot-starter-parent:pom:2.6.3 failed to transfer from http://repo.xxx.net/repository/sc-maven-public during a previous attempt. This failure was cached in the local repository and resolution is not reattempted until the update interval of bda-repo has elapsed or updates are forced. Original error: Could not transfer artifact org.springframework.boot:spring-boot-starter-parent:pom:2.6.3 from/to bda-repo (http://repo.xxx.net/repository/sc-maven-public): transfer failed for http://repo.xxx.net/repository/sc-maven-public/org/springframework/boot/spring-boot-starter-parent/2.6.3/spring-boot-starter-parent-2.6.3.pom

Try to run Maven import with -U flag (force update snapshots)

分析:

1、依赖出现问题,无法下载,不存在依赖

2、观察发现下载仓库地址比较熟悉,并不是公共依赖仓库

解决:

1、修改maven依赖仓库地址为阿里数据源或者公司的仓库地址

2、相关maven配置settings.xml文件可,点击查看获取