pom.xml 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371
  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" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  4. <parent>
  5. <artifactId>kafka-ui</artifactId>
  6. <groupId>com.provectus</groupId>
  7. <version>0.0.11-SNAPSHOT</version>
  8. </parent>
  9. <modelVersion>4.0.0</modelVersion>
  10. <artifactId>kafka-ui-api</artifactId>
  11. <dependencyManagement>
  12. <dependencies>
  13. <dependency>
  14. <groupId>org.springframework.boot</groupId>
  15. <artifactId>spring-boot-dependencies</artifactId>
  16. <version>${spring-boot.version}</version>
  17. <type>pom</type>
  18. <scope>import</scope>
  19. </dependency>
  20. </dependencies>
  21. </dependencyManagement>
  22. <dependencies>
  23. <dependency>
  24. <groupId>org.springframework.boot</groupId>
  25. <artifactId>spring-boot-starter-webflux</artifactId>
  26. <exclusions>
  27. <exclusion>
  28. <groupId>org.springframework.boot</groupId>
  29. <artifactId>spring-boot-starter-logging</artifactId>
  30. </exclusion>
  31. </exclusions>
  32. </dependency>
  33. <dependency>
  34. <groupId>org.springframework.boot</groupId>
  35. <artifactId>spring-boot-starter-security</artifactId>
  36. </dependency>
  37. <dependency>
  38. <groupId>org.springframework.boot</groupId>
  39. <artifactId>spring-boot-starter-oauth2-client</artifactId>
  40. </dependency>
  41. <dependency>
  42. <groupId>com.provectus</groupId>
  43. <artifactId>kafka-ui-contract</artifactId>
  44. <version>${project.version}</version>
  45. </dependency>
  46. <dependency>
  47. <groupId>org.springdoc</groupId>
  48. <artifactId>springdoc-openapi-webflux-ui</artifactId>
  49. <version>${springdoc-openapi-webflux-ui.version}</version>
  50. </dependency>
  51. <dependency>
  52. <groupId>org.apache.kafka</groupId>
  53. <artifactId>kafka-clients</artifactId>
  54. <version>${kafka-clients.version}</version>
  55. </dependency>
  56. <dependency>
  57. <groupId>org.apache.kafka</groupId>
  58. <artifactId>kafka_2.13</artifactId>
  59. <version>${kafka.version}</version>
  60. </dependency>
  61. <dependency>
  62. <groupId>com.101tec</groupId>
  63. <artifactId>zkclient</artifactId>
  64. <version>${zkclient.version}</version>
  65. </dependency>
  66. <dependency>
  67. <groupId>org.projectlombok</groupId>
  68. <artifactId>lombok</artifactId>
  69. <scope>provided</scope>
  70. </dependency>
  71. <dependency>
  72. <groupId>org.mapstruct</groupId>
  73. <artifactId>mapstruct</artifactId>
  74. <version>${org.mapstruct.version}</version>
  75. </dependency>
  76. <dependency>
  77. <groupId>io.confluent</groupId>
  78. <artifactId>kafka-schema-registry-client</artifactId>
  79. <version>${confluent.version}</version>
  80. </dependency>
  81. <dependency>
  82. <groupId>io.confluent</groupId>
  83. <artifactId>kafka-avro-serializer</artifactId>
  84. <version>${confluent.version}</version>
  85. </dependency>
  86. <dependency>
  87. <groupId>io.confluent</groupId>
  88. <artifactId>kafka-protobuf-serializer</artifactId>
  89. <version>${confluent.version}</version>
  90. </dependency>
  91. <dependency>
  92. <groupId>org.apache.avro</groupId>
  93. <artifactId>avro</artifactId>
  94. <version>${avro.version}</version>
  95. </dependency>
  96. <dependency>
  97. <groupId>org.springframework.boot</groupId>
  98. <artifactId>spring-boot-starter-log4j2</artifactId>
  99. </dependency>
  100. <dependency>
  101. <groupId>io.projectreactor.addons</groupId>
  102. <artifactId>reactor-extra</artifactId>
  103. </dependency>
  104. <dependency>
  105. <groupId>org.springframework.boot</groupId>
  106. <artifactId>spring-boot-starter-test</artifactId>
  107. <scope>test</scope>
  108. </dependency>
  109. <dependency>
  110. <groupId>io.projectreactor</groupId>
  111. <artifactId>reactor-test</artifactId>
  112. <scope>test</scope>
  113. </dependency>
  114. <dependency>
  115. <groupId>org.apache.commons</groupId>
  116. <artifactId>commons-pool2</artifactId>
  117. <version>${apache.commons.version}</version>
  118. </dependency>
  119. <dependency>
  120. <groupId>org.testcontainers</groupId>
  121. <artifactId>testcontainers</artifactId>
  122. <version>${test.containers.version}</version>
  123. <scope>test</scope>
  124. </dependency>
  125. <dependency>
  126. <groupId>org.testcontainers</groupId>
  127. <artifactId>kafka</artifactId>
  128. <version>${test.containers.version}</version>
  129. <scope>test</scope>
  130. </dependency>
  131. <dependency>
  132. <groupId>org.testcontainers</groupId>
  133. <artifactId>junit-jupiter</artifactId>
  134. <version>${test.containers.version}</version>
  135. <scope>test</scope>
  136. </dependency>
  137. <dependency>
  138. <groupId>org.junit.jupiter</groupId>
  139. <artifactId>junit-jupiter-engine</artifactId>
  140. <version>${junit-jupiter-engine.version}</version>
  141. <scope>test</scope>
  142. </dependency>
  143. <dependency>
  144. <groupId>org.mockito</groupId>
  145. <artifactId>mockito-core</artifactId>
  146. <version>${mockito.version}</version>
  147. <scope>test</scope>
  148. </dependency>
  149. <dependency>
  150. <groupId>org.mockito</groupId>
  151. <artifactId>mockito-junit-jupiter</artifactId>
  152. <version>${mockito.version}</version>
  153. <scope>test</scope>
  154. </dependency>
  155. <dependency>
  156. <groupId>org.assertj</groupId>
  157. <artifactId>assertj-core</artifactId>
  158. <version>${assertj.version}</version>
  159. <scope>test</scope>
  160. </dependency>
  161. </dependencies>
  162. <build>
  163. <plugins>
  164. <plugin>
  165. <groupId>org.springframework.boot</groupId>
  166. <artifactId>spring-boot-maven-plugin</artifactId>
  167. <version>${spring-boot.version}</version>
  168. <executions>
  169. <execution>
  170. <goals>
  171. <goal>repackage</goal>
  172. </goals>
  173. </execution>
  174. </executions>
  175. </plugin>
  176. <plugin>
  177. <groupId>org.apache.maven.plugins</groupId>
  178. <artifactId>maven-compiler-plugin</artifactId>
  179. <version>${maven-compiler-plugin.version}</version>
  180. <configuration>
  181. <source>${maven.compiler.source}</source>
  182. <target>${maven.compiler.target}</target>
  183. <annotationProcessorPaths>
  184. <path>
  185. <groupId>org.mapstruct</groupId>
  186. <artifactId>mapstruct-processor</artifactId>
  187. <version>${org.mapstruct.version}</version>
  188. </path>
  189. <path>
  190. <groupId>org.projectlombok</groupId>
  191. <artifactId>lombok</artifactId>
  192. <version>${org.projectlombok.version}</version>
  193. </path>
  194. <path>
  195. <groupId>org.springframework.boot</groupId>
  196. <artifactId>spring-boot-configuration-processor</artifactId>
  197. <version>${spring-boot.version}</version>
  198. </path>
  199. </annotationProcessorPaths>
  200. </configuration>
  201. </plugin>
  202. <plugin>
  203. <groupId>org.apache.maven.plugins</groupId>
  204. <artifactId>maven-surefire-plugin</artifactId>
  205. <version>${maven-surefire-plugin.version}</version>
  206. <configuration>
  207. <argLine> --illegal-access=permit
  208. </argLine>
  209. </configuration>
  210. </plugin>
  211. <plugin>
  212. <groupId>org.apache.maven.plugins</groupId>
  213. <artifactId>maven-checkstyle-plugin</artifactId>
  214. <version>3.1.1</version>
  215. <dependencies>
  216. <dependency>
  217. <groupId>com.puppycrawl.tools</groupId>
  218. <artifactId>checkstyle</artifactId>
  219. <version>8.32</version>
  220. </dependency>
  221. </dependencies>
  222. <executions>
  223. <execution>
  224. <id>checkstyle</id>
  225. <phase>validate</phase>
  226. <goals>
  227. <goal>check</goal>
  228. </goals>
  229. <configuration>
  230. <violationSeverity>warning</violationSeverity>
  231. <failOnViolation>true</failOnViolation>
  232. <failsOnError>true</failsOnError>
  233. <includeTestSourceDirectory>true</includeTestSourceDirectory>
  234. <configLocation>file:${basedir}/../etc/checkstyle/checkstyle.xml</configLocation>
  235. <headerLocation>file:${basedir}/../etc/checkstyle/apache-header.txt</headerLocation>
  236. </configuration>
  237. </execution>
  238. </executions>
  239. </plugin>
  240. </plugins>
  241. </build>
  242. <profiles>
  243. <profile>
  244. <id>prod</id>
  245. <build>
  246. <plugins>
  247. <plugin>
  248. <groupId>pl.project13.maven</groupId>
  249. <artifactId>git-commit-id-plugin</artifactId>
  250. <version>4.0.0</version>
  251. <executions>
  252. <execution>
  253. <id>get-the-git-infos</id>
  254. <goals>
  255. <goal>revision</goal>
  256. </goals>
  257. <phase>initialize</phase>
  258. </execution>
  259. </executions>
  260. <configuration>
  261. <generateGitPropertiesFile>true</generateGitPropertiesFile>
  262. <generateGitPropertiesFilename>${project.build.outputDirectory}/git.properties</generateGitPropertiesFilename>
  263. <includeOnlyProperties>
  264. <includeOnlyProperty>^git.build.(time|version)$</includeOnlyProperty>
  265. <includeOnlyProperty>^git.commit.id.(abbrev|full)$</includeOnlyProperty>
  266. </includeOnlyProperties>
  267. <commitIdGenerationMode>full</commitIdGenerationMode>
  268. </configuration>
  269. </plugin>
  270. <plugin>
  271. <artifactId>maven-resources-plugin</artifactId>
  272. <executions>
  273. <execution>
  274. <id>copy-resources</id>
  275. <phase>process-classes</phase>
  276. <goals>
  277. <goal>copy-resources</goal>
  278. </goals>
  279. <configuration>
  280. <outputDirectory>${basedir}/target/classes/static</outputDirectory>
  281. <resources>
  282. <resource>
  283. <directory>../kafka-ui-react-app/build</directory>
  284. </resource>
  285. </resources>
  286. </configuration>
  287. </execution>
  288. </executions>
  289. </plugin>
  290. <plugin>
  291. <groupId>com.github.eirslett</groupId>
  292. <artifactId>frontend-maven-plugin</artifactId>
  293. <version>${frontend-maven-plugin.version}</version>
  294. <configuration>
  295. <workingDirectory>../kafka-ui-react-app</workingDirectory>
  296. <environmentVariables>
  297. <REACT_APP_TAG>v${project.version}</REACT_APP_TAG>
  298. <REACT_APP_COMMIT>${git.commit.id.abbrev}</REACT_APP_COMMIT>
  299. </environmentVariables>
  300. </configuration>
  301. <executions>
  302. <execution>
  303. <id>install node and npm</id>
  304. <goals>
  305. <goal>install-node-and-npm</goal>
  306. </goals>
  307. <configuration>
  308. <nodeVersion>${node.version}</nodeVersion>
  309. </configuration>
  310. </execution>
  311. <execution>
  312. <id>npm install</id>
  313. <goals>
  314. <goal>npm</goal>
  315. </goals>
  316. <configuration>
  317. <arguments>install</arguments>
  318. </configuration>
  319. </execution>
  320. <execution>
  321. <id>npm run build</id>
  322. <goals>
  323. <goal>npm</goal>
  324. </goals>
  325. <configuration>
  326. <arguments>run build</arguments>
  327. </configuration>
  328. </execution>
  329. </executions>
  330. </plugin>
  331. <plugin>
  332. <groupId>com.spotify</groupId>
  333. <artifactId>dockerfile-maven-plugin</artifactId>
  334. <version>${dockerfile-maven-plugin.version}</version>
  335. <configuration>
  336. <skipPush>true</skipPush>
  337. </configuration>
  338. <executions>
  339. <execution>
  340. <id>default</id>
  341. <phase>package</phase>
  342. <goals>
  343. <goal>build</goal>
  344. </goals>
  345. <configuration>
  346. <tag>${git.revision}</tag>
  347. <repository>provectuslabs/kafka-ui</repository>
  348. <buildArgs>
  349. <JAR_FILE>${project.build.finalName}.jar</JAR_FILE>
  350. <JAR_NAME>${project.artifactId}.jar</JAR_NAME>
  351. </buildArgs>
  352. </configuration>
  353. </execution>
  354. </executions>
  355. </plugin>
  356. </plugins>
  357. </build>
  358. </profile>
  359. </profiles>
  360. </project>