pom.xml 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530
  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. <properties>
  13. <jacoco.version>0.8.10</jacoco.version>
  14. <sonar.java.coveragePlugin>jacoco</sonar.java.coveragePlugin>
  15. <sonar.dynamicAnalysis>reuseReports</sonar.dynamicAnalysis>
  16. <sonar.jacoco.reportPath>${project.basedir}/target/jacoco.exec</sonar.jacoco.reportPath>
  17. <sonar.coverage.jacoco.xmlReportPaths>${project.basedir}/target/site/jacoco/jacoco.xml</sonar.coverage.jacoco.xmlReportPaths>
  18. <sonar.language>java</sonar.language>
  19. </properties>
  20. <dependencies>
  21. <dependency>
  22. <groupId>org.springframework.boot</groupId>
  23. <artifactId>spring-boot-starter-webflux</artifactId>
  24. </dependency>
  25. <dependency>
  26. <groupId>org.springframework.boot</groupId>
  27. <artifactId>spring-boot-starter-security</artifactId>
  28. </dependency>
  29. <dependency>
  30. <groupId>org.springframework.boot</groupId>
  31. <artifactId>spring-boot-actuator</artifactId>
  32. </dependency>
  33. <dependency>
  34. <groupId>org.springframework.boot</groupId>
  35. <artifactId>spring-boot-starter-oauth2-client</artifactId>
  36. </dependency>
  37. <dependency>
  38. <groupId>com.provectus</groupId>
  39. <artifactId>kafka-ui-contract</artifactId>
  40. <version>${project.version}</version>
  41. </dependency>
  42. <dependency>
  43. <groupId>com.provectus</groupId>
  44. <artifactId>kafka-ui-serde-api</artifactId>
  45. <version>${kafka-ui-serde-api.version}</version>
  46. </dependency>
  47. <dependency>
  48. <groupId>org.apache.kafka</groupId>
  49. <artifactId>kafka-clients</artifactId>
  50. <version>${kafka-clients.version}</version>
  51. </dependency>
  52. <dependency>
  53. <groupId>org.apache.commons</groupId>
  54. <artifactId>commons-lang3</artifactId>
  55. <version>3.12.0</version>
  56. </dependency>
  57. <dependency>
  58. <groupId>org.projectlombok</groupId>
  59. <artifactId>lombok</artifactId>
  60. <scope>provided</scope>
  61. </dependency>
  62. <dependency>
  63. <groupId>org.mapstruct</groupId>
  64. <artifactId>mapstruct</artifactId>
  65. <version>${org.mapstruct.version}</version>
  66. </dependency>
  67. <dependency>
  68. <groupId>io.confluent</groupId>
  69. <artifactId>kafka-schema-registry-client</artifactId>
  70. <version>${confluent.version}</version>
  71. </dependency>
  72. <dependency>
  73. <groupId>io.confluent</groupId>
  74. <artifactId>kafka-avro-serializer</artifactId>
  75. <version>${confluent.version}</version>
  76. </dependency>
  77. <dependency>
  78. <groupId>io.confluent</groupId>
  79. <artifactId>kafka-json-schema-serializer</artifactId>
  80. <version>${confluent.version}</version>
  81. </dependency>
  82. <dependency>
  83. <groupId>io.confluent</groupId>
  84. <artifactId>kafka-protobuf-serializer</artifactId>
  85. <version>${confluent.version}</version>
  86. </dependency>
  87. <dependency>
  88. <groupId>software.amazon.msk</groupId>
  89. <artifactId>aws-msk-iam-auth</artifactId>
  90. <version>1.1.7</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-logging</artifactId>
  100. </dependency>
  101. <dependency>
  102. <groupId>io.projectreactor.addons</groupId>
  103. <artifactId>reactor-extra</artifactId>
  104. </dependency>
  105. <dependency>
  106. <groupId>org.json</groupId>
  107. <artifactId>json</artifactId>
  108. <version>${org.json.version}</version>
  109. </dependency>
  110. <dependency>
  111. <groupId>io.micrometer</groupId>
  112. <artifactId>micrometer-registry-prometheus</artifactId>
  113. <scope>runtime</scope>
  114. </dependency>
  115. <dependency>
  116. <groupId>org.springframework.boot</groupId>
  117. <artifactId>spring-boot-starter-test</artifactId>
  118. <scope>test</scope>
  119. </dependency>
  120. <dependency>
  121. <groupId>io.projectreactor</groupId>
  122. <artifactId>reactor-test</artifactId>
  123. <scope>test</scope>
  124. </dependency>
  125. <dependency>
  126. <groupId>org.apache.commons</groupId>
  127. <artifactId>commons-pool2</artifactId>
  128. <version>${apache.commons.version}</version>
  129. </dependency>
  130. <dependency>
  131. <groupId>org.testcontainers</groupId>
  132. <artifactId>testcontainers</artifactId>
  133. <scope>test</scope>
  134. </dependency>
  135. <dependency>
  136. <groupId>org.testcontainers</groupId>
  137. <artifactId>kafka</artifactId>
  138. <scope>test</scope>
  139. </dependency>
  140. <dependency>
  141. <groupId>org.testcontainers</groupId>
  142. <artifactId>junit-jupiter</artifactId>
  143. <scope>test</scope>
  144. </dependency>
  145. <dependency>
  146. <groupId>org.junit.jupiter</groupId>
  147. <artifactId>junit-jupiter-engine</artifactId>
  148. <scope>test</scope>
  149. </dependency>
  150. <dependency>
  151. <groupId>org.mockito</groupId>
  152. <artifactId>mockito-core</artifactId>
  153. <version>${mockito.version}</version>
  154. <scope>test</scope>
  155. </dependency>
  156. <dependency>
  157. <groupId>org.mockito</groupId>
  158. <artifactId>mockito-junit-jupiter</artifactId>
  159. <version>${mockito.version}</version>
  160. <scope>test</scope>
  161. </dependency>
  162. <dependency>
  163. <groupId>net.bytebuddy</groupId>
  164. <artifactId>byte-buddy</artifactId>
  165. <version>${byte-buddy.version}</version>
  166. <scope>test</scope>
  167. </dependency>
  168. <dependency>
  169. <groupId>org.assertj</groupId>
  170. <artifactId>assertj-core</artifactId>
  171. <version>${assertj.version}</version>
  172. <scope>test</scope>
  173. </dependency>
  174. <dependency>
  175. <groupId>com.github.java-json-tools</groupId>
  176. <artifactId>json-schema-validator</artifactId>
  177. <version>2.2.14</version>
  178. <scope>test</scope>
  179. </dependency>
  180. <dependency>
  181. <groupId>com.squareup.okhttp3</groupId>
  182. <artifactId>mockwebserver</artifactId>
  183. <version>${okhttp3.mockwebserver.version}</version>
  184. <scope>test</scope>
  185. </dependency>
  186. <dependency>
  187. <groupId>com.squareup.okhttp3</groupId>
  188. <artifactId>okhttp</artifactId>
  189. <version>${okhttp3.mockwebserver.version}</version>
  190. <scope>test</scope>
  191. </dependency>
  192. <dependency>
  193. <groupId>org.springframework.boot</groupId>
  194. <artifactId>spring-boot-starter-actuator</artifactId>
  195. </dependency>
  196. <dependency>
  197. <groupId>org.antlr</groupId>
  198. <artifactId>antlr4-runtime</artifactId>
  199. <version>${antlr4-maven-plugin.version}</version>
  200. </dependency>
  201. <dependency>
  202. <groupId>org.opendatadiscovery</groupId>
  203. <artifactId>oddrn-generator-java</artifactId>
  204. <version>${odd-oddrn-generator.version}</version>
  205. </dependency>
  206. <dependency>
  207. <groupId>org.opendatadiscovery</groupId>
  208. <artifactId>ingestion-contract-client</artifactId>
  209. <exclusions>
  210. <exclusion>
  211. <groupId>org.springframework.boot</groupId>
  212. <artifactId>spring-boot-starter-webflux</artifactId>
  213. </exclusion>
  214. <exclusion>
  215. <groupId>io.projectreactor</groupId>
  216. <artifactId>reactor-core</artifactId>
  217. </exclusion>
  218. <exclusion>
  219. <groupId>io.projectreactor.ipc</groupId>
  220. <artifactId>reactor-netty</artifactId>
  221. </exclusion>
  222. </exclusions>
  223. <version>${odd-oddrn-client.version}</version>
  224. </dependency>
  225. <dependency>
  226. <groupId>org.springframework.security</groupId>
  227. <artifactId>spring-security-ldap</artifactId>
  228. </dependency>
  229. <dependency>
  230. <groupId>io.prometheus</groupId>
  231. <artifactId>simpleclient</artifactId>
  232. </dependency>
  233. <dependency>
  234. <groupId>io.prometheus</groupId>
  235. <artifactId>simpleclient_common</artifactId>
  236. </dependency>
  237. <dependency>
  238. <groupId>io.prometheus</groupId>
  239. <artifactId>simpleclient_pushgateway</artifactId>
  240. </dependency>
  241. <dependency>
  242. <groupId>org.xerial.snappy</groupId>
  243. <artifactId>snappy-java</artifactId>
  244. <version>1.1.8.4</version>
  245. </dependency>
  246. <dependency>
  247. <groupId>org.codehaus.groovy</groupId>
  248. <artifactId>groovy-jsr223</artifactId>
  249. <version>${groovy.version}</version>
  250. </dependency>
  251. <dependency>
  252. <groupId>org.codehaus.groovy</groupId>
  253. <artifactId>groovy-json</artifactId>
  254. <version>${groovy.version}</version>
  255. </dependency>
  256. <dependency>
  257. <groupId>org.apache.datasketches</groupId>
  258. <artifactId>datasketches-java</artifactId>
  259. <version>${datasketches-java.version}</version>
  260. </dependency>
  261. <dependency>
  262. <groupId>org.springframework.boot</groupId>
  263. <artifactId>spring-boot-devtools</artifactId>
  264. <optional>true</optional>
  265. </dependency>
  266. </dependencies>
  267. <build>
  268. <plugins>
  269. <plugin>
  270. <groupId>org.springframework.boot</groupId>
  271. <artifactId>spring-boot-maven-plugin</artifactId>
  272. <version>${spring-boot.version}</version>
  273. <executions>
  274. <execution>
  275. <goals>
  276. <goal>repackage</goal>
  277. <goal>build-info</goal>
  278. </goals>
  279. </execution>
  280. </executions>
  281. </plugin>
  282. <plugin>
  283. <groupId>org.apache.maven.plugins</groupId>
  284. <artifactId>maven-compiler-plugin</artifactId>
  285. <configuration>
  286. <annotationProcessorPaths>
  287. <path>
  288. <groupId>org.mapstruct</groupId>
  289. <artifactId>mapstruct-processor</artifactId>
  290. <version>${org.mapstruct.version}</version>
  291. </path>
  292. <path>
  293. <groupId>org.projectlombok</groupId>
  294. <artifactId>lombok</artifactId>
  295. <version>${org.projectlombok.version}</version>
  296. </path>
  297. <path>
  298. <groupId>org.projectlombok</groupId>
  299. <artifactId>lombok-mapstruct-binding</artifactId>
  300. <version>0.2.0</version>
  301. </path>
  302. <path>
  303. <groupId>org.springframework.boot</groupId>
  304. <artifactId>spring-boot-configuration-processor</artifactId>
  305. <version>${spring-boot.version}</version>
  306. </path>
  307. </annotationProcessorPaths>
  308. </configuration>
  309. </plugin>
  310. <plugin>
  311. <groupId>org.apache.maven.plugins</groupId>
  312. <artifactId>maven-surefire-plugin</artifactId>
  313. <configuration>
  314. <argLine>@{argLine} --illegal-access=permit</argLine>
  315. </configuration>
  316. </plugin>
  317. <plugin>
  318. <groupId>org.apache.maven.plugins</groupId>
  319. <artifactId>maven-checkstyle-plugin</artifactId>
  320. <version>3.3.0</version>
  321. <dependencies>
  322. <dependency>
  323. <groupId>com.puppycrawl.tools</groupId>
  324. <artifactId>checkstyle</artifactId>
  325. <version>10.3.1</version>
  326. </dependency>
  327. </dependencies>
  328. <executions>
  329. <execution>
  330. <id>checkstyle</id>
  331. <phase>validate</phase>
  332. <goals>
  333. <goal>check</goal>
  334. </goals>
  335. <configuration>
  336. <violationSeverity>warning</violationSeverity>
  337. <failOnViolation>true</failOnViolation>
  338. <failsOnError>true</failsOnError>
  339. <includeTestSourceDirectory>true</includeTestSourceDirectory>
  340. <configLocation>file:${basedir}/../etc/checkstyle/checkstyle.xml</configLocation>
  341. <headerLocation>file:${basedir}/../etc/checkstyle/apache-header.txt</headerLocation>
  342. </configuration>
  343. </execution>
  344. </executions>
  345. </plugin>
  346. <plugin>
  347. <groupId>org.antlr</groupId>
  348. <artifactId>antlr4-maven-plugin</artifactId>
  349. <version>${antlr4-maven-plugin.version}</version>
  350. <configuration>
  351. <visitor>false</visitor>
  352. </configuration>
  353. <executions>
  354. <execution>
  355. <phase>generate-sources</phase>
  356. <goals>
  357. <goal>antlr4</goal>
  358. </goals>
  359. </execution>
  360. </executions>
  361. </plugin>
  362. <plugin>
  363. <groupId>org.jacoco</groupId>
  364. <artifactId>jacoco-maven-plugin</artifactId>
  365. <version>${jacoco.version}</version>
  366. <executions>
  367. <execution>
  368. <id>prepare-agent</id>
  369. <goals>
  370. <goal>prepare-agent</goal>
  371. </goals>
  372. </execution>
  373. <execution>
  374. <id>report</id>
  375. <goals>
  376. <goal>report</goal>
  377. </goals>
  378. <configuration>
  379. <formats>
  380. <format>XML</format>
  381. </formats>
  382. </configuration>
  383. </execution>
  384. </executions>
  385. </plugin>
  386. </plugins>
  387. </build>
  388. <profiles>
  389. <profile>
  390. <id>prod</id>
  391. <build>
  392. <plugins>
  393. <plugin>
  394. <groupId>pl.project13.maven</groupId>
  395. <artifactId>git-commit-id-plugin</artifactId>
  396. <version>4.0.0</version>
  397. <executions>
  398. <execution>
  399. <id>get-the-git-infos</id>
  400. <goals>
  401. <goal>revision</goal>
  402. </goals>
  403. <phase>initialize</phase>
  404. </execution>
  405. </executions>
  406. <configuration>
  407. <generateGitPropertiesFile>true</generateGitPropertiesFile>
  408. <generateGitPropertiesFilename>${project.build.outputDirectory}/git.properties</generateGitPropertiesFilename>
  409. <includeOnlyProperties>
  410. <includeOnlyProperty>^git.build.(time|version)$</includeOnlyProperty>
  411. <includeOnlyProperty>^git.commit.id.(abbrev|full)$</includeOnlyProperty>
  412. </includeOnlyProperties>
  413. <commitIdGenerationMode>full</commitIdGenerationMode>
  414. </configuration>
  415. </plugin>
  416. <plugin>
  417. <artifactId>maven-resources-plugin</artifactId>
  418. <executions>
  419. <execution>
  420. <id>copy-resources</id>
  421. <phase>process-classes</phase>
  422. <goals>
  423. <goal>copy-resources</goal>
  424. </goals>
  425. <configuration>
  426. <outputDirectory>${basedir}/target/classes/static</outputDirectory>
  427. <resources>
  428. <resource>
  429. <directory>../kafka-ui-react-app/build</directory>
  430. </resource>
  431. </resources>
  432. </configuration>
  433. </execution>
  434. </executions>
  435. </plugin>
  436. <plugin>
  437. <groupId>com.github.eirslett</groupId>
  438. <artifactId>frontend-maven-plugin</artifactId>
  439. <version>${frontend-maven-plugin.version}</version>
  440. <configuration>
  441. <skip>${skipUIBuild}</skip>
  442. <workingDirectory>../kafka-ui-react-app</workingDirectory>
  443. <environmentVariables>
  444. <VITE_TAG>${project.version}</VITE_TAG>
  445. <VITE_COMMIT>${git.commit.id.abbrev}</VITE_COMMIT>
  446. </environmentVariables>
  447. </configuration>
  448. <executions>
  449. <execution>
  450. <id>install node and pnpm</id>
  451. <goals>
  452. <goal>install-node-and-pnpm</goal>
  453. </goals>
  454. <configuration>
  455. <nodeVersion>${node.version}</nodeVersion>
  456. <pnpmVersion>${pnpm.version}</pnpmVersion>
  457. </configuration>
  458. </execution>
  459. <execution>
  460. <id>pnpm install</id>
  461. <goals>
  462. <goal>pnpm</goal>
  463. </goals>
  464. <configuration>
  465. <arguments>install</arguments>
  466. </configuration>
  467. </execution>
  468. <execution>
  469. <id>pnpm build</id>
  470. <goals>
  471. <goal>pnpm</goal>
  472. </goals>
  473. <configuration>
  474. <arguments>build</arguments>
  475. </configuration>
  476. </execution>
  477. </executions>
  478. </plugin>
  479. <plugin>
  480. <groupId>io.fabric8</groupId>
  481. <artifactId>docker-maven-plugin</artifactId>
  482. <version>${fabric8-maven-plugin.version}</version>
  483. <configuration>
  484. <verbose>true</verbose>
  485. <images>
  486. <image>
  487. <name>provectuslabs/kafka-ui:${git.revision}</name>
  488. <build>
  489. <contextDir>${project.basedir}</contextDir>
  490. <args>
  491. <JAR_FILE>${project.build.finalName}.jar</JAR_FILE>
  492. </args>
  493. </build>
  494. </image>
  495. </images>
  496. </configuration>
  497. <executions>
  498. <execution>
  499. <id>default</id>
  500. <phase>package</phase>
  501. <goals>
  502. <goal>build</goal>
  503. </goals>
  504. </execution>
  505. </executions>
  506. </plugin>
  507. </plugins>
  508. </build>
  509. </profile>
  510. </profiles>
  511. </project>