![](/img/trans.png)
[英]Unsupported class file major version 55 when executing sonar-maven-plugin under openjdk11
[英]Confluent Maven repository not working with OpenJDK11
我使用 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_HOME/lib/security/java.security 中添加以下行來修復它
jdk.tls.client.protocols=TLSv1,TLSv1.1,TLSv1.2
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.