【问题标题】:Confluent Maven repository not working with OpenJDK11Confluent Maven 存储库不适用于 OpenJDK11
【发布时间】:2022-06-22 17:42:26
【问题描述】:

我使用 OpenJDK11 运行 Gradle 构建,尝试获取 kafka-client 和其他包,但由于与 TLS 相关的握手错误而失败。错误如下所示:

Could not download kafka-clients-6.2.0-ccs.jar (org.apache.kafka:kafka-clients:6.2.0-ccs)

Could not get resource 'https://packages.confluent.io/maven/org/apache/kafka/kafka-clients/6.2.0-ccs/kafka-clients-6.2.0-ccs.jar'.

Could not GET 'https://packages.confluent.io/maven/org/apache/kafka/kafka-clients/6.2.0-ccs/kafka-clients-6.2.0-ccs.jar'.

The server may not support the client's requested TLS protocol versions: (TLSv1.2, TLSv1.3). 

You may need to configure the client to allow other protocols to be used. See: https://docs.gradle.org/6.8.3/userguide/build_environment.html#gradle_system_properties
Received fatal alert: handshake_failure

JDK 是 OpenJDK-11。

【问题讨论】:

    标签: java maven gradle apache-kafka confluent-platform


    【解决方案1】:

    我通过在 $JAVA_HOME/lib/security/java.security 中添加以下行来修复它

    jdk.tls.client.protocols=TLSv1,TLSv1.1,TLSv1.2

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2021-08-11
      • 2015-03-28
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-11-07
      相关资源
      最近更新 更多