栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 软件开发 > 后端开发 > Java

使用IDEA配置SpringBoot项目报错Failure to transfer org.springframework.boot:spring-boot-starter-parent:pom:2

Java 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

使用IDEA配置SpringBoot项目报错Failure to transfer org.springframework.boot:spring-boot-starter-parent:pom:2

在IDEA中新建一个SpringBoot项目时报错

Failure to transfer org.springframework.boot:spring-boot-starter-parent:pom:2.6.7 from https://maven.aliyun.com/nexus/content/repositories/central/ was cached in the local repository, resolution will not be reattempted until the update interval of alimaven has elapsed or updates are forced. Original error: Could not transfer artifact org.springframework.boot:spring-boot-starter-parent:pom:2.6.7 from/to alimaven (https://maven.aliyun.com/nexus/content/repositories/central/): java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty

网上查,试过了在Maven的setting.xml中注释掉镜像-----未解决
也能够进入阿里云仓库,网络正常
也忽略了证书验证打包

然后看了下上面报错的内容
其中有was cached in the local repository,猜想可能是因为之前使用过2.3.4,导致org.springframework.boot包下已有文件
于是删除org.springframework.boot下的所有文件,再重新加载Maven项目就解决了

转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/838836.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号