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