pom.xml 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255
  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.4-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>org.apache.avro</groupId>
  89. <artifactId>avro</artifactId>
  90. <version>${avro.version}</version>
  91. </dependency>
  92. <dependency>
  93. <groupId>org.springframework.boot</groupId>
  94. <artifactId>spring-boot-starter-log4j2</artifactId>
  95. </dependency>
  96. <dependency>
  97. <groupId>org.springframework.boot</groupId>
  98. <artifactId>spring-boot-starter-test</artifactId>
  99. <scope>test</scope>
  100. </dependency>
  101. <dependency>
  102. <groupId>io.projectreactor</groupId>
  103. <artifactId>reactor-test</artifactId>
  104. <scope>test</scope>
  105. </dependency>
  106. <dependency>
  107. <groupId>org.apache.commons</groupId>
  108. <artifactId>commons-pool2</artifactId>
  109. <version>${apache.commons.version}</version>
  110. </dependency>
  111. </dependencies>
  112. <build>
  113. <plugins>
  114. <plugin>
  115. <groupId>org.springframework.boot</groupId>
  116. <artifactId>spring-boot-maven-plugin</artifactId>
  117. <version>${spring-boot.version}</version>
  118. <executions>
  119. <execution>
  120. <goals>
  121. <goal>repackage</goal>
  122. </goals>
  123. </execution>
  124. </executions>
  125. </plugin>
  126. <plugin>
  127. <groupId>org.apache.maven.plugins</groupId>
  128. <artifactId>maven-compiler-plugin</artifactId>
  129. <version>${maven-compiler-plugin.version}</version>
  130. <configuration>
  131. <source>13</source>
  132. <target>13</target>
  133. <annotationProcessorPaths>
  134. <path>
  135. <groupId>org.mapstruct</groupId>
  136. <artifactId>mapstruct-processor</artifactId>
  137. <version>${org.mapstruct.version}</version>
  138. </path>
  139. <path>
  140. <groupId>org.projectlombok</groupId>
  141. <artifactId>lombok</artifactId>
  142. <version>${org.projectlombok.version}</version>
  143. </path>
  144. <path>
  145. <groupId>org.springframework.boot</groupId>
  146. <artifactId>spring-boot-configuration-processor</artifactId>
  147. <version>${spring-boot.version}</version>
  148. </path>
  149. </annotationProcessorPaths>
  150. </configuration>
  151. </plugin>
  152. </plugins>
  153. </build>
  154. <profiles>
  155. <profile>
  156. <id>prod</id>
  157. <build>
  158. <plugins>
  159. <plugin>
  160. <artifactId>maven-resources-plugin</artifactId>
  161. <executions>
  162. <execution>
  163. <id>copy-resources</id>
  164. <phase>process-classes</phase>
  165. <goals>
  166. <goal>copy-resources</goal>
  167. </goals>
  168. <configuration>
  169. <outputDirectory>${basedir}/target/classes/static</outputDirectory>
  170. <resources>
  171. <resource>
  172. <directory>../kafka-ui-react-app/build</directory>
  173. </resource>
  174. </resources>
  175. </configuration>
  176. </execution>
  177. </executions>
  178. </plugin>
  179. <plugin>
  180. <groupId>com.github.eirslett</groupId>
  181. <artifactId>frontend-maven-plugin</artifactId>
  182. <version>${frontend-maven-plugin.version}</version>
  183. <configuration>
  184. <workingDirectory>../kafka-ui-react-app</workingDirectory>
  185. </configuration>
  186. <executions>
  187. <execution>
  188. <id>install node and npm</id>
  189. <goals>
  190. <goal>install-node-and-npm</goal>
  191. </goals>
  192. <configuration>
  193. <nodeVersion>${node.version}</nodeVersion>
  194. </configuration>
  195. </execution>
  196. <execution>
  197. <id>npm install</id>
  198. <goals>
  199. <goal>npm</goal>
  200. </goals>
  201. <configuration>
  202. <arguments>install</arguments>
  203. </configuration>
  204. </execution>
  205. <execution>
  206. <id>npm run build</id>
  207. <goals>
  208. <goal>npm</goal>
  209. </goals>
  210. <configuration>
  211. <arguments>run build</arguments>
  212. </configuration>
  213. </execution>
  214. </executions>
  215. </plugin>
  216. <plugin>
  217. <groupId>com.spotify</groupId>
  218. <artifactId>dockerfile-maven-plugin</artifactId>
  219. <version>${dockerfile-maven-plugin.version}</version>
  220. <configuration>
  221. <skipPush>true</skipPush>
  222. </configuration>
  223. <executions>
  224. <execution>
  225. <id>default</id>
  226. <phase>package</phase>
  227. <goals>
  228. <goal>build</goal>
  229. </goals>
  230. <configuration>
  231. <tag>${git.revision}</tag>
  232. <repository>kafka-ui</repository>
  233. <buildArgs>
  234. <JAR_FILE>${project.build.finalName}.jar</JAR_FILE>
  235. <JAR_NAME>${project.artifactId}.jar</JAR_NAME>
  236. </buildArgs>
  237. </configuration>
  238. </execution>
  239. </executions>
  240. </plugin>
  241. </plugins>
  242. </build>
  243. </profile>
  244. </profiles>
  245. </project>