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

后端 未结 9 764
栀梦
栀梦 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:44

    In my case the automatic update of maven dependencies were disabled in eclipse.
    Solution:
    Go to Windows->Preferences->Maven
    and uncheck the check box

    "Do not automatically update dependencies from remote repositories"

    Then update the project
    Right click on project->maven->update project

    0 讨论(0)
  • 2020-12-13 18:46

    I resolved this error in SpringToolSuit by adding settings.xml file in .m2 folder which is located in Users folder of C drive and by updating Project by right click on pom.xml -> Maeven -> Update Project.

    Make sure you select Force update of snapshots/releases.

    0 讨论(0)
  • 2020-12-13 18:50

    I had upgraded from Java 1.7 to Java 1.8 and got the same error. To resolve this error, I checked the mvn version using mvn -version and found that JAVA_HOME was still using the Java 1.7. I changed the JAVA_HOME in the environment variable to point to Java 1.8 jre in JDK

    Hope this helps someone.

    0 讨论(0)
提交回复
热议问题