当前位置: 首页 > news >正文

无法访问 Maven 3.8.1 http 仓库

无法访问 Maven 3.8.1 http 仓库

报错内容:

org.springframework.boot:spring-boot-starter-parent:pom:1.5.7.RELEASE failed to transfer from http://maven.aliyun.com/nexus/content/groups/public/ during a previous attempt. This failure was cached in the local repository and resolution is not 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:1.5.7.RELEASE from/to alimaven (http://maven.aliyun.com/nexus/content/groups/public/): Blocked mirror for repositories: [central (https://repo.maven.apache.org/maven2, default, releases)]

无法访问 Maven 3.8.1 http 仓库。

可能的解决方案:
- 检查 Maven settings.xml 是否不包含 http 仓库
- 检查 Maven pom 文件是否不包含 http 仓库 http://maven.aliyun.com/nexus/content/groups/public/
- 检查 Maven pom 文件是否不包含 http 仓库 http://maven.aliyun.com/nexus/content/groups/public/
- 检查 Maven pom 文件是否不包含 http 仓库 https://repo.maven.apache.org/maven2
- 在 Maven settings.xml 中为 http://maven.aliyun.com/nexus/content/groups/public/, http://maven.aliyun.com/nexus/content/groups/public/, https://repo.maven.apache.org/maven2 添加允许 http url 的镜像
- 在设置中将 Maven 降级到 3.8.1 或更早的版本

 

解决:

参考路径:https://blog.csdn.net/m0_56088675/article/details/145594636

这个问题可能与 Maven 3.8.1 不允许使用非安全的 http 仓库有关。以下是解决方法的详细步骤:

1、修改Maven settings.xml

原值:

<mirror>
<id>alimaven</id>
<name>aliyun maven</name>
<url>http://maven.aliyun.com/nexus/content/groups/public/</url>
<mirrorOf>central</mirrorOf>
</mirror>

修改为:

<mirror>
<id>alimaven</id>
<mirrorOf>*</mirrorOf>
<url>https://maven.aliyun.com/repository/public</url>
</mirror>

然后运行命令:mvn clean install -U

但是又报错有个gexip的包下载不下来

Maven settings.xml又还原为

原值:

<mirror>
<id>alimaven</id>
<name>aliyun maven</name>
<url>https://maven.aliyun.com/nexus/content/groups/public/</url>
<mirrorOf>central</mirrorOf>
</mirror>

然后刷新maven 就全部下载下来了

运行项目

http://www.sczhlp.com/news/6484/

相关文章:

  • 研发场景题
  • 漏洞挖掘-01
  • 微信扫描二维码登录的跳转重定向被浏览器阻止
  • 免费的个人网站托管-InfinityFree
  • 论保护电脑隐私的重要性
  • 详细介绍:C++高频知识点(十四)
  • Awaken Your Web 创新挑战赛
  • 基于若依框架二次开发
  • Windows报错:请求列出指定服务器上的可用功能失败问题处理
  • 模型和模型量化,模型量化后损失了什么
  • 服务器侧简单测试大模型问答实现
  • 【补题计划】 [BJOI2014] 大融合
  • [KAFKA] KAFKA消费者自动提交机制
  • 剑指offer-19、顺时针打印矩阵
  • CyberTalents蓝队奖学金CTF题解:从数字取证到网络安全的实战技巧
  • 大语言模型幻觉检测新工具与数据集
  • vue3之子组件调用父组件异步请求,完了之后再同步执行下文
  • glTF-教程/glb-教程
  • 我最喜欢的 C# 14 新特性
  • X11 使用 XSetWMNormalHints 固定窗口所在的屏幕
  • Claude Code:AI编程的深度体验与实践
  • Chrome浏览器无法查看页面跳转前的请求日志及解决办法
  • C# UI中使用async与await防止线程阻塞的一个例子
  • 【办公自动化】日常工作中如何使用Python自动化整理文件?
  • Ubuntu24做内网apt源
  • uniapp 页面左上角系统自带的返回箭头消失
  • 国家科学技术奖答辩PPT案例_科技进步奖ppt制作_科技发明奖ppt设计美化_自然科学奖ppt模板 | WordinPPT
  • 2025 贵阳 代码源 Day 16 模拟赛
  • 跨相机深度估计知识迁移技术解析
  • 运筹学的工具箱属性:基于模型化的优化方法集成