Open moritzvieli opened 2 years ago
It seems to be a dependency conflict between schema-registry-serde and aws-msk-iam-auth. Which versions would be compatible? I tried different versions and even added software.amazon.awssdk.utils manually but each version throws a different NoSuchFieldError, NoSuchMethodError or ClassNotFoundException.
Similar issue reported here: https://github.com/aws/aws-msk-iam-auth/issues/62
As those two dependencies are often used together, I guess, there should be an officially supported configuration.
This workaround helps:
<dependencyManagement>
<dependencies>
<dependency>
<groupId>software.amazon.awssdk</groupId>
<artifactId>utils</artifactId>
<version>2.17.252</version>
</dependency>
<dependency>
<groupId>software.amazon.awssdk</groupId>
<artifactId>aws-java-sdk-sts</artifactId>
<version>1.11.986</version>
</dependency>
<dependency>
<groupId>software.amazon.awssdk</groupId>
<artifactId>sts</artifactId>
<version>2.17.192</version>
</dependency>
</dependencies>
</dependencyManagement>
you can exclude the awssdk util dependency from aws-msk-iam-auth dependency, just like this
software.amazon.msk aws-msk-iam-auth 1.1.4 software.amazon.awssdk utils software.amazon.awssdk sdk-core
@shaarif-khan This does not work either:
com.google.common.util.concurrent.ExecutionError: java.lang.NoSuchMethodError: 'java.util.Optional software.amazon.awssdk.utils.SystemSetting.getStringValueFromEnvironmentVariable(java.lang.String)'
If I try to produce messages for Kafka with Avro format, I run into this error:
java.lang.ClassNotFoundException: software.amazon.awssdk.core.util.json.JacksonUtils
This is my POM:
Is there anything I am missing?