Skip to content

Instantly share code, notes, and snippets.

@MazizEsa
Last active September 15, 2020 12:26
Show Gist options
  • Save MazizEsa/d4a5b65f7851737d9dbf8232c84da476 to your computer and use it in GitHub Desktop.
Save MazizEsa/d4a5b65f7851737d9dbf8232c84da476 to your computer and use it in GitHub Desktop.
Confluent Schema Maven Plugin Consumer with Schema Reference Example
<plugin>
<groupId>io.confluent</groupId>
<artifactId>kafka-schema-registry-maven-plugin</artifactId>
<version>${confluent.platform.version}</version>
<executions>
<execution>
<phase>initialize</phase>
<goals>
<goal>download</goal>
</goals>
</execution>
</executions>
<configuration>
<outputDirectory>${project.basedir}/src/main/resources/schema</outputDirectory>
<schemaRegistryUrls>
<param>http://localhost:8081</param>
</schemaRegistryUrls>
<subjects/>
<subjectPatterns>
<pattern>.*FlatSampleData</pattern>
<pattern>.*SplitSampleData</pattern>
<pattern>.*SplitEnumerationSample</pattern>
</subjectPatterns>
<references/>
</configuration>
<goals>
<goal>download</goal>
</goals>
</plugin>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment