Aktualisierung auf Java 17
[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-consumer</artifactId>
16   <name>Simple Consumer-Group</name>
17   <description>Super Simple Consumer-Group, that is implemented as a plain Java-program</description>
18   <version>1.0-SNAPSHOT</version>
19
20   <properties>
21     <java.version>17</java.version>
22   </properties>
23
24   <dependencies>
25     <dependency>
26       <groupId>org.apache.kafka</groupId>
27       <artifactId>kafka-clients</artifactId>
28     </dependency>
29     <dependency>
30       <groupId>org.projectlombok</groupId>
31       <artifactId>lombok</artifactId>
32     </dependency>
33     <dependency>
34       <groupId>ch.qos.logback</groupId>
35       <artifactId>logback-classic</artifactId>
36     </dependency>
37   </dependencies>
38
39   <build>
40     <plugins>
41       <plugin>
42         <groupId>org.apache.maven.plugins</groupId>
43         <artifactId>maven-dependency-plugin</artifactId>
44         <executions>
45           <execution>
46             <id>copy-dependencies</id>
47             <phase>package</phase>
48             <goals>
49               <goal>copy-dependencies</goal>
50             </goals>
51             <configuration>
52               <outputDirectory>${project.build.directory}/libs</outputDirectory>
53             </configuration>
54           </execution>
55         </executions>
56       </plugin>
57       <plugin>
58         <groupId>org.apache.maven.plugins</groupId>
59         <artifactId>maven-jar-plugin</artifactId>
60         <configuration>
61           <archive>
62             <manifest>
63               <addClasspath>true</addClasspath>
64               <classpathPrefix>libs/</classpathPrefix>
65               <mainClass>de.juplo.kafka.SimpleConsumer</mainClass>
66             </manifest>
67           </archive>
68         </configuration>
69       </plugin>
70       <plugin>
71         <groupId>io.fabric8</groupId>
72         <artifactId>docker-maven-plugin</artifactId>
73         <version>0.33.0</version>
74         <configuration>
75           <images>
76             <image>
77               <name>juplo/%a:%v</name>
78             </image>
79           </images>
80         </configuration>
81         <executions>
82           <execution>
83              <id>build</id>
84              <phase>package</phase>
85              <goals>
86                <goal>build</goal>
87              </goals>
88           </execution>
89         </executions>
90       </plugin>
91     </plugins>
92   </build>
93
94
95 </project>