pom.xml 21 KB

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