部署SpringBoot,报错Could not transfer artifact org.springframework.boot解决方案
在部署SpringBoot项目时,需要导入SpringBoot外部依赖,如druid、mybatis,显示Could not transfer artifact org.springframework.boot…错误,如下图:显示无法链接到aliyun的maven仓库!打开maven的settings.xml文件,发现配置了两个aliyun镜像:<mirror><id>al
·
在部署SpringBoot项目时,需要导入SpringBoot外部依赖,如druid、mybatis,显示Could not transfer artifact org.springframework.boot…错误,如下图:
显示无法链接到aliyun的maven仓库!
打开maven的settings.xml文件,发现配置了两个aliyun镜像:
<mirror>
<id>alimaven</id>
<name>aliyun maven</name>
<url>http://central.maven.org/maven2</url>
<mirrorOf>central</mirrorOf>
</mirror>
<mirror>
<id>aliyun</id>
<mirrorOf>central</mirrorOf>
<name>Nexus aliyun</name>
<url>http://maven.aliyun.com/nexus/content/groups/public/</url>
</mirror>
将这两个镜像删掉,重新设置一个镜像就解决问题了!
<mirror>
<id>nexus-aliyun</id>
<mirrorOf>central</mirrorOf>
<name>Nexus aliyun</name>
<url>https://maven.aliyun.com/nexus/content/groups/public</url>
</mirror>
更多推荐
已为社区贡献1条内容
所有评论(0)