To support Confluent Schema Registry, KafkaIO has a dependency on io.confluent:kafka-avro-serializer from https://packages.confluent.io/maven/ repository. In this case, it should add this repository into published KafkaIO POM file. Otherwise, it will fail with the following error during building a user pipeline:
The repositories for publishing can be added by mavenRepositories argument in build script for Java configuration.
For example (KafkaIO:
It will generate the following xml code snippet in pom file of beam-sdks-java-io-kafka artifact after publishing: