【问题标题】:Getting handshake_failure when pulling dependencies from Maven on EC2 Instance从 EC2 实例上的 Maven 拉取依赖项时获取 handshake_failure
【发布时间】:2016-10-20 21:09:29
【问题描述】:

这仅发生在 EC2 实例上的 ElasticSearch 的第 3 方 Maven 存储库中。它在本地运行良好。

https://maven.elasticsearch.org/releases

是配置问题吗?

[ERROR] Failed to execute goal on project system-s: Could not resolve 
dependencies for project com.7leaf:system-s:jar:0.0.1: Failed to collect 
dependencies at org.elasticsearch.plugin:shield:jar:2.4.1: Failed to read 
artifact descriptor for org.elasticsearch.plugin:shield:jar:2.4.1: Could not 
transfer artifact org.elasticsearch.plugin:shield:pom:2.4.1 from/to es-repo 
(https://maven.elasticsearch.org/releases): Received fatal alert: 
handshake_failure -> [Help 1]

这是服务器上的 Maven 和 Java 版本。

Apache Maven 3.3.9 (bb52d8502b132ec0a5a3f4c09453c07478323dc5; 2015-11-10T16:41:47+00:00)
Maven home: /usr/share/apache-maven
Java version: 1.8.0_101, vendor: Oracle Corporation
Java home: /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.101-3.b13.24.amzn1.x86_64/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "4.4.23-31.51.amzn1.x86_64", arch: "amd64", family: "unix"

【问题讨论】:

    标签: java maven elasticsearch amazon-ec2 maven-3


    【解决方案1】:

    在尝试了几件事后,我发现问题出在 SSL 上,对于这种情况,我可以改用非 SSL 端点来解决问题。

    切换使用

    http://maven.elasticsearch.org/releases

    而不是

    https://maven.elasticsearch.org/releases

    【讨论】:

    • HTTPS 的使用是有原因的。这不应该是一个可接受的问题解决方法。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2012-03-30
    • 1970-01-01
    • 2011-09-01
    • 1970-01-01
    • 2022-07-08
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多