pom.xml 16 KB

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