Approaches how to use schema-registry plugin
Schema module
- Check schema compatibility
- Register schema in schema-registry
./mvnw -pl schema schema-registry:test-compatibility
./mvnw -pl schema schema-registry:register
Client1 module
- Download schema
- Generate pojos with this schema
./mvnw -pl client1 schema-registry:download
./mvnw -pl client1 avro:schema
Schema module
- Generate pojos with schema
./mvnw -pl schema avro:schema
Client2 module
- Dependency to schema module
<dependencies>
<dependency>
<groupId>ru.zhenik.example</groupId>
<artifactId>schema</artifactId>
</dependency>
</dependency>
with Approach 1