Maven致命警报:protocol_version [英] Maven Fatal alert: protocol_version
问题描述
我对Maven有问题.我用作环境
I have a problem with Maven. I use as environment
-
Windows 10
Windows 10
Java SE JDK版本8更新80
Java SE JDK Version 8 update 80
带有M2Eclipse的Eclipse Mars 2
Eclipse Mars 2 with M2Eclipse
Maven 3.5.4
Maven 3.5.4
我尝试使用两者中的任何一个,但是出现protocol_version错误. 在Java应用程序中启用TLS 1.2.但这是行不通的.
I try to use any of the two but the protocol_version error arises. enable TLS 1.2 in the java application. But it does not work.
我正在查看此解决方案:
I was looking at this solution:
但是我不明白如何添加-Dhttps.protocols = TLSv1.2.没有它在哪里.
but I do not understand how to make the addition of -Dhttps.protocols = TLSv1.2. no where is it made.
非常感谢您的时间,对不起,我的英语
thank you very much for your time, excuse my english
推荐答案
但是我不明白如何添加-Dhttps.protocols = TLSv1.2.不,它在哪里
but I do not understand how to make the addition of -Dhttps.protocols = TLSv1.2. no where is it made
这取决于您如何构建应用程序.
This depends on how you're building your Application.
A :如果要使用Eclipse Run按钮进行构建,则必须编辑(Maven构建的)Run Configuration,如下所示.
(nb.您将不会在此处输入-D
)
A : if you're building with Eclipse Run button, you'll have to edit Run Configuration (of maven build) as shown below.
(nb. you will NOT enter -D
here)
B : If you're running build command line on your windows console, you can run argument right after your maven build goals
mvn clean install -Dhttps.protocols = TLSv1.2
有关更多详细信息,请参见此链接 Maven构建的命令行参数
See this link for more details on Command line arguments for maven build
这篇关于Maven致命警报:protocol_version的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!