Could not transfer artifact org.springframework.boot:spring-boot-starter-parent:pom:1.5.21.RELEA错误解决

在使用SpringBoot项目时报错Could not transfer artifact org.springframework.boot:spring-boot-starter-parent:pom:1.5.21.RELEASE from/to default from/to default (http://maven.aliyun.com/nexus/content/groups/public): Access denied to: http://maven.aliyun.com/nexus/content/groups/public/org/springframework/boot/spring-boot-starter-parent/1.5.21.RELEASE/spring-boot-starter-parent-1.5.21.RELEASE.pom , ReasonPhrase:Forbidden. and 'parent.relativePath' points at no local POM @ line 5, column 13

报错截图

报错意思是无法去仓库http://maven.aliyun.com/nexus/content/groups/public下载spring-boot-starter-parent:pom:1.5.21.RELEASEjar包。

解决思路1:换本地maven仓库地址,有可能新导入项目或新建项目导致maven设置setting文件为自带,及仓库为.m仓库。换为自安装的maven setting和仓库。

结果:失败。结果分析:下载出错,跟换仓库没关。

解决思路2:换镜像地址,网上大多这种解决方法,换个地方下载jar包

结果:失败。结果分析:多个镜像也下载失败,跟镜像没关,远程仓库肯定不缺这种springboot必须的jar包。

解决思路3:换jar包版本

结果:失败。结果分析:跟版本没关,springboot必须包,远程仓库肯定有

解决思路4:删除代理。

结果:成功。结果分析:下载失败,跟网络有关,太久没动setting文件,没想到设置了代理,导致联网下载出错。

把设置的代理注解掉即可成功下载jar包。

  • 15
    点赞
  • 16
    收藏
    觉得还不错? 一键收藏
  • 36
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 36
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值