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

后端 未结 9 767
栀梦
栀梦 2020-12-13 18:09

I am new to Maven and trying to setup my first project in Maven but receiving the below error message when I am doing \" Run as -> Maven install \" in Eclipse. Below is my s

9条回答
  •  無奈伤痛
    2020-12-13 18:40

    Sonatype no longer supports TLSv1.1 and below (effective, June 18th, 2018). My guess is that you are using TLSv1.1 protocol or below.

    The documentation I listed gives you 4 options:

    1. Upgrade your Java runtime, for example with OpenJDK builds or Oracle paying support
    2. Configure your Java runtime to enable TLS 1.2 by adding -Dhttps.protocols=TLSv1.2
    3. Use a repository manager that uses a Java version supporting TLS 1.2
    4. Revert back to http until you can acheive one of the above remediation steps.

    I fixed it myself by just using -Dhttps.protocols=TLSv1.2 as a VM argument.  

提交回复
热议问题