pom.xml 20 KB

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