pom.xml 18 KB

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