<name>Wordcount-Query</name>
<description>Query stream-processor of the multi-user wordcount-example</description>
<properties>
+ <avro.version>1.10.2</avro.version>
<docker-maven-plugin.version>0.33.0</docker-maven-plugin.version>
<java.version>11</java.version>
<kafka.version>2.8.0</kafka.version>
<groupId>org.apache.kafka</groupId>
<artifactId>kafka-streams</artifactId>
</dependency>
+ <dependency>
+ <groupId>org.apache.avro</groupId>
+ <artifactId>avro</artifactId>
+ <version>${avro.version}</version>
+ </dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
</images>
</configuration>
</plugin>
+ <plugin>
+ <groupId>org.apache.avro</groupId>
+ <artifactId>avro-maven-plugin</artifactId>
+ <version>${avro.version}</version>
+ <executions>
+ <execution>
+ <phase>generate-sources</phase>
+ <goals>
+ <goal>schema</goal>
+ </goals>
+ <configuration>
+ <sourceDirectory>${project.basedir}/src/main/resources/avro</sourceDirectory>
+ <outputDirectory>${project.basedir}/target/generated-sources</outputDirectory>
+ <fieldVisibility>PRIVATE</fieldVisibility>
+ <includes>
+ <include>*.avsc</include>
+ </includes>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
</plugins>
</build>
--- /dev/null
+{
+ "type": "record",
+ "name": "UserTO",
+ "namespace": "de.juplo.kafka.wordcount.query",
+ "fields": [
+ {
+ "name": "username", "type": "string"
+ },
+ {
+ "name": "firstName", "type": "string", "default": ""
+ },
+ {
+ "name": "lastName", "type": "string", "default": ""
+ },
+ { "name": "sex", "type":
+ {
+ "type": "enum", "name": "SexTO",
+ "symbols": [ "UNKNOWN", "FEMALE", "MALE", "OTHER" ], "default": "UNKNOWN"
+ },
+ "default": "UNKNOWN"
+ }
+ ]
+}