pom.xml 9.8 KB

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