pom.xml 9.5 KB

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