在EC2实例上从Maven中提取依赖关系时获取handshake_failure

时间:2016-10-20 21:09:30

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

这只发生在EC2实例上的ElasticSearch的第三方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"

1 个答案:

答案 0 :(得分:-1)

在尝试了一些事情之后,我发现问题是SSL,在这种情况下,我可以切换到使用非SSL端点来解决问题。

切换到使用

http://maven.elasticsearch.org/releases

而不是

https://maven.elasticsearch.org/releases