Could not transfer artifact XXX:XXX:pom:XX from/to镜像地址
Could not transfer artifact XXX:XXX:pom:XX from/to镜像地址
记录一次非网络问题导致的下载依赖失败的过程,首先报错信息是这样的
Could not transfer artifact org.springframework.boot:spring-boot-starter-parent:pom:2.4.1 from/to alimaven (http://maven.aliyun.com/nexus/content/groups/public/): C:\Program Files\maven\repository\org\springframework\boot\spring-boot-starter-parent\2.4.1\spring-boot-starter-parent-2.4.1.pom.part.lock (系统找不到指定的路径。)
其实人都是有惯性思维的,比如遇到这种情况,下意识的会想到也许是国内镜像没有这个依赖,因为使用国外源镜像都是可以的。
于是我更换了比较旧的spring boot的源,换到2.1.1 但还是报上图中类似的问题。那么这就不是依赖更新快慢的问题了。
然后我以为是maven3.8.1的问题,因为这个maven版本2021年刚出来,会不会不太稳定,于是我又下回了老版本maven3.6.3 .插句题外话,你直接去找1这里是不对的,应该找2这里,2这边才有过去的老版本。
下载下3.6.3之后还是没有用,这时候,我进行百度,看到有老哥说在setting -> maven ->runner 下面写一下配置“-Dmaven.wagon.http.ssl.insecure=true -Dmaven.wagon.http.ssl.allowall=true”,可以跳过校验啥的,也许是这个问题,于是我也试试。
但还是无用,这就说明我这个问题其实有可能不是什么技术行的问题,后来我鬼使神差的,将这个仓库路径给换了。
因为我觉得有可能是因为Program Files中间带着空格的缘故,并且我还换成D盘不在C盘,于是问题解决了。。。
总结
感觉有时候不要将一些特殊的东西放在C盘,文件夹名不要带空格,这种就和你的用户名不要是中文是一样的,因为有时候你也不知道你会遇到什么奇葩的错误。。。
Could not transfer artifact XXX:XXX:pom:XX from/to镜像地址相关推荐
- maven 爆红,Could not transfer artifact xxx错误解决
项目构建时maven爆红,出现Could not transfer artifact xxx错误 解决过程: 1. 确定项目的maven 配置是否正确 目录:IEDA=>preference=& ...
- Maven导入依赖时出现大片的爆红,出现Cannot resolve xxx…,以及Could not transfer artifact xxx错误
Maven依赖无法导入 导入依赖时出现大片的爆红,出现Cannot resolve xxx-,以及Could not transfer artifact xxx错误 1.检查maven设置是否正确 黄 ...
- Could not transfer artifact xxx from/to maven-default-http-blocker (http://0.0.0.0/)
maven构建项目的时候遇到了Could not transfer artifact xxxxxx:pom:1.1-SNAPSHOT from/to maven-default-http-blocke ...
- Maven: Could not transfer artifact xxx from/to xxx
1.美图 2.背景 遇到这个问题 Could not transfer artifact xxx from/to xxx 暂时还没解决,解决后,会补上
- 解决Maven打包报错Could not transfer artifact xxx.xxx找不到依赖的问题
概述 maven打包时,遇到奇怪的问题,setting文件指定了远程中央仓库为http://maven.aliyun.com/nexus/content/groups/public,正常情况下,仅当本 ...
- 轻松解决IDEA2020“Could not transfer artifact org.springframework.boot:spring-boot-starter-parent:pom:xx“
在项目开发中,遇到了Could not transfer artifact org.springframework.boot:spring-boot-starter-parent:pom:2.1.8. ...
- Could not transfer artifact xx maven-default-http-blocker (http://0.0.0.0/): Blocked mirror for repo
本人启动新安装idea后,下载代码仓库执行maven install时,控制台报错如下: Could not transfer artifact com.xx.media:common:pom:1.1 ...
- Python练习题:---给定一个字符串 {xxx[xxx{xxx}]xx{x[xxx]xxx{xxx}xx}x} 判断其中的 {}[]() 是否成对出现
给定一个字符串 {xxx[xxx{xxx}]xx{x[xxx]xxx{xxx}xx}x} 判断其中的 {} 是否成对出现 答题思路: 使用堆栈进行解决 我们首先压栈一个左括号,当什么时候检测到与之对应 ...
- 重新编译CDH版本hadoop报错:Non-resolvable parent POM: Could not transfer artifact com.
重新编译CDH版本hadoop报错: Could not transfer artifact com.cloudera.cdh:cdh-root:pom:5.14.0 from/to cdh.repo ...
最新文章
- JavaScript中整型数据使用
- 借助 IIS 管理器 -- 用手机测试HTML页面
- 亿级用户下的新浪微博平台架构阅读心得
- 大数据盘点00后求职选择,过半职场新人会因工作太简单辞职?
- bean定义的继承 - Spring Framework reference 2.0.5 参考手册中文版
- 快速理解binary cross entropy 二元交叉熵
- 招银网络笔试java_春招|招银网络Java软件开发 电话面试+一二三面面经
- LeetCode训练
- 【ZOJ - 4024】Peak(模拟,水题)
- (11)Zynq SPI控制器介绍
- 组策略批量更改固定IP为自动获取
- linux配置java环境变量(详细)(转)
- 神州十三号就位,小火箭先去探探路
- html显示tif图片,呈现HTML中的TIF文件
- 计算机开机桌面黑,电脑能正常启动但屏幕全黑原因和解决方法
- 高颜值生物信息在线绘图工具
- 入门企业品牌短视频运营
- 尚硅谷--Linux篇
- CoverageMaster winAMS
- 几款不错的Android开源APP效果展示(附源码地址)