pom.xml 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513
  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>org.codehaus.groovy</groupId>
  231. <artifactId>groovy-jsr223</artifactId>
  232. <version>${groovy.version}</version>
  233. </dependency>
  234. <dependency>
  235. <groupId>org.codehaus.groovy</groupId>
  236. <artifactId>groovy-json</artifactId>
  237. <version>${groovy.version}</version>
  238. </dependency>
  239. <dependency>
  240. <groupId>org.apache.datasketches</groupId>
  241. <artifactId>datasketches-java</artifactId>
  242. <version>${datasketches-java.version}</version>
  243. </dependency>
  244. <dependency>
  245. <groupId>org.springframework.boot</groupId>
  246. <artifactId>spring-boot-devtools</artifactId>
  247. <optional>true</optional>
  248. </dependency>
  249. </dependencies>
  250. <build>
  251. <plugins>
  252. <plugin>
  253. <groupId>org.springframework.boot</groupId>
  254. <artifactId>spring-boot-maven-plugin</artifactId>
  255. <version>${spring-boot.version}</version>
  256. <executions>
  257. <execution>
  258. <goals>
  259. <goal>repackage</goal>
  260. <goal>build-info</goal>
  261. </goals>
  262. </execution>
  263. </executions>
  264. </plugin>
  265. <plugin>
  266. <groupId>org.apache.maven.plugins</groupId>
  267. <artifactId>maven-compiler-plugin</artifactId>
  268. <configuration>
  269. <annotationProcessorPaths>
  270. <path>
  271. <groupId>org.mapstruct</groupId>
  272. <artifactId>mapstruct-processor</artifactId>
  273. <version>${org.mapstruct.version}</version>
  274. </path>
  275. <path>
  276. <groupId>org.projectlombok</groupId>
  277. <artifactId>lombok</artifactId>
  278. <version>${org.projectlombok.version}</version>
  279. </path>
  280. <path>
  281. <groupId>org.projectlombok</groupId>
  282. <artifactId>lombok-mapstruct-binding</artifactId>
  283. <version>0.2.0</version>
  284. </path>
  285. <path>
  286. <groupId>org.springframework.boot</groupId>
  287. <artifactId>spring-boot-configuration-processor</artifactId>
  288. <version>${spring-boot.version}</version>
  289. </path>
  290. </annotationProcessorPaths>
  291. </configuration>
  292. </plugin>
  293. <plugin>
  294. <groupId>org.apache.maven.plugins</groupId>
  295. <artifactId>maven-surefire-plugin</artifactId>
  296. <configuration>
  297. <argLine>@{argLine} --illegal-access=permit</argLine>
  298. </configuration>
  299. </plugin>
  300. <plugin>
  301. <groupId>org.apache.maven.plugins</groupId>
  302. <artifactId>maven-checkstyle-plugin</artifactId>
  303. <version>3.3.0</version>
  304. <dependencies>
  305. <dependency>
  306. <groupId>com.puppycrawl.tools</groupId>
  307. <artifactId>checkstyle</artifactId>
  308. <version>10.3.1</version>
  309. </dependency>
  310. </dependencies>
  311. <executions>
  312. <execution>
  313. <id>checkstyle</id>
  314. <phase>validate</phase>
  315. <goals>
  316. <goal>check</goal>
  317. </goals>
  318. <configuration>
  319. <violationSeverity>warning</violationSeverity>
  320. <failOnViolation>true</failOnViolation>
  321. <failsOnError>true</failsOnError>
  322. <includeTestSourceDirectory>true</includeTestSourceDirectory>
  323. <configLocation>file:${basedir}/../etc/checkstyle/checkstyle.xml</configLocation>
  324. <headerLocation>file:${basedir}/../etc/checkstyle/apache-header.txt</headerLocation>
  325. </configuration>
  326. </execution>
  327. </executions>
  328. </plugin>
  329. <plugin>
  330. <groupId>org.antlr</groupId>
  331. <artifactId>antlr4-maven-plugin</artifactId>
  332. <version>${antlr4-maven-plugin.version}</version>
  333. <configuration>
  334. <visitor>false</visitor>
  335. </configuration>
  336. <executions>
  337. <execution>
  338. <phase>generate-sources</phase>
  339. <goals>
  340. <goal>antlr4</goal>
  341. </goals>
  342. </execution>
  343. </executions>
  344. </plugin>
  345. <plugin>
  346. <groupId>org.jacoco</groupId>
  347. <artifactId>jacoco-maven-plugin</artifactId>
  348. <version>${jacoco.version}</version>
  349. <executions>
  350. <execution>
  351. <id>prepare-agent</id>
  352. <goals>
  353. <goal>prepare-agent</goal>
  354. </goals>
  355. </execution>
  356. <execution>
  357. <id>report</id>
  358. <goals>
  359. <goal>report</goal>
  360. </goals>
  361. <configuration>
  362. <formats>
  363. <format>XML</format>
  364. </formats>
  365. </configuration>
  366. </execution>
  367. </executions>
  368. </plugin>
  369. </plugins>
  370. </build>
  371. <profiles>
  372. <profile>
  373. <id>prod</id>
  374. <build>
  375. <plugins>
  376. <plugin>
  377. <groupId>pl.project13.maven</groupId>
  378. <artifactId>git-commit-id-plugin</artifactId>
  379. <version>4.9.10</version>
  380. <executions>
  381. <execution>
  382. <id>get-the-git-infos</id>
  383. <goals>
  384. <goal>revision</goal>
  385. </goals>
  386. <phase>initialize</phase>
  387. </execution>
  388. </executions>
  389. <configuration>
  390. <generateGitPropertiesFile>true</generateGitPropertiesFile>
  391. <generateGitPropertiesFilename>${project.build.outputDirectory}/git.properties</generateGitPropertiesFilename>
  392. <includeOnlyProperties>
  393. <includeOnlyProperty>^git.build.(time|version)$</includeOnlyProperty>
  394. <includeOnlyProperty>^git.commit.id.(abbrev|full)$</includeOnlyProperty>
  395. </includeOnlyProperties>
  396. <commitIdGenerationMode>full</commitIdGenerationMode>
  397. </configuration>
  398. </plugin>
  399. <plugin>
  400. <artifactId>maven-resources-plugin</artifactId>
  401. <executions>
  402. <execution>
  403. <id>copy-resources</id>
  404. <phase>process-classes</phase>
  405. <goals>
  406. <goal>copy-resources</goal>
  407. </goals>
  408. <configuration>
  409. <outputDirectory>${basedir}/target/classes/static</outputDirectory>
  410. <resources>
  411. <resource>
  412. <directory>../kafka-ui-react-app/build</directory>
  413. </resource>
  414. </resources>
  415. </configuration>
  416. </execution>
  417. </executions>
  418. </plugin>
  419. <plugin>
  420. <groupId>com.github.eirslett</groupId>
  421. <artifactId>frontend-maven-plugin</artifactId>
  422. <version>${frontend-maven-plugin.version}</version>
  423. <configuration>
  424. <skip>${skipUIBuild}</skip>
  425. <workingDirectory>../kafka-ui-react-app</workingDirectory>
  426. <environmentVariables>
  427. <VITE_TAG>${project.version}</VITE_TAG>
  428. <VITE_COMMIT>${git.commit.id.abbrev}</VITE_COMMIT>
  429. </environmentVariables>
  430. </configuration>
  431. <executions>
  432. <execution>
  433. <id>install node and pnpm</id>
  434. <goals>
  435. <goal>install-node-and-pnpm</goal>
  436. </goals>
  437. <configuration>
  438. <nodeVersion>${node.version}</nodeVersion>
  439. <pnpmVersion>${pnpm.version}</pnpmVersion>
  440. </configuration>
  441. </execution>
  442. <execution>
  443. <id>pnpm install</id>
  444. <goals>
  445. <goal>pnpm</goal>
  446. </goals>
  447. <configuration>
  448. <arguments>install</arguments>
  449. </configuration>
  450. </execution>
  451. <execution>
  452. <id>pnpm build</id>
  453. <goals>
  454. <goal>pnpm</goal>
  455. </goals>
  456. <configuration>
  457. <arguments>build</arguments>
  458. </configuration>
  459. </execution>
  460. </executions>
  461. </plugin>
  462. <plugin>
  463. <groupId>io.fabric8</groupId>
  464. <artifactId>docker-maven-plugin</artifactId>
  465. <version>${fabric8-maven-plugin.version}</version>
  466. <configuration>
  467. <verbose>true</verbose>
  468. <images>
  469. <image>
  470. <name>provectuslabs/kafka-ui:${git.revision}</name>
  471. <build>
  472. <contextDir>${project.basedir}</contextDir>
  473. <args>
  474. <JAR_FILE>${project.build.finalName}.jar</JAR_FILE>
  475. </args>
  476. </build>
  477. </image>
  478. </images>
  479. </configuration>
  480. <executions>
  481. <execution>
  482. <id>default</id>
  483. <phase>package</phase>
  484. <goals>
  485. <goal>build</goal>
  486. </goals>
  487. </execution>
  488. </executions>
  489. </plugin>
  490. </plugins>
  491. </build>
  492. </profile>
  493. </profiles>
  494. </project>