cristian dalmasso
cristian dalmasso

Reputation: 33

Maven Fatal alert: protocol_version

I have a problem with Maven. I use as environment

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

Upvotes: 1

Views: 11593

Answers (2)

Milan Desai
Milan Desai

Reputation: 1306

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

Upvotes: 1

Vũ Liêm
Vũ Liêm

Reputation: 66

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.

Upvotes: 4

Related Questions