pom.xml 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430
  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" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  4. <parent>
  5. <artifactId>kafka-ui</artifactId>
  6. <groupId>com.provectus</groupId>
  7. <version>${buildVersion}</version>
  8. </parent>
  9. <modelVersion>4.0.0</modelVersion>
  10. <artifactId>kafka-ui-api</artifactId>
  11. <dependencyManagement>
  12. <dependencies>
  13. <dependency>
  14. <groupId>org.springframework.boot</groupId>
  15. <artifactId>spring-boot-dependencies</artifactId>
  16. <version>${spring-boot.version}</version>
  17. <type>pom</type>
  18. <scope>import</scope>
  19. </dependency>
  20. </dependencies>
  21. </dependencyManagement>
  22. <dependencies>
  23. <dependency>
  24. <groupId>org.springframework.boot</groupId>
  25. <artifactId>spring-boot-starter-webflux</artifactId>
  26. </dependency>
  27. <dependency>
  28. <groupId>org.springframework.boot</groupId>
  29. <artifactId>spring-boot-starter-security</artifactId>
  30. </dependency>
  31. <dependency>
  32. <groupId>org.springframework.boot</groupId>
  33. <artifactId>spring-boot-actuator</artifactId>
  34. </dependency>
  35. <dependency>
  36. <groupId>org.springframework.boot</groupId>
  37. <artifactId>spring-boot-starter-oauth2-client</artifactId>
  38. </dependency>
  39. <dependency>
  40. <groupId>com.provectus</groupId>
  41. <artifactId>kafka-ui-contract</artifactId>
  42. <version>${project.version}</version>
  43. </dependency>
  44. <dependency>
  45. <groupId>org.apache.kafka</groupId>
  46. <artifactId>kafka-clients</artifactId>
  47. <version>${kafka-clients.version}</version>
  48. </dependency>
  49. <dependency>
  50. <groupId>org.apache.commons</groupId>
  51. <artifactId>commons-lang3</artifactId>
  52. <version>3.9</version>
  53. </dependency>
  54. <dependency>
  55. <groupId>org.apache.zookeeper</groupId>
  56. <artifactId>zookeeper</artifactId>
  57. <version>${zookeper.version}</version>
  58. <exclusions>
  59. <exclusion>
  60. <groupId>org.slf4j</groupId>
  61. <artifactId>slf4j-log4j12</artifactId>
  62. </exclusion>
  63. </exclusions>
  64. </dependency>
  65. <dependency>
  66. <groupId>org.projectlombok</groupId>
  67. <artifactId>lombok</artifactId>
  68. <scope>provided</scope>
  69. </dependency>
  70. <dependency>
  71. <groupId>org.mapstruct</groupId>
  72. <artifactId>mapstruct</artifactId>
  73. <version>${org.mapstruct.version}</version>
  74. </dependency>
  75. <dependency>
  76. <groupId>io.confluent</groupId>
  77. <artifactId>kafka-schema-registry-client</artifactId>
  78. <version>${confluent.version}</version>
  79. </dependency>
  80. <dependency>
  81. <groupId>io.confluent</groupId>
  82. <artifactId>kafka-avro-serializer</artifactId>
  83. <version>${confluent.version}</version>
  84. </dependency>
  85. <dependency>
  86. <groupId>io.confluent</groupId>
  87. <artifactId>kafka-json-schema-serializer</artifactId>
  88. <version>${confluent.version}</version>
  89. </dependency>
  90. <dependency>
  91. <groupId>io.confluent</groupId>
  92. <artifactId>kafka-protobuf-serializer</artifactId>
  93. <version>${confluent.version}</version>
  94. </dependency>
  95. <dependency>
  96. <groupId>software.amazon.msk</groupId>
  97. <artifactId>aws-msk-iam-auth</artifactId>
  98. <version>1.1.0</version>
  99. </dependency>
  100. <dependency>
  101. <groupId>org.apache.avro</groupId>
  102. <artifactId>avro</artifactId>
  103. <version>${avro.version}</version>
  104. </dependency>
  105. <dependency>
  106. <groupId>org.springframework.boot</groupId>
  107. <artifactId>spring-boot-starter-logging</artifactId>
  108. </dependency>
  109. <dependency>
  110. <groupId>io.projectreactor.addons</groupId>
  111. <artifactId>reactor-extra</artifactId>
  112. </dependency>
  113. <dependency>
  114. <groupId>org.springframework.boot</groupId>
  115. <artifactId>spring-boot-starter-test</artifactId>
  116. <scope>test</scope>
  117. </dependency>
  118. <dependency>
  119. <groupId>io.projectreactor</groupId>
  120. <artifactId>reactor-test</artifactId>
  121. <scope>test</scope>
  122. </dependency>
  123. <dependency>
  124. <groupId>org.apache.commons</groupId>
  125. <artifactId>commons-pool2</artifactId>
  126. <version>${apache.commons.version}</version>
  127. </dependency>
  128. <dependency>
  129. <groupId>org.testcontainers</groupId>
  130. <artifactId>testcontainers</artifactId>
  131. <version>${test.containers.version}</version>
  132. <scope>test</scope>
  133. </dependency>
  134. <dependency>
  135. <groupId>org.testcontainers</groupId>
  136. <artifactId>kafka</artifactId>
  137. <version>${test.containers.version}</version>
  138. <scope>test</scope>
  139. </dependency>
  140. <dependency>
  141. <groupId>org.testcontainers</groupId>
  142. <artifactId>junit-jupiter</artifactId>
  143. <version>${test.containers.version}</version>
  144. <scope>test</scope>
  145. </dependency>
  146. <dependency>
  147. <groupId>org.junit.jupiter</groupId>
  148. <artifactId>junit-jupiter-engine</artifactId>
  149. <version>${junit-jupiter-engine.version}</version>
  150. <scope>test</scope>
  151. </dependency>
  152. <dependency>
  153. <groupId>org.mockito</groupId>
  154. <artifactId>mockito-core</artifactId>
  155. <version>${mockito.version}</version>
  156. <scope>test</scope>
  157. </dependency>
  158. <dependency>
  159. <groupId>org.mockito</groupId>
  160. <artifactId>mockito-junit-jupiter</artifactId>
  161. <version>${mockito.version}</version>
  162. <scope>test</scope>
  163. </dependency>
  164. <dependency>
  165. <groupId>org.assertj</groupId>
  166. <artifactId>assertj-core</artifactId>
  167. <version>${assertj.version}</version>
  168. <scope>test</scope>
  169. </dependency>
  170. <dependency>
  171. <groupId>com.github.java-json-tools</groupId>
  172. <artifactId>json-schema-validator</artifactId>
  173. <version>2.2.14</version>
  174. <scope>test</scope>
  175. </dependency>
  176. <dependency>
  177. <groupId>org.springframework.boot</groupId>
  178. <artifactId>spring-boot-starter-actuator</artifactId>
  179. </dependency>
  180. <dependency>
  181. <groupId>org.antlr</groupId>
  182. <artifactId>antlr4-runtime</artifactId>
  183. <version>${antlr4-maven-plugin.version}</version>
  184. </dependency>
  185. <dependency>
  186. <groupId>org.springframework.boot</groupId>
  187. <artifactId>spring-boot-starter-data-ldap</artifactId>
  188. </dependency>
  189. <dependency>
  190. <groupId>org.springframework.security</groupId>
  191. <artifactId>spring-security-ldap</artifactId>
  192. </dependency>
  193. </dependencies>
  194. <build>
  195. <plugins>
  196. <plugin>
  197. <groupId>org.springframework.boot</groupId>
  198. <artifactId>spring-boot-maven-plugin</artifactId>
  199. <version>${spring-boot.version}</version>
  200. <executions>
  201. <execution>
  202. <goals>
  203. <goal>repackage</goal>
  204. </goals>
  205. </execution>
  206. </executions>
  207. </plugin>
  208. <plugin>
  209. <groupId>org.apache.maven.plugins</groupId>
  210. <artifactId>maven-compiler-plugin</artifactId>
  211. <version>${maven-compiler-plugin.version}</version>
  212. <configuration>
  213. <source>${maven.compiler.source}</source>
  214. <target>${maven.compiler.target}</target>
  215. <annotationProcessorPaths>
  216. <path>
  217. <groupId>org.mapstruct</groupId>
  218. <artifactId>mapstruct-processor</artifactId>
  219. <version>${org.mapstruct.version}</version>
  220. </path>
  221. <path>
  222. <groupId>org.projectlombok</groupId>
  223. <artifactId>lombok</artifactId>
  224. <version>${org.projectlombok.version}</version>
  225. </path>
  226. <path>
  227. <groupId>org.projectlombok</groupId>
  228. <artifactId>lombok-mapstruct-binding</artifactId>
  229. <version>0.2.0</version>
  230. </path>
  231. <path>
  232. <groupId>org.springframework.boot</groupId>
  233. <artifactId>spring-boot-configuration-processor</artifactId>
  234. <version>${spring-boot.version}</version>
  235. </path>
  236. </annotationProcessorPaths>
  237. </configuration>
  238. </plugin>
  239. <plugin>
  240. <groupId>org.apache.maven.plugins</groupId>
  241. <artifactId>maven-surefire-plugin</artifactId>
  242. <version>${maven-surefire-plugin.version}</version>
  243. <configuration>
  244. <argLine> --illegal-access=permit
  245. </argLine>
  246. </configuration>
  247. </plugin>
  248. <plugin>
  249. <groupId>org.apache.maven.plugins</groupId>
  250. <artifactId>maven-checkstyle-plugin</artifactId>
  251. <version>3.1.1</version>
  252. <dependencies>
  253. <dependency>
  254. <groupId>com.puppycrawl.tools</groupId>
  255. <artifactId>checkstyle</artifactId>
  256. <version>8.32</version>
  257. </dependency>
  258. </dependencies>
  259. <executions>
  260. <execution>
  261. <id>checkstyle</id>
  262. <phase>validate</phase>
  263. <goals>
  264. <goal>check</goal>
  265. </goals>
  266. <configuration>
  267. <violationSeverity>warning</violationSeverity>
  268. <failOnViolation>true</failOnViolation>
  269. <failsOnError>true</failsOnError>
  270. <includeTestSourceDirectory>true</includeTestSourceDirectory>
  271. <configLocation>file:${basedir}/../etc/checkstyle/checkstyle.xml</configLocation>
  272. <headerLocation>file:${basedir}/../etc/checkstyle/apache-header.txt</headerLocation>
  273. </configuration>
  274. </execution>
  275. </executions>
  276. </plugin>
  277. <plugin>
  278. <groupId>org.antlr</groupId>
  279. <artifactId>antlr4-maven-plugin</artifactId>
  280. <version>${antlr4-maven-plugin.version}</version>
  281. <configuration>
  282. <visitor>false</visitor>
  283. </configuration>
  284. <executions>
  285. <execution>
  286. <phase>generate-sources</phase>
  287. <goals>
  288. <goal>antlr4</goal>
  289. </goals>
  290. </execution>
  291. </executions>
  292. </plugin>
  293. </plugins>
  294. </build>
  295. <profiles>
  296. <profile>
  297. <id>prod</id>
  298. <build>
  299. <plugins>
  300. <plugin>
  301. <groupId>pl.project13.maven</groupId>
  302. <artifactId>git-commit-id-plugin</artifactId>
  303. <version>4.0.0</version>
  304. <executions>
  305. <execution>
  306. <id>get-the-git-infos</id>
  307. <goals>
  308. <goal>revision</goal>
  309. </goals>
  310. <phase>initialize</phase>
  311. </execution>
  312. </executions>
  313. <configuration>
  314. <generateGitPropertiesFile>true</generateGitPropertiesFile>
  315. <generateGitPropertiesFilename>${project.build.outputDirectory}/git.properties</generateGitPropertiesFilename>
  316. <includeOnlyProperties>
  317. <includeOnlyProperty>^git.build.(time|version)$</includeOnlyProperty>
  318. <includeOnlyProperty>^git.commit.id.(abbrev|full)$</includeOnlyProperty>
  319. </includeOnlyProperties>
  320. <commitIdGenerationMode>full</commitIdGenerationMode>
  321. </configuration>
  322. </plugin>
  323. <plugin>
  324. <artifactId>maven-resources-plugin</artifactId>
  325. <version>${maven-resources-plugin.version}</version>
  326. <executions>
  327. <execution>
  328. <id>copy-resources</id>
  329. <phase>process-classes</phase>
  330. <goals>
  331. <goal>copy-resources</goal>
  332. </goals>
  333. <configuration>
  334. <outputDirectory>${basedir}/target/classes/static</outputDirectory>
  335. <resources>
  336. <resource>
  337. <directory>../kafka-ui-react-app/build</directory>
  338. </resource>
  339. </resources>
  340. </configuration>
  341. </execution>
  342. </executions>
  343. </plugin>
  344. <plugin>
  345. <groupId>com.github.eirslett</groupId>
  346. <artifactId>frontend-maven-plugin</artifactId>
  347. <version>${frontend-maven-plugin.version}</version>
  348. <configuration>
  349. <workingDirectory>../kafka-ui-react-app</workingDirectory>
  350. <environmentVariables>
  351. <REACT_APP_TAG>v${project.version}</REACT_APP_TAG>
  352. <REACT_APP_COMMIT>${git.commit.id.abbrev}</REACT_APP_COMMIT>
  353. </environmentVariables>
  354. </configuration>
  355. <executions>
  356. <execution>
  357. <id>install node and npm</id>
  358. <goals>
  359. <goal>install-node-and-npm</goal>
  360. </goals>
  361. <configuration>
  362. <nodeVersion>${node.version}</nodeVersion>
  363. </configuration>
  364. </execution>
  365. <execution>
  366. <id>npm install</id>
  367. <goals>
  368. <goal>npm</goal>
  369. </goals>
  370. <configuration>
  371. <arguments>install</arguments>
  372. </configuration>
  373. </execution>
  374. <execution>
  375. <id>npm run build</id>
  376. <goals>
  377. <goal>npm</goal>
  378. </goals>
  379. <configuration>
  380. <arguments>run build</arguments>
  381. </configuration>
  382. </execution>
  383. </executions>
  384. </plugin>
  385. <plugin>
  386. <groupId>com.spotify</groupId>
  387. <artifactId>dockerfile-maven-plugin</artifactId>
  388. <version>${dockerfile-maven-plugin.version}</version>
  389. <configuration>
  390. <skipPush>true</skipPush>
  391. </configuration>
  392. <executions>
  393. <execution>
  394. <id>default</id>
  395. <phase>package</phase>
  396. <goals>
  397. <goal>build</goal>
  398. </goals>
  399. <configuration>
  400. <tag>${git.revision}</tag>
  401. <repository>provectuslabs/kafka-ui</repository>
  402. <buildArgs>
  403. <JAR_FILE>${project.build.finalName}.jar</JAR_FILE>
  404. <JAR_NAME>${project.artifactId}.jar</JAR_NAME>
  405. </buildArgs>
  406. </configuration>
  407. </execution>
  408. </executions>
  409. </plugin>
  410. </plugins>
  411. </build>
  412. </profile>
  413. </profiles>
  414. </project>