pom.xml 19 KB

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