pom.xml 18 KB

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