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