首页 > Web开发 > 详细

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

时间:2018-07-06 17:25:58      阅读:190      评论:0      收藏:0      [点我收藏+]
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

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!