pom.xml 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project xmlns="http://maven.apache.org/POM/4.0.0"
  3. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  4. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  5. <parent>
  6. <artifactId>kafka-ui</artifactId>
  7. <groupId>com.provectus</groupId>
  8. <version>0.0.1-SNAPSHOT</version>
  9. </parent>
  10. <modelVersion>4.0.0</modelVersion>
  11. <artifactId>kafka-ui-api</artifactId>
  12. <dependencyManagement>
  13. <dependencies>
  14. <dependency>
  15. <groupId>org.springframework.boot</groupId>
  16. <artifactId>spring-boot-dependencies</artifactId>
  17. <version>${spring-boot.version}</version>
  18. <type>pom</type>
  19. <scope>import</scope>
  20. </dependency>
  21. </dependencies>
  22. </dependencyManagement>
  23. <dependencies>
  24. <dependency>
  25. <groupId>org.springframework.boot</groupId>
  26. <artifactId>spring-boot-starter-webflux</artifactId>
  27. <exclusions>
  28. <exclusion>
  29. <groupId>org.springframework.boot</groupId>
  30. <artifactId>spring-boot-starter-logging</artifactId>
  31. </exclusion>
  32. </exclusions>
  33. </dependency>
  34. <dependency>
  35. <groupId>com.provectus</groupId>
  36. <artifactId>kafka-ui-contract</artifactId>
  37. <version>${project.version}</version>
  38. </dependency>
  39. <dependency>
  40. <groupId>org.springdoc</groupId>
  41. <artifactId>springdoc-openapi-webflux-ui</artifactId>
  42. <version>${springdoc-openapi-webflux-ui.version}</version>
  43. </dependency>
  44. <dependency>
  45. <groupId>org.apache.kafka</groupId>
  46. <artifactId>kafka-clients</artifactId>
  47. <version>${kafka-clients.version}</version>
  48. </dependency>
  49. <dependency>
  50. <groupId>org.apache.kafka</groupId>
  51. <artifactId>kafka_2.13</artifactId>
  52. <version>${kafka.version}</version>
  53. </dependency>
  54. <dependency>
  55. <groupId>com.101tec</groupId>
  56. <artifactId>zkclient</artifactId>
  57. <version>${zkclient.version}</version>
  58. </dependency>
  59. <dependency>
  60. <groupId>org.projectlombok</groupId>
  61. <artifactId>lombok</artifactId>
  62. <scope>provided</scope>
  63. </dependency>
  64. <dependency>
  65. <groupId>org.mapstruct</groupId>
  66. <artifactId>mapstruct</artifactId>
  67. <version>${org.mapstruct.version}</version>
  68. </dependency>
  69. <dependency>
  70. <groupId>io.confluent</groupId>
  71. <artifactId>kafka-schema-registry-client</artifactId>
  72. <version>${confluent.version}</version>
  73. </dependency>
  74. <dependency>
  75. <groupId>io.confluent</groupId>
  76. <artifactId>kafka-avro-serializer</artifactId>
  77. <version>${confluent.version}</version>
  78. </dependency>
  79. <dependency>
  80. <groupId>org.apache.avro</groupId>
  81. <artifactId>avro</artifactId>
  82. <version>${avro.version}</version>
  83. </dependency>
  84. <dependency>
  85. <groupId>org.springframework.boot</groupId>
  86. <artifactId>spring-boot-starter-log4j2</artifactId>
  87. </dependency>
  88. <dependency>
  89. <groupId>org.springframework.boot</groupId>
  90. <artifactId>spring-boot-starter-test</artifactId>
  91. <scope>test</scope>
  92. </dependency>
  93. <dependency>
  94. <groupId>io.projectreactor</groupId>
  95. <artifactId>reactor-test</artifactId>
  96. <scope>test</scope>
  97. </dependency>
  98. <dependency>
  99. <groupId>org.apache.commons</groupId>
  100. <artifactId>commons-pool2</artifactId>
  101. <version>${apache.commons.version}</version>
  102. </dependency>
  103. </dependencies>
  104. <build>
  105. <plugins>
  106. <plugin>
  107. <groupId>org.springframework.boot</groupId>
  108. <artifactId>spring-boot-maven-plugin</artifactId>
  109. <version>${spring-boot.version}</version>
  110. <executions>
  111. <execution>
  112. <goals>
  113. <goal>repackage</goal>
  114. </goals>
  115. </execution>
  116. </executions>
  117. </plugin>
  118. <plugin>
  119. <groupId>org.apache.maven.plugins</groupId>
  120. <artifactId>maven-compiler-plugin</artifactId>
  121. <version>${maven-compiler-plugin.version}</version>
  122. <configuration>
  123. <source>13</source>
  124. <target>13</target>
  125. <annotationProcessorPaths>
  126. <path>
  127. <groupId>org.mapstruct</groupId>
  128. <artifactId>mapstruct-processor</artifactId>
  129. <version>${org.mapstruct.version}</version>
  130. </path>
  131. <path>
  132. <groupId>org.projectlombok</groupId>
  133. <artifactId>lombok</artifactId>
  134. <version>${org.projectlombok.version}</version>
  135. </path>
  136. <path>
  137. <groupId>org.springframework.boot</groupId>
  138. <artifactId>spring-boot-configuration-processor</artifactId>
  139. <version>${spring-boot.version}</version>
  140. </path>
  141. </annotationProcessorPaths>
  142. </configuration>
  143. </plugin>
  144. </plugins>
  145. </build>
  146. <profiles>
  147. <profile>
  148. <id>prod</id>
  149. <build>
  150. <plugins>
  151. <plugin>
  152. <artifactId>maven-resources-plugin</artifactId>
  153. <executions>
  154. <execution>
  155. <id>copy-resources</id>
  156. <phase>process-classes</phase>
  157. <goals>
  158. <goal>copy-resources</goal>
  159. </goals>
  160. <configuration>
  161. <outputDirectory>${basedir}/target/classes/static</outputDirectory>
  162. <resources>
  163. <resource>
  164. <directory>../kafka-ui-react-app/build</directory>
  165. </resource>
  166. </resources>
  167. </configuration>
  168. </execution>
  169. </executions>
  170. </plugin>
  171. <plugin>
  172. <groupId>com.github.eirslett</groupId>
  173. <artifactId>frontend-maven-plugin</artifactId>
  174. <version>${frontend-maven-plugin.version}</version>
  175. <configuration>
  176. <workingDirectory>../kafka-ui-react-app</workingDirectory>
  177. </configuration>
  178. <executions>
  179. <execution>
  180. <id>install node and npm</id>
  181. <goals>
  182. <goal>install-node-and-npm</goal>
  183. </goals>
  184. <configuration>
  185. <nodeVersion>${node.version}</nodeVersion>
  186. </configuration>
  187. </execution>
  188. <execution>
  189. <id>npm install</id>
  190. <goals>
  191. <goal>npm</goal>
  192. </goals>
  193. <configuration>
  194. <arguments>install</arguments>
  195. </configuration>
  196. </execution>
  197. <execution>
  198. <id>npm run build</id>
  199. <goals>
  200. <goal>npm</goal>
  201. </goals>
  202. <configuration>
  203. <arguments>run build</arguments>
  204. </configuration>
  205. </execution>
  206. </executions>
  207. </plugin>
  208. <plugin>
  209. <groupId>com.spotify</groupId>
  210. <artifactId>dockerfile-maven-plugin</artifactId>
  211. <version>${dockerfile-maven-plugin.version}</version>
  212. <configuration>
  213. <skipPush>true</skipPush>
  214. </configuration>
  215. <executions>
  216. <execution>
  217. <id>default</id>
  218. <phase>package</phase>
  219. <goals>
  220. <goal>build</goal>
  221. </goals>
  222. <configuration>
  223. <tag>${git.revision}</tag>
  224. <repository>${project.artifactId}</repository>
  225. <buildArgs>
  226. <JAR_FILE>${project.build.finalName}.jar</JAR_FILE>
  227. <JAR_NAME>${project.artifactId}.jar</JAR_NAME>
  228. </buildArgs>
  229. </configuration>
  230. </execution>
  231. </executions>
  232. </plugin>
  233. </plugins>
  234. </build>
  235. </profile>
  236. </profiles>
  237. </project>