Lathish | 2d11733 | 2021-03-11 16:29:34 +0000 | [diff] [blame] | 1 | <?xml version="1.0" encoding="UTF-8"?> |
| 2 | <!-- |
| 3 | * ========================LICENSE_START================================= |
| 4 | * O-RAN-SC |
| 5 | * %% |
| 6 | * Copyright (C) 2021 Nordix Foundation |
| 7 | * %% |
| 8 | * Licensed under the Apache License, Version 2.0 (the "License"); |
| 9 | * you may not use this file except in compliance with the License. |
| 10 | * You may obtain a copy of the License at |
| 11 | * |
| 12 | * http://www.apache.org/licenses/LICENSE-2.0 |
| 13 | * |
| 14 | * Unless required by applicable law or agreed to in writing, software |
| 15 | * distributed under the License is distributed on an "AS IS" BASIS, |
| 16 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 17 | * See the License for the specific language governing permissions and |
| 18 | * limitations under the License. |
| 19 | * ========================LICENSE_END=================================== |
| 20 | --> |
| 21 | <project xmlns="http://maven.apache.org/POM/4.0.0" 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"> |
| 22 | <modelVersion>4.0.0</modelVersion> |
| 23 | <parent> |
| 24 | <groupId>org.springframework.boot</groupId> |
| 25 | <artifactId>spring-boot-starter-parent</artifactId> |
PatrikBuhr | 55f00b6 | 2021-03-12 15:41:00 +0100 | [diff] [blame] | 26 | <version>2.4.2</version> |
Lathish | 2d11733 | 2021-03-11 16:29:34 +0000 | [diff] [blame] | 27 | <relativePath/> |
| 28 | </parent> |
| 29 | <groupId>org.o-ran-sc.nonrtric</groupId> |
| 30 | <artifactId>rapp-manager</artifactId> |
| 31 | <version>1.0.0-SNAPSHOT</version> |
| 32 | <properties> |
| 33 | <java.version>11</java.version> |
| 34 | <springfox.version>3.0.0</springfox.version> |
| 35 | <immutable.version>2.8.8</immutable.version> |
| 36 | <json.version>20200518</json.version> |
| 37 | <formatter-maven-plugin.version>2.13.0</formatter-maven-plugin.version> |
| 38 | <spotless-maven-plugin.version>2.5.0</spotless-maven-plugin.version> |
| 39 | <commons-io.version>2.5</commons-io.version> |
| 40 | <docker-maven-plugin>0.30.0</docker-maven-plugin> |
| 41 | <surefire-maven-plugin.version>3.0.0-M5</surefire-maven-plugin.version> |
| 42 | <jacoco-maven-plugin.version>0.8.6</jacoco-maven-plugin.version> |
| 43 | <swagger-codegen-maven-plugin.version>3.0.11</swagger-codegen-maven-plugin.version> |
| 44 | <exec.skip>true</exec.skip> |
| 45 | <sdk.version>1.1.6</sdk.version> |
| 46 | </properties> |
| 47 | <dependencies> |
| 48 | <dependency> |
| 49 | <groupId>org.springframework.boot</groupId> |
| 50 | <artifactId>spring-boot-starter-webflux</artifactId> |
| 51 | </dependency> |
| 52 | <dependency> |
| 53 | <groupId>org.springframework.boot</groupId> |
| 54 | <artifactId>spring-boot-starter-reactor-netty</artifactId> |
| 55 | </dependency> |
| 56 | <dependency> |
| 57 | <groupId>org.springframework.boot</groupId> |
| 58 | <artifactId>spring-boot</artifactId> |
| 59 | </dependency> |
| 60 | <dependency> |
| 61 | <groupId>org.springframework</groupId> |
| 62 | <artifactId>spring-beans</artifactId> |
| 63 | </dependency> |
| 64 | <dependency> |
| 65 | <groupId>org.springframework</groupId> |
| 66 | <artifactId>spring-context</artifactId> |
| 67 | </dependency> |
| 68 | <dependency> |
| 69 | <groupId>org.springframework.boot</groupId> |
| 70 | <artifactId>spring-boot-autoconfigure</artifactId> |
| 71 | </dependency> |
| 72 | <dependency> |
| 73 | <groupId>org.springframework</groupId> |
| 74 | <artifactId>spring-web</artifactId> |
| 75 | </dependency> |
| 76 | <dependency> |
| 77 | <groupId>org.springframework</groupId> |
| 78 | <artifactId>spring-webmvc</artifactId> |
| 79 | </dependency> |
| 80 | <dependency> |
| 81 | <groupId>org.springframework</groupId> |
| 82 | <artifactId>spring-webflux</artifactId> |
| 83 | </dependency> |
| 84 | <dependency> |
| 85 | <groupId>io.springfox</groupId> |
| 86 | <artifactId>springfox-spring-web</artifactId> |
| 87 | <version>${springfox.version}</version> |
| 88 | </dependency> |
| 89 | <dependency> |
| 90 | <groupId>io.springfox</groupId> |
| 91 | <artifactId>springfox-spi</artifactId> |
| 92 | <version>${springfox.version}</version> |
| 93 | </dependency> |
| 94 | <dependency> |
| 95 | <groupId>io.springfox</groupId> |
| 96 | <artifactId>springfox-core</artifactId> |
| 97 | <version>${springfox.version}</version> |
| 98 | </dependency> |
| 99 | <dependency> |
| 100 | <groupId>org.aspectj</groupId> |
| 101 | <artifactId>aspectjweaver</artifactId> |
| 102 | </dependency> |
| 103 | <dependency> |
| 104 | <groupId>com.fasterxml.jackson.core</groupId> |
| 105 | <artifactId>jackson-databind</artifactId> |
| 106 | </dependency> |
| 107 | <dependency> |
| 108 | <groupId>org.apache.tomcat.embed</groupId> |
| 109 | <artifactId>tomcat-embed-core</artifactId> |
| 110 | </dependency> |
| 111 | <dependency> |
| 112 | <groupId>javax.validation</groupId> |
| 113 | <artifactId>validation-api</artifactId> |
| 114 | </dependency> |
| 115 | <dependency> |
| 116 | <groupId>com.google.guava</groupId> |
| 117 | <artifactId>guava</artifactId> |
| 118 | <version>30.0-jre</version> |
| 119 | </dependency> |
| 120 | <dependency> |
| 121 | <groupId>org.immutables</groupId> |
| 122 | <artifactId>value</artifactId> |
| 123 | <version>${immutable.version}</version> |
| 124 | <scope>provided</scope> |
| 125 | </dependency> |
| 126 | <dependency> |
| 127 | <groupId>org.immutables</groupId> |
| 128 | <artifactId>gson</artifactId> |
| 129 | <version>${immutable.version}</version> |
| 130 | </dependency> |
| 131 | <dependency> |
| 132 | <groupId>org.json</groupId> |
| 133 | <artifactId>json</artifactId> |
| 134 | <version>${json.version}</version> |
| 135 | </dependency> |
| 136 | <dependency> |
| 137 | <groupId>org.projectlombok</groupId> |
| 138 | <artifactId>lombok</artifactId> |
| 139 | <scope>provided</scope> |
| 140 | </dependency> |
| 141 | <!-- Actuator dependencies --> |
| 142 | <dependency> |
| 143 | <groupId>org.springframework.boot</groupId> |
| 144 | <artifactId>spring-boot-starter-actuator</artifactId> |
| 145 | <scope>runtime</scope> |
| 146 | </dependency> |
| 147 | <!--REQUIRED TO GENERATE DOCUMENTATION --> |
| 148 | <dependency> |
| 149 | <groupId>io.springfox</groupId> |
| 150 | <artifactId>springfox-swagger2</artifactId> |
| 151 | <version>${springfox.version}</version> |
| 152 | </dependency> |
| 153 | <dependency> |
| 154 | <groupId>io.springfox</groupId> |
| 155 | <artifactId>springfox-swagger-ui</artifactId> |
| 156 | <version>${springfox.version}</version> |
| 157 | <scope>runtime</scope> |
| 158 | </dependency> |
| 159 | <!-- For development help --> |
| 160 | <dependency> |
| 161 | <groupId>org.springframework.boot</groupId> |
| 162 | <artifactId>spring-boot-devtools</artifactId> |
| 163 | <optional>true</optional> |
| 164 | <scope>runtime</scope> |
| 165 | </dependency> |
| 166 | <dependency> |
| 167 | <groupId>org.springframework.boot</groupId> |
| 168 | <artifactId>spring-boot-configuration-processor</artifactId> |
| 169 | <optional>true</optional> |
| 170 | <scope>runtime</scope> |
| 171 | </dependency> |
| 172 | <!-- TEST --> |
| 173 | <dependency> |
| 174 | <groupId>org.springframework.boot</groupId> |
| 175 | <artifactId>spring-boot-test</artifactId> |
| 176 | <scope>test</scope> |
| 177 | </dependency> |
| 178 | <dependency> |
| 179 | <groupId>org.springframework.boot</groupId> |
| 180 | <artifactId>spring-boot-starter-test</artifactId> |
| 181 | <scope>test</scope> |
| 182 | </dependency> |
| 183 | <dependency> |
| 184 | <groupId>org.awaitility</groupId> |
| 185 | <artifactId>awaitility</artifactId> |
| 186 | <scope>test</scope> |
| 187 | </dependency> |
| 188 | <dependency> |
| 189 | <groupId>io.projectreactor</groupId> |
| 190 | <artifactId>reactor-test</artifactId> |
| 191 | <scope>test</scope> |
| 192 | </dependency> |
| 193 | <dependency> |
| 194 | <groupId>org.junit.jupiter</groupId> |
| 195 | <artifactId>junit-jupiter-engine</artifactId> |
| 196 | <scope>test</scope> |
| 197 | </dependency> |
| 198 | <dependency> |
| 199 | <groupId>org.mockito</groupId> |
| 200 | <artifactId>mockito-junit-jupiter</artifactId> |
| 201 | <scope>test</scope> |
| 202 | </dependency> |
| 203 | <dependency> |
| 204 | <groupId>org.mockito</groupId> |
| 205 | <artifactId>mockito-core</artifactId> |
| 206 | <scope>test</scope> |
| 207 | </dependency> |
| 208 | <dependency> |
| 209 | <groupId>com.squareup.okhttp3</groupId> |
| 210 | <artifactId>mockwebserver</artifactId> |
| 211 | <scope>test</scope> |
| 212 | </dependency> |
| 213 | <dependency> |
| 214 | <groupId>commons-io</groupId> |
| 215 | <artifactId>commons-io</artifactId> |
| 216 | <version>${commons-io.version}</version> |
| 217 | <!-- <scope>test</scope> --> |
| 218 | </dependency> |
| 219 | <dependency> |
| 220 | <groupId>io.kubernetes</groupId> |
| 221 | <artifactId>client-java</artifactId> |
| 222 | <version>10.0.0</version> |
| 223 | </dependency> |
| 224 | <dependency> |
| 225 | <groupId>commons-fileupload</groupId> |
| 226 | <artifactId>commons-fileupload</artifactId> |
| 227 | <version>1.4</version> |
| 228 | </dependency> |
| 229 | |
| 230 | </dependencies> |
| 231 | <build> |
| 232 | <plugins> |
| 233 | <plugin> |
| 234 | <groupId>org.codehaus.mojo</groupId> |
| 235 | <artifactId>build-helper-maven-plugin</artifactId> |
| 236 | <executions> |
| 237 | <execution> |
| 238 | <id>add-source</id> |
| 239 | <phase>generate-sources</phase> |
| 240 | <goals> |
| 241 | <goal>add-source</goal> |
| 242 | </goals> |
| 243 | <configuration> |
| 244 | <sources> |
| 245 | <source>${project.build.directory}/generated-sources/annotations/</source> |
| 246 | </sources> |
| 247 | </configuration> |
| 248 | </execution> |
| 249 | </executions> |
| 250 | </plugin> |
| 251 | <plugin> |
| 252 | <groupId>org.springframework.boot</groupId> |
| 253 | <artifactId>spring-boot-maven-plugin</artifactId> |
| 254 | </plugin> |
| 255 | <plugin> |
| 256 | <groupId>net.revelc.code.formatter</groupId> |
| 257 | <artifactId>formatter-maven-plugin</artifactId> |
| 258 | <version>${formatter-maven-plugin.version}</version> |
| 259 | <configuration> |
| 260 | <lineEnding>LF</lineEnding> |
| 261 | <configFile>${project.basedir}/eclipse-formatter.xml</configFile> |
| 262 | </configuration> |
| 263 | <!-- https://code.revelc.net/formatter-maven-plugin/ use mvn formatter:format |
| 264 | spotless:apply process-sources --> |
| 265 | </plugin> |
| 266 | <plugin> |
| 267 | <groupId>com.diffplug.spotless</groupId> |
| 268 | <artifactId>spotless-maven-plugin</artifactId> |
| 269 | <version>${spotless-maven-plugin.version}</version> |
| 270 | <configuration> |
| 271 | <lineEndings>UNIX</lineEndings> |
| 272 | <java> |
| 273 | <removeUnusedImports/> |
| 274 | <importOrder> |
| 275 | <order>com,java,javax,org</order> |
| 276 | </importOrder> |
| 277 | </java> |
| 278 | </configuration> |
| 279 | <!-- https://github.com/diffplug/spotless/tree/master/plugin-maven use |
| 280 | mvn spotless:apply to rewrite source files use mvn spotless:check to validate |
| 281 | source files --> |
| 282 | </plugin> |
| 283 | <plugin> |
| 284 | <groupId>org.apache.maven.plugins</groupId> |
| 285 | <artifactId>maven-surefire-plugin</artifactId> |
| 286 | <version>${surefire-maven-plugin.version}</version> |
| 287 | <configuration> |
| 288 | <skipTests>false</skipTests> |
| 289 | </configuration> |
| 290 | </plugin> |
| 291 | <plugin> |
| 292 | <artifactId>maven-failsafe-plugin</artifactId> |
| 293 | </plugin> |
| 294 | <plugin> |
| 295 | <groupId>org.codehaus.mojo</groupId> |
| 296 | <artifactId>build-helper-maven-plugin</artifactId> |
| 297 | <executions> |
| 298 | <execution> |
| 299 | <id>add-source</id> |
| 300 | <phase>generate-sources</phase> |
| 301 | <goals> |
| 302 | <goal>add-source</goal> |
| 303 | </goals> |
| 304 | <configuration> |
| 305 | <sources> |
| 306 | <source>${project.build.directory}/generated-sources/annotations/</source> |
| 307 | </sources> |
| 308 | </configuration> |
| 309 | </execution> |
| 310 | </executions> |
| 311 | </plugin> |
| 312 | <plugin> |
| 313 | <groupId>org.jacoco</groupId> |
| 314 | <artifactId>jacoco-maven-plugin</artifactId> |
| 315 | <version>${jacoco-maven-plugin.version}</version> |
| 316 | <executions> |
| 317 | <execution> |
| 318 | <id>default-prepare-agent</id> |
| 319 | <goals> |
| 320 | <goal>prepare-agent</goal> |
| 321 | </goals> |
| 322 | </execution> |
| 323 | <execution> |
| 324 | <id>default-report</id> |
| 325 | <phase>prepare-package</phase> |
| 326 | <goals> |
| 327 | <goal>report</goal> |
| 328 | </goals> |
| 329 | </execution> |
| 330 | </executions> |
| 331 | </plugin> |
| 332 | <!-- <plugin> |
| 333 | <groupId>io.swagger.codegen.v3</groupId> |
| 334 | <artifactId>swagger-codegen-maven-plugin</artifactId> |
| 335 | <version>${swagger-codegen-maven-plugin.version}</version> |
| 336 | <executions> |
| 337 | <execution> |
| 338 | <phase>test</phase> |
| 339 | <goals> |
| 340 | <goal>generate</goal> |
| 341 | </goals> |
| 342 | <configuration> |
| 343 | <inputSpec>${project.basedir}/api/rapp-manager.json</inputSpec> |
| 344 | <language>openapi-yaml</language> |
| 345 | <output>${project.basedir}/api</output> |
| 346 | <configOptions> |
| 347 | <outputFile>rapp-manager-api.yaml</outputFile> |
| 348 | </configOptions> |
| 349 | </configuration> |
| 350 | </execution> |
| 351 | </executions> |
| 352 | </plugin> --> |
| 353 | <plugin> |
| 354 | <artifactId>maven-resources-plugin</artifactId> |
| 355 | <executions> |
| 356 | <execution> |
| 357 | <id>copy-resource-one</id> |
| 358 | <phase>install</phase> |
| 359 | <goals> |
| 360 | <goal>copy-resources</goal> |
| 361 | </goals> |
| 362 | <configuration> |
| 363 | <outputDirectory>${project.basedir}/../docs/offeredapis/swagger</outputDirectory> |
| 364 | <resources> |
| 365 | <resource> |
| 366 | <directory>${project.basedir}/api</directory> |
| 367 | <includes> |
| 368 | <include>rapp-manager-api.*</include> |
| 369 | </includes> |
| 370 | </resource> |
| 371 | </resources> |
| 372 | </configuration> |
| 373 | </execution> |
| 374 | </executions> |
| 375 | </plugin> |
| 376 | <plugin> |
| 377 | <groupId>io.fabric8</groupId> |
| 378 | <artifactId>docker-maven-plugin</artifactId> |
| 379 | <version>${docker-maven-plugin}</version> |
| 380 | <inherited>false</inherited> |
| 381 | <executions> |
| 382 | <execution> |
| 383 | <id>generate-rapp-manager-image</id> |
| 384 | <phase>package</phase> |
| 385 | <goals> |
| 386 | <goal>build</goal> |
| 387 | </goals> |
| 388 | <configuration> |
| 389 | <images> |
| 390 | <image> |
| 391 | <name>o-ran-sc/nonrtric-rapp-manager:${project.version}</name> |
| 392 | <build> |
| 393 | <cleanup>try</cleanup> |
| 394 | <contextDir>${basedir}</contextDir> |
| 395 | <dockerFile>Dockerfile</dockerFile> |
| 396 | <args> |
| 397 | <JAR>${project.build.finalName}.jar</JAR> |
| 398 | </args> |
| 399 | <tags> |
| 400 | <tag>${project.version}</tag> |
| 401 | </tags> |
| 402 | </build> |
| 403 | </image> |
| 404 | </images> |
| 405 | </configuration> |
| 406 | </execution> |
| 407 | <execution> |
| 408 | <id>push-rapp-manager-image</id> |
| 409 | <goals> |
| 410 | <goal>build</goal> |
| 411 | <goal>push</goal> |
| 412 | </goals> |
| 413 | <configuration> |
| 414 | <images> |
| 415 | <image> |
| 416 | <name>o-ran-sc/nonrtric-rapp-manager:${project.version}</name> |
| 417 | <build> |
| 418 | <contextDir>${basedir}</contextDir> |
| 419 | <dockerFile>Dockerfile</dockerFile> |
| 420 | <args> |
| 421 | <JAR>${project.build.finalName}.jar</JAR> |
| 422 | </args> |
| 423 | <tags> |
| 424 | <tag>${project.docker.latestminortag.version}</tag> |
| 425 | <tag>${project.docker.latestfulltag.version}</tag> |
| 426 | <tag>${project.docker.latesttagtimestamp.version}</tag> |
| 427 | </tags> |
| 428 | </build> |
| 429 | </image> |
| 430 | </images> |
| 431 | </configuration> |
| 432 | </execution> |
| 433 | </executions> |
| 434 | </plugin> |
| 435 | </plugins> |
| 436 | </build> |
| 437 | </project> |