pom.xml 21 KB

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