1

I have a problem with Maven. I use as environment

  • Windows 10

  • Java SE JDK Version 8 update 80

  • Eclipse Mars 2 with M2Eclipse

  • Maven 3.5.4

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:

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

2 Answers2

4

I followed this post and the issue was solved. You should try to add the parameter "-Dhttps.protocols=TLSv1.2" in your command and try.

Vũ Liêm
  • 66
  • 2
1

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 : 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)

enter image description 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

See this link for more details on Command line arguments for maven build

Milan Desai
  • 1,228
  • 8
  • 23