前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >couldn’t transfer artifact_could not convert from to

couldn’t transfer artifact_could not convert from to

作者头像
全栈程序员站长
发布2022-09-23 10:55:40
5770
发布2022-09-23 10:55:40
举报
文章被收录于专栏:全栈程序员必看

大家好,又见面了,我是你们的朋友全栈君。

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

问题描述

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

代码语言:javascript
复制
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]
couldn't transfer artifact_could not convert from to
couldn't transfer artifact_could not convert from to

解决步骤

  1. 找到本地仓库对应的问题jar包 后里面一个 _remote.repositories 文件;
在这里插入图片描述
在这里插入图片描述
  1. 打开这个文件 把 public= 改成 central=ps: nexus 表示为私服,central表示为中央仓库
在这里插入图片描述
在这里插入图片描述
  1. 此时可以重新编译,如果还是报 Could not transfer artifact ,不要方,你可以再尝试把对应jar包目录中 .lastUpdated结尾的文件给干掉,这个时候就好了。

希望这个解决方案可以帮助大家,谢谢

发布者:全栈程序员栈长,转载请注明出处:https://javaforall.cn/172139.html原文链接:https://javaforall.cn

本文参与 腾讯云自媒体同步曝光计划,分享自作者个人站点/博客。
如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体同步曝光计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
目录
  • Could not transfer artifact xxx from/to xxx解决方案
  • 问题描述
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档