WIP
[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>simple-producer</artifactId>
16   <name>Super Simple Producer</name>
17   <version>1.0-SNAPSHOT</version>
18
19   <properties>
20     <java.version>17</java.version>
21   </properties>
22
23   <dependencies>
24     <dependency>
25       <groupId>org.apache.kafka</groupId>
26       <artifactId>kafka-clients</artifactId>
27     </dependency>
28     <dependency>
29       <groupId>org.projectlombok</groupId>
30       <artifactId>lombok</artifactId>
31     </dependency>
32     <dependency>
33       <groupId>ch.qos.logback</groupId>
34       <artifactId>logback-classic</artifactId>
35     </dependency>
36     <dependency>
37       <groupId>org.springframework.kafka</groupId>
38       <artifactId>spring-kafka-test</artifactId>
39       <scope>test</scope>
40     </dependency>
41     <dependency>
42       <groupId>org.awaitility</groupId>
43       <artifactId>awaitility</artifactId>
44       <scope>test</scope>
45     </dependency>
46     <dependency>
47       <groupId>org.assertj</groupId>
48       <artifactId>assertj-core</artifactId>
49       <scope>test</scope>
50     </dependency>
51   </dependencies>
52
53   <build>
54     <plugins>
55       <plugin>
56         <groupId>org.apache.maven.plugins</groupId>
57         <artifactId>maven-dependency-plugin</artifactId>
58         <executions>
59           <execution>
60             <id>copy-dependencies</id>
61             <phase>package</phase>
62             <goals>
63               <goal>copy-dependencies</goal>
64             </goals>
65             <configuration>
66               <outputDirectory>${project.build.directory}/libs</outputDirectory>
67             </configuration>
68           </execution>
69         </executions>
70       </plugin>
71       <plugin>
72         <groupId>org.apache.maven.plugins</groupId>
73         <artifactId>maven-jar-plugin</artifactId>
74         <configuration>
75           <archive>
76             <manifest>
77               <addClasspath>true</addClasspath>
78               <classpathPrefix>libs/</classpathPrefix>
79               <mainClass>de.juplo.kafka.SimpleProducer</mainClass>
80             </manifest>
81           </archive>
82         </configuration>
83       </plugin>
84       <plugin>
85         <groupId>io.fabric8</groupId>
86         <artifactId>docker-maven-plugin</artifactId>
87         <version>0.33.0</version>
88         <configuration>
89           <images>
90             <image>
91               <name>juplo/%a:%v</name>
92             </image>
93           </images>
94         </configuration>
95         <executions>
96           <execution>
97              <id>build</id>
98              <phase>package</phase>
99              <goals>
100                <goal>build</goal>
101              </goals>
102           </execution>
103         </executions>
104       </plugin>
105     </plugins>
106   </build>
107
108
109 </project>