pom.xml 20 KB

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