e090dba31c3a246a8e98dad7f6e1d7b8586b34b7
[demos/kafka/wordcount] / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
4         <modelVersion>4.0.0</modelVersion>
5         <parent>
6                 <groupId>org.springframework.boot</groupId>
7                 <artifactId>spring-boot-starter-parent</artifactId>
8                 <version>2.5.4</version>
9                 <relativePath/> <!-- lookup parent from repository -->
10         </parent>
11         <groupId>de.juplo.kafka.wordcount</groupId>
12         <artifactId>query</artifactId>
13         <version>1.0.2</version>
14         <name>Wordcount-Query</name>
15         <description>Query stream-processor of the multi-user wordcount-example</description>
16         <properties>
17                 <avro.version>1.10.2</avro.version>
18                 <docker-maven-plugin.version>0.33.0</docker-maven-plugin.version>
19                 <java.version>11</java.version>
20                 <kafka.version>2.8.0</kafka.version>
21         </properties>
22         <dependencies>
23                 <dependency>
24                         <groupId>org.springframework.boot</groupId>
25                         <artifactId>spring-boot-starter-actuator</artifactId>
26                 </dependency>
27                 <dependency>
28                         <groupId>org.springframework.boot</groupId>
29                         <artifactId>spring-boot-starter-web</artifactId>
30                 </dependency>
31                 <dependency>
32                         <groupId>org.apache.kafka</groupId>
33                         <artifactId>kafka-streams</artifactId>
34                 </dependency>
35                 <dependency>
36                         <groupId>org.apache.avro</groupId>
37                         <artifactId>avro</artifactId>
38                         <version>${avro.version}</version>
39                 </dependency>
40
41                 <dependency>
42                         <groupId>org.springframework.boot</groupId>
43                         <artifactId>spring-boot-devtools</artifactId>
44                         <scope>runtime</scope>
45                         <optional>true</optional>
46                 </dependency>
47                 <dependency>
48                         <groupId>org.springframework.boot</groupId>
49                         <artifactId>spring-boot-configuration-processor</artifactId>
50                         <optional>true</optional>
51                 </dependency>
52                 <dependency>
53                         <groupId>org.projectlombok</groupId>
54                         <artifactId>lombok</artifactId>
55                         <optional>true</optional>
56                 </dependency>
57                 <dependency>
58                         <groupId>org.springframework.boot</groupId>
59                         <artifactId>spring-boot-starter-test</artifactId>
60                         <scope>test</scope>
61                 </dependency>
62         </dependencies>
63
64         <build>
65                 <plugins>
66                         <plugin>
67                                 <groupId>org.springframework.boot</groupId>
68                                 <artifactId>spring-boot-maven-plugin</artifactId>
69                                 <configuration>
70                                         <excludes>
71                                                 <exclude>
72                                                         <groupId>org.projectlombok</groupId>
73                                                         <artifactId>lombok</artifactId>
74                                                 </exclude>
75                                         </excludes>
76                                 </configuration>
77                         </plugin>
78                         <plugin>
79                                 <groupId>io.fabric8</groupId>
80                                 <artifactId>docker-maven-plugin</artifactId>
81                                 <version>${docker-maven-plugin.version}</version>
82                                 <configuration>
83                                         <images>
84                                                 <image>
85                                                         <name>juplo/wordcount--%a:%v</name>
86                                                 </image>
87                                         </images>
88                                 </configuration>
89                         </plugin>
90                         <plugin>
91                                 <groupId>org.apache.avro</groupId>
92                                 <artifactId>avro-maven-plugin</artifactId>
93                                 <version>${avro.version}</version>
94                                 <executions>
95                                         <execution>
96                                                 <phase>generate-sources</phase>
97                                                 <goals>
98                                                         <goal>schema</goal>
99                                                 </goals>
100                                                 <configuration>
101                                                         <sourceDirectory>${project.basedir}/src/main/resources/avro</sourceDirectory>
102                                                         <outputDirectory>${project.basedir}/target/generated-sources</outputDirectory>
103                                                         <fieldVisibility>PRIVATE</fieldVisibility>
104                                                         <includes>
105                                                                 <include>*.avsc</include>
106                                                         </includes>
107                                                 </configuration>
108                                         </execution>
109                                 </executions>
110                         </plugin>
111                 </plugins>
112         </build>
113
114 </project>