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   </dependencies>
47
48   <build>
49     <plugins>
50       <plugin>
51         <groupId>org.apache.maven.plugins</groupId>
52         <artifactId>maven-dependency-plugin</artifactId>
53         <executions>
54           <execution>
55             <id>copy-dependencies</id>
56             <phase>package</phase>
57             <goals>
58               <goal>copy-dependencies</goal>
59             </goals>
60             <configuration>
61               <outputDirectory>${project.build.directory}/libs</outputDirectory>
62             </configuration>
63           </execution>
64         </executions>
65       </plugin>
66       <plugin>
67         <groupId>org.apache.maven.plugins</groupId>
68         <artifactId>maven-jar-plugin</artifactId>
69         <configuration>
70           <archive>
71             <manifest>
72               <addClasspath>true</addClasspath>
73               <classpathPrefix>libs/</classpathPrefix>
74               <mainClass>de.juplo.kafka.SimpleProducer</mainClass>
75             </manifest>
76           </archive>
77         </configuration>
78       </plugin>
79       <plugin>
80         <groupId>io.fabric8</groupId>
81         <artifactId>docker-maven-plugin</artifactId>
82         <version>0.33.0</version>
83         <configuration>
84           <images>
85             <image>
86               <name>juplo/%a:%v</name>
87             </image>
88           </images>
89         </configuration>
90         <executions>
91           <execution>
92              <id>build</id>
93              <phase>package</phase>
94              <goals>
95                <goal>build</goal>
96              </goals>
97           </execution>
98         </executions>
99       </plugin>
100     </plugins>
101   </build>
102
103
104 </project>