schema-registry icon indicating copy to clipboard operation
schema-registry copied to clipboard

Same java package in two modules for Avro

Open daltrogama opened this issue 2 years ago • 3 comments

JVM's module system, since Java 9, doesn't allow more than one JAR module with the same package. At least when using the module system instead of compatibility mode (module path instead of the classpath).

See: https://jlbp.dev/JLBP-19

I must do some workaround to use those modules with a dependency relationship:

https://github.com/confluentinc/schema-registry/tree/master/avro-serializer/src/main/java/io/confluent/kafka/serializers https://github.com/confluentinc/schema-registry/tree/master/schema-serializer/src/main/java/io/confluent/kafka/serializers

When using the module system, I always get a ClassNotDef/ClassNotFound on some classes due to package name ambiguity, and I don't want to leave the module system only because of this single dependency.

Is there some already defined workaround for this issue?

[]'s

daltrogama avatar Jul 27 '22 21:07 daltrogama

Can we get some attention here, please?

These libs are the only ones preventing me from migrating my code into Java modules.

lauroschuck avatar Apr 06 '23 13:04 lauroschuck

I am also running in to this issue. Would be great if this got some more attention.

thoalm avatar Jun 26 '23 15:06 thoalm