Build Docker image with class collision #11219
Replies: 2 comments 10 replies
-
Hi, did you try to run |
Beta Was this translation helpful? Give feedback.
-
As a temporary and somewhat risky solution, adding
in docker-images/kafka-based/kafka/tmp/3.8.0.ignorelist and docker-images/kafka-based/kafka/tmp/3.8.1.ignorelist can bypass this error and prevent the blockage of the image build. docker-images/kafka-based/kafka/tmp/3.9.0.ignorelist remains as it was is ok. There is no class collisions in building 3.9.0 version image |
Beta Was this translation helpful? Give feedback.
-
Info
Strimzi Version: 0.45.x
Question
When we build operator docker image with command:
DOCKER_ORG=xx DOCKER_PLATFORM="xx" DOCKER_REGISTRY=xx DOCKER_TAG=xx make MVN_ARGS='-DskipTests' all
It gives errors below
../find-classpath-collision.sh strimzi/kafka:build-kafka-3.8.0 /opt/kafka/libs "tmp/3.8.0.ignorelist"
Successfully copied 152MB to /var/folders/yw/yt4c5wj12hdc5kvyz0d4lkzm0000gn/T/tmp.rbzuHCX5ib
ERROR: Different class files with same name from different jars found!
kafka-server-common-3.8.0.jar org/apache/kafka/timeline/SnapshotRegistry.class
kafka-server-common-3.9.0.jar org/apache/kafka/timeline/SnapshotRegistry.class
It seems there are class collisions.
How can we find out which lib jar cause this problem?
Any Tips are appreciated
Thanks
Beta Was this translation helpful? Give feedback.
All reactions