Beispiele verwenden das Interface, um die erzeugte Instanz abzulegen
[demos/kafka/training] / 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 http://maven.apache.org/xsd/maven-4.0.0.xsd">
4
5   <modelVersion>4.0.0</modelVersion>
6
7   <parent>
8     <groupId>org.springframework.boot</groupId>
9     <artifactId>spring-boot-starter-parent</artifactId>
10     <version>2.7.2</version>
11     <relativePath/> <!-- lookup parent from repository -->
12   </parent>
13
14   <groupId>de.juplo.kafka</groupId>
15   <artifactId>first-contact</artifactId>
16   <name>First Contact: a Simple Producer and a simple Consumer-Group</name>
17   <version>1.0-SNAPSHOT</version>
18
19   <dependencies>
20     <dependency>
21       <groupId>org.apache.kafka</groupId>
22       <artifactId>kafka-clients</artifactId>
23     </dependency>
24     <dependency>
25       <groupId>org.projectlombok</groupId>
26       <artifactId>lombok</artifactId>
27     </dependency>
28     <dependency>
29       <groupId>ch.qos.logback</groupId>
30       <artifactId>logback-classic</artifactId>
31     </dependency>
32   </dependencies>
33
34   <build>
35     <plugins>
36       <plugin>
37         <groupId>org.codehaus.mojo</groupId>
38         <artifactId>exec-maven-plugin</artifactId>
39         <version>3.0.0</version>
40         <executions>
41           <execution>
42             <id>producer</id>
43             <configuration>
44               <mainClass>de.juplo.kafka.SimpleProducer</mainClass>
45             </configuration>
46           </execution>
47           <execution>
48             <id>consumer</id>
49             <configuration>
50               <mainClass>de.juplo.kafka.SimpleConsumer</mainClass>
51             </configuration>
52           </execution>
53         </executions>
54       </plugin>
55     </plugins>
56   </build>
57
58 </project>