maven打包报错Received fatal alert protocol_version

StoneLee 发布于 文章字数: 116 阅读次数:

maven的中央仓库下载pom文件失败,报错行最后的信息是:

Could not transfer artifact (https://repo.maven.apache.org/maven2): Received fatal alert: protocol_version -> [Help 1]

由于TLSv1.1 协议不安全, 出于PCI 安全标准的原因, 从2018-06-18起, maven Sonatype 中央仓库不再支持 TLSv1.1;必须要TLS1.2版本才能访问,解决方法是将jdk版本升级到jdk1.8,因为在1.8及以上版本,才会默认使用TLS1.2。