pom.xml 21 KB

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