Java 从EC2实例上的Maven中提取依赖项时获取握手_失败
这只发生在EC2实例上用于ElasticSearch的第三方Maven存储库中。它在当地运作良好 这是配置问题吗Java 从EC2实例上的Maven中提取依赖项时获取握手_失败,java,maven,
elasticsearch,amazon-ec2,maven-3,Java,Maven,
elasticsearch,Amazon Ec2,Maven 3,这只发生在EC2实例上用于ElasticSearch的第三方Maven存储库中。它在当地运作良好 这是配置问题吗 [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:
[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"
在尝试了一些东西之后,我发现问题出在SSL上,对于这种情况,我可以转而使用非SSL端点来解决问题 改用 而不是
使用HTTPS是有原因的。这不应该是一个可接受的问题解决方案。