转载

IDEA Could not transfer artifact xxx from/to xxx 解决方案

温馨提示:
本文最后更新于 2019年12月24日,已超过 1,586 天没有更新。若文章内的图片失效(无法正常加载),请留言反馈或直接联系我

本地仓库有对应的jar包,但是maven install 一直提示 Could not transfer artifact。折腾了我老半天

Failed to read artifact descriptor for : Could not transfer artifact from/to central (https://repo.maven.apache.org/maven2): Received fatal alert: protocol_version -> [Help 1]
1

解决步骤
找到本地仓库对应的问题jar包 后里面一个 _remote.repositories 文件;

打开这个文件 把 public= 改成 central=, ps: nexus 表示为私服,central表示为中央仓库

此时可以重新编译,如果还是报 Could not transfer artifact ,不要方,你可以再尝试把对应jar包目录中 .lastUpdated结尾的文件给干掉,这个时候就好了。
————————————————

原文链接:https://blog.csdn.net/Jamel_LiToo/article/details/83933060

正文到此结束
本文目录