pom.xml 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261
  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.8-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>org.springframework.boot</groupId>
  36. <artifactId>spring-boot-starter-security</artifactId>
  37. </dependency>
  38. <dependency>
  39. <groupId>org.springframework.security</groupId>
  40. <artifactId>spring-security-oauth2-client</artifactId>
  41. </dependency>
  42. <dependency>
  43. <groupId>com.provectus</groupId>
  44. <artifactId>kafka-ui-contract</artifactId>
  45. <version>${project.version}</version>
  46. </dependency>
  47. <dependency>
  48. <groupId>org.springdoc</groupId>
  49. <artifactId>springdoc-openapi-webflux-ui</artifactId>
  50. <version>${springdoc-openapi-webflux-ui.version}</version>
  51. </dependency>
  52. <dependency>
  53. <groupId>org.apache.kafka</groupId>
  54. <artifactId>kafka-clients</artifactId>
  55. <version>${kafka-clients.version}</version>
  56. </dependency>
  57. <dependency>
  58. <groupId>org.apache.kafka</groupId>
  59. <artifactId>kafka_2.13</artifactId>
  60. <version>${kafka.version}</version>
  61. </dependency>
  62. <dependency>
  63. <groupId>com.101tec</groupId>
  64. <artifactId>zkclient</artifactId>
  65. <version>${zkclient.version}</version>
  66. </dependency>
  67. <dependency>
  68. <groupId>org.projectlombok</groupId>
  69. <artifactId>lombok</artifactId>
  70. <scope>provided</scope>
  71. </dependency>
  72. <dependency>
  73. <groupId>org.mapstruct</groupId>
  74. <artifactId>mapstruct</artifactId>
  75. <version>${org.mapstruct.version}</version>
  76. </dependency>
  77. <dependency>
  78. <groupId>io.confluent</groupId>
  79. <artifactId>kafka-schema-registry-client</artifactId>
  80. <version>${confluent.version}</version>
  81. </dependency>
  82. <dependency>
  83. <groupId>io.confluent</groupId>
  84. <artifactId>kafka-avro-serializer</artifactId>
  85. <version>${confluent.version}</version>
  86. </dependency>
  87. <dependency>
  88. <groupId>io.confluent</groupId>
  89. <artifactId>kafka-protobuf-serializer</artifactId>
  90. <version>${confluent.version}</version>
  91. </dependency>
  92. <dependency>
  93. <groupId>org.apache.avro</groupId>
  94. <artifactId>avro</artifactId>
  95. <version>${avro.version}</version>
  96. </dependency>
  97. <dependency>
  98. <groupId>org.springframework.boot</groupId>
  99. <artifactId>spring-boot-starter-log4j2</artifactId>
  100. </dependency>
  101. <dependency>
  102. <groupId>org.springframework.boot</groupId>
  103. <artifactId>spring-boot-starter-test</artifactId>
  104. <scope>test</scope>
  105. </dependency>
  106. <dependency>
  107. <groupId>io.projectreactor</groupId>
  108. <artifactId>reactor-test</artifactId>
  109. <scope>test</scope>
  110. </dependency>
  111. <dependency>
  112. <groupId>org.apache.commons</groupId>
  113. <artifactId>commons-pool2</artifactId>
  114. <version>${apache.commons.version}</version>
  115. </dependency>
  116. </dependencies>
  117. <build>
  118. <plugins>
  119. <plugin>
  120. <groupId>org.springframework.boot</groupId>
  121. <artifactId>spring-boot-maven-plugin</artifactId>
  122. <version>${spring-boot.version}</version>
  123. <executions>
  124. <execution>
  125. <goals>
  126. <goal>repackage</goal>
  127. </goals>
  128. </execution>
  129. </executions>
  130. </plugin>
  131. <plugin>
  132. <groupId>org.apache.maven.plugins</groupId>
  133. <artifactId>maven-compiler-plugin</artifactId>
  134. <version>${maven-compiler-plugin.version}</version>
  135. <configuration>
  136. <source>13</source>
  137. <target>13</target>
  138. <annotationProcessorPaths>
  139. <path>
  140. <groupId>org.mapstruct</groupId>
  141. <artifactId>mapstruct-processor</artifactId>
  142. <version>${org.mapstruct.version}</version>
  143. </path>
  144. <path>
  145. <groupId>org.projectlombok</groupId>
  146. <artifactId>lombok</artifactId>
  147. <version>${org.projectlombok.version}</version>
  148. </path>
  149. <path>
  150. <groupId>org.springframework.boot</groupId>
  151. <artifactId>spring-boot-configuration-processor</artifactId>
  152. <version>${spring-boot.version}</version>
  153. </path>
  154. </annotationProcessorPaths>
  155. </configuration>
  156. </plugin>
  157. </plugins>
  158. </build>
  159. <profiles>
  160. <profile>
  161. <id>prod</id>
  162. <build>
  163. <plugins>
  164. <plugin>
  165. <artifactId>maven-resources-plugin</artifactId>
  166. <executions>
  167. <execution>
  168. <id>copy-resources</id>
  169. <phase>process-classes</phase>
  170. <goals>
  171. <goal>copy-resources</goal>
  172. </goals>
  173. <configuration>
  174. <outputDirectory>${basedir}/target/classes/static</outputDirectory>
  175. <resources>
  176. <resource>
  177. <directory>../kafka-ui-react-app/build</directory>
  178. </resource>
  179. </resources>
  180. </configuration>
  181. </execution>
  182. </executions>
  183. </plugin>
  184. <plugin>
  185. <groupId>com.github.eirslett</groupId>
  186. <artifactId>frontend-maven-plugin</artifactId>
  187. <version>${frontend-maven-plugin.version}</version>
  188. <configuration>
  189. <workingDirectory>../kafka-ui-react-app</workingDirectory>
  190. </configuration>
  191. <executions>
  192. <execution>
  193. <id>install node and npm</id>
  194. <goals>
  195. <goal>install-node-and-npm</goal>
  196. </goals>
  197. <configuration>
  198. <nodeVersion>${node.version}</nodeVersion>
  199. </configuration>
  200. </execution>
  201. <execution>
  202. <id>npm install</id>
  203. <goals>
  204. <goal>npm</goal>
  205. </goals>
  206. <configuration>
  207. <arguments>install</arguments>
  208. </configuration>
  209. </execution>
  210. <execution>
  211. <id>npm run build</id>
  212. <goals>
  213. <goal>npm</goal>
  214. </goals>
  215. <configuration>
  216. <arguments>run build</arguments>
  217. </configuration>
  218. </execution>
  219. </executions>
  220. </plugin>
  221. <plugin>
  222. <groupId>com.spotify</groupId>
  223. <artifactId>dockerfile-maven-plugin</artifactId>
  224. <version>${dockerfile-maven-plugin.version}</version>
  225. <configuration>
  226. <skipPush>true</skipPush>
  227. </configuration>
  228. <executions>
  229. <execution>
  230. <id>default</id>
  231. <phase>package</phase>
  232. <goals>
  233. <goal>build</goal>
  234. </goals>
  235. <configuration>
  236. <tag>${git.revision}</tag>
  237. <repository>kafka-ui</repository>
  238. <buildArgs>
  239. <JAR_FILE>${project.build.finalName}.jar</JAR_FILE>
  240. <JAR_NAME>${project.artifactId}.jar</JAR_NAME>
  241. </buildArgs>
  242. </configuration>
  243. </execution>
  244. </executions>
  245. </plugin>
  246. </plugins>
  247. </build>
  248. </profile>
  249. </profiles>
  250. </project>