Setup für Grundlagen-Übungen vereinfacht
[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   </dependencies>
37
38   <build>
39     <plugins>
40       <plugin>
41         <groupId>org.apache.maven.plugins</groupId>
42         <artifactId>maven-dependency-plugin</artifactId>
43         <executions>
44           <execution>
45             <id>copy-dependencies</id>
46             <phase>package</phase>
47             <goals>
48               <goal>copy-dependencies</goal>
49             </goals>
50             <configuration>
51               <outputDirectory>${project.build.directory}/libs</outputDirectory>
52             </configuration>
53           </execution>
54         </executions>
55       </plugin>
56       <plugin>
57         <groupId>org.apache.maven.plugins</groupId>
58         <artifactId>maven-jar-plugin</artifactId>
59         <configuration>
60           <archive>
61             <manifest>
62               <addClasspath>true</addClasspath>
63               <classpathPrefix>libs/</classpathPrefix>
64               <mainClass>de.juplo.kafka.SimpleProducer</mainClass>
65             </manifest>
66           </archive>
67         </configuration>
68       </plugin>
69       <plugin>
70         <groupId>io.fabric8</groupId>
71         <artifactId>docker-maven-plugin</artifactId>
72         <version>0.33.0</version>
73         <configuration>
74           <images>
75             <image>
76               <name>juplo/%a:%v</name>
77             </image>
78           </images>
79         </configuration>
80         <executions>
81           <execution>
82              <id>build</id>
83              <phase>package</phase>
84              <goals>
85                <goal>build</goal>
86              </goals>
87           </execution>
88         </executions>
89       </plugin>
90     </plugins>
91   </build>
92
93
94 </project>