分享web开发知识

注册/登录|最近发布|今日推荐

主页 IT知识网页技术软件开发前端开发代码编程运营维护技术分享教程案例
当前位置:首页 > IT知识

在默认使用apache中央仓库时, 报错 ??????protocol_version

发布时间:2023-09-06 01:26责任编辑:董明明关键词:apache
https://cloud.tencent.com/developer/ask/136221/answer/241408
2018年6月,为了提高安全性和符合现代标准,不安全的TLS 1.0和1.1协议将不再支持SSL连接到Central。这只会影响Java 6的用户,这些用户也在使用https访问中央,根据我们的标准,中央用户不到2%。
有关更多细节和解决方法,请参见博客和常见问题解答:https://blog.sonatype.com/enhancing-ssl-security-and-http/2-support-for-central
解决办法
maven的setting.xml设置为阿里云私服
 
<mirrors>
<!-- mirror
| Specifies a repository mirror site to use instead of a given repository. The repository that
| this mirror serves has an ID that matches the mirrorOf element of this mirror. IDs are used
| for inheritance and direct lookup purposes, and must be unique across the set of mirrors.
|
<mirror>
<id>mirrorId</id>
<mirrorOf>repositoryId</mirrorOf>
<name>Human Readable Name for this Mirror.</name>
<url>http://my.repository.com/repo/path</url>
</mirror>
-->
<mirror>
<id>nexus-aliyun</id>
<mirrorOf>*</mirrorOf>
<name>Nexus aliyun</name>
<url>http://maven.aliyun.com/nexus/content/groups/public</url>
</mirror>
</mirrors>
然后就ok了

在默认使用apache中央仓库时, 报错 ??????protocol_version

原文地址:https://www.cnblogs.com/kaffeetrinken/p/9274570.html

知识推荐

我的编程学习网——分享web前端后端开发技术知识。 垃圾信息处理邮箱 tousu563@163.com 网站地图
icp备案号 闽ICP备2023006418号-8 不良信息举报平台 互联网安全管理备案 Copyright 2023 www.wodecom.cn All Rights Reserved