pom.xml 20 KB

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