pom.xml 21 KB

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