Mavenbug

https://zhuanlan.zhihu.com/p/468287984
重点是https://repo1.maven.org/maven2/要用https
从2020年1月15日开始,中央存储库不再支持通过纯HTTP进行的不安全通信,并且要求对存储库的所有请求都通过HTTPS进行加密。

如果收到此错误,则需要用其 规范的HTTPS对应项替换所有对Maven Central的URL引用:

将http://repo.maven.apache.org/maven2/替换 为 https://repo.maven.apache.org/maven2/

如果您的环境由于某种原因无法支持HTTPS,则可以选择使用我们专用的不安全端点 ,网址为 http://insecure.repo1.maven.org/maven2/

<mirror>
	<id>central</id>
	<name>Maven Repository Switchboard</name>
	<url>https://repo1.maven.org/maven2/</url>
	<mirrorOf>central</mirrorOf>
</mirror>
<mirror>
	<id>repo2</id>
	<mirrorOf>central</mirrorOf>
	<name>Human Readable Name for this Mirror.</name>
	<url>http://repo2.maven.org/maven2/</url>
</mirror>
<mirror>
	<id>ibiblio</id>
	<mirrorOf>central</mirrorOf>
	<name>Human Readable Name for this Mirror.</name>
	<url>http://mirrors.ibiblio.org/pub/mirrors/maven2/</url>
</mirror>
<mirror>
	<id>jboss-public-repository-group</id>
	<mirrorOf>central</mirrorOf>
	<name>JBoss Public Repository Group</name>
	<url>http://repository.jboss.org/nexus/content/groups/public</url>
</mirror>
<mirror>
	<id>google-maven-central</id>
	<name>Google Maven Central</name>
	<url>https://maven-central.storage.googleapis.com
	</url>
	<mirrorOf>central</mirrorOf>
</mirror>
<!-- 中央仓库在中国的镜像 -->
<mirror>
	<id>maven.net.cn</id>
	<name>oneof the central mirrors in china</name>
	<url>http://maven.net.cn/content/groups/public/</url>
	<mirrorOf>central</mirrorOf>
</mirror>
posted @   没有任何出路  阅读(26)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· 分享一个免费、快速、无限量使用的满血 DeepSeek R1 模型,支持深度思考和联网搜索!
· 基于 Docker 搭建 FRP 内网穿透开源项目(很简单哒)
· ollama系列01:轻松3步本地部署deepseek,普通电脑可用
· 25岁的心里话
· 按钮权限的设计及实现
历史上的今天:
2021-04-12 P、NP、NPC、NP-Hard
2021-04-12 启发式算法
点击右上角即可分享
微信分享提示