pom.xml 21 KB

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