PatrikBuhr | 3bdae60 | 2019-11-28 10:58:54 +0100 | [diff] [blame] | 1 | <?xml version="1.0" encoding="UTF-8"?> |
elinuxhenrik | 80ebd8e | 2020-01-28 14:30:18 +0100 | [diff] [blame] | 2 | <!-- |
| 3 | * ========================LICENSE_START================================= |
| 4 | * O-RAN-SC |
| 5 | * %% |
| 6 | * Copyright (C) 2019 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 | --> |
PatrikBuhr | 1b8d76d | 2020-01-30 16:10:19 +0100 | [diff] [blame] | 21 | <project |
| 22 | xmlns="http://maven.apache.org/POM/4.0.0" |
| 23 | xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
Lathish | dac5e37 | 2020-01-23 13:56:28 +0000 | [diff] [blame] | 24 | xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd"> |
PatrikBuhr | 1b8d76d | 2020-01-30 16:10:19 +0100 | [diff] [blame] | 25 | <modelVersion>4.0.0</modelVersion> |
| 26 | <parent> |
| 27 | <groupId>org.springframework.boot</groupId> |
| 28 | <artifactId>spring-boot-starter-parent</artifactId> |
PatrikBuhr | 63087c6 | 2021-02-12 16:30:24 +0100 | [diff] [blame] | 29 | <version>2.3.8.RELEASE</version> |
PatrikBuhr | 1b8d76d | 2020-01-30 16:10:19 +0100 | [diff] [blame] | 30 | <relativePath /> |
| 31 | </parent> |
| 32 | <groupId>org.o-ran-sc.nonrtric</groupId> |
| 33 | <artifactId>policy-agent</artifactId> |
elinuxhenrik | 0e96b9e | 2021-06-23 23:58:56 +0200 | [diff] [blame] | 34 | <version>2.3.0-SNAPSHOT</version> |
PatrikBuhr | 1b8d76d | 2020-01-30 16:10:19 +0100 | [diff] [blame] | 35 | <licenses> |
| 36 | <license> |
| 37 | <name>The Apache Software License, Version 2.0</name> |
| 38 | <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url> |
| 39 | </license> |
| 40 | </licenses> |
| 41 | <repositories> |
| 42 | <repository> |
| 43 | <id>onap-releases</id> |
| 44 | <name>onap-releases</name> |
| 45 | <url>https://nexus.onap.org/content/repositories/releases/</url> |
| 46 | </repository> |
| 47 | </repositories> |
| 48 | <properties> |
| 49 | <java.version>11</java.version> |
PatrikBuhr | 63087c6 | 2021-02-12 16:30:24 +0100 | [diff] [blame] | 50 | <springfox.version>3.0.0</springfox.version> |
elinuxhenrik | b76f514 | 2020-04-06 13:01:00 +0200 | [diff] [blame] | 51 | <immutable.version>2.8.2</immutable.version> |
PatrikBuhr | 1b8d76d | 2020-01-30 16:10:19 +0100 | [diff] [blame] | 52 | <sdk.version>1.1.6</sdk.version> |
PatrikBuhr | 63087c6 | 2021-02-12 16:30:24 +0100 | [diff] [blame] | 53 | <swagger.version>2.1.6</swagger.version> |
elinuxhenrik | b76f514 | 2020-04-06 13:01:00 +0200 | [diff] [blame] | 54 | <json.version>20190722</json.version> |
| 55 | <commons-net.version>3.6</commons-net.version> |
PatrikBuhr | 1b8d76d | 2020-01-30 16:10:19 +0100 | [diff] [blame] | 56 | <maven-compiler-plugin.version>3.8.0</maven-compiler-plugin.version> |
PatrikBuhr | c75f4b1 | 2020-09-17 09:36:04 +0200 | [diff] [blame] | 57 | <formatter-maven-plugin.version>2.12.2</formatter-maven-plugin.version> |
PatrikBuhr | 1b8d76d | 2020-01-30 16:10:19 +0100 | [diff] [blame] | 58 | <spotless-maven-plugin.version>1.18.0</spotless-maven-plugin.version> |
| 59 | <docker-maven-plugin>0.30.0</docker-maven-plugin> |
elinuxhenrik | bfdd5bb | 2020-05-04 17:37:59 +0200 | [diff] [blame] | 60 | <version.dmaap>1.1.11</version.dmaap> |
Lathish | 7e09b1b | 2020-01-24 14:50:32 +0000 | [diff] [blame] | 61 | <javax.ws.rs-api.version>2.1.1</javax.ws.rs-api.version> |
elinuxhenrik | 284d321 | 2020-02-07 16:21:06 +0100 | [diff] [blame] | 62 | <sonar-maven-plugin.version>3.7.0.1746</sonar-maven-plugin.version> |
elinuxhenrik | b76f514 | 2020-04-06 13:01:00 +0200 | [diff] [blame] | 63 | <jacoco-maven-plugin.version>0.8.5</jacoco-maven-plugin.version> |
PatrikBuhr | 1b8d76d | 2020-01-30 16:10:19 +0100 | [diff] [blame] | 64 | </properties> |
| 65 | <dependencies> |
| 66 | <dependency> |
PatrikBuhr | 63087c6 | 2021-02-12 16:30:24 +0100 | [diff] [blame] | 67 | <groupId>com.google.guava</groupId> |
| 68 | <artifactId>guava</artifactId> |
| 69 | <version>30.0-jre</version> |
| 70 | </dependency> |
| 71 | <dependency> |
| 72 | <groupId>org.springdoc</groupId> |
| 73 | <artifactId>springdoc-openapi-ui</artifactId> |
| 74 | <version>1.5.2</version> |
| 75 | </dependency> |
| 76 | <dependency> |
PatrikBuhr | 1b8d76d | 2020-01-30 16:10:19 +0100 | [diff] [blame] | 77 | <groupId>org.springframework.boot</groupId> |
| 78 | <artifactId>spring-boot-starter-web</artifactId> |
| 79 | </dependency> |
| 80 | <dependency> |
| 81 | <groupId>org.springframework.boot</groupId> |
| 82 | <artifactId>spring-boot-starter-thymeleaf</artifactId> |
| 83 | </dependency> |
| 84 | <dependency> |
| 85 | <groupId>org.springframework.boot</groupId> |
| 86 | <artifactId>spring-boot-starter-webflux</artifactId> |
| 87 | </dependency> |
| 88 | <dependency> |
PatrikBuhr | 4e7db50 | 2020-06-16 11:19:01 +0200 | [diff] [blame] | 89 | <groupId>org.springframework.boot</groupId> |
| 90 | <artifactId>spring-boot-starter-aop</artifactId> |
Lathish | 961b63f | 2020-03-19 15:24:32 +0000 | [diff] [blame] | 91 | </dependency> |
| 92 | <dependency> |
PatrikBuhr | 1b8d76d | 2020-01-30 16:10:19 +0100 | [diff] [blame] | 93 | <groupId>org.springframework.boot</groupId> |
| 94 | <artifactId>spring-boot-devtools</artifactId> |
| 95 | <optional>true</optional> |
| 96 | </dependency> |
| 97 | <dependency> |
| 98 | <groupId>org.springframework</groupId> |
| 99 | <artifactId>spring-webflux</artifactId> |
| 100 | </dependency> |
| 101 | <dependency> |
| 102 | <groupId>io.swagger.core.v3</groupId> |
| 103 | <artifactId>swagger-jaxrs2</artifactId> |
| 104 | <version>${swagger.version}</version> |
| 105 | </dependency> |
| 106 | <dependency> |
| 107 | <groupId>io.swagger.core.v3</groupId> |
| 108 | <artifactId>swagger-jaxrs2-servlet-initializer</artifactId> |
| 109 | <version>${swagger.version}</version> |
| 110 | </dependency> |
| 111 | <dependency> |
| 112 | <groupId>javax.xml.bind</groupId> |
| 113 | <artifactId>jaxb-api</artifactId> |
| 114 | </dependency> |
| 115 | <dependency> |
| 116 | <groupId>org.immutables</groupId> |
| 117 | <artifactId>value</artifactId> |
| 118 | <version>${immutable.version}</version> |
| 119 | <scope>provided</scope> |
| 120 | </dependency> |
| 121 | <dependency> |
| 122 | <groupId>org.immutables</groupId> |
| 123 | <artifactId>gson</artifactId> |
| 124 | <version>${immutable.version}</version> |
| 125 | </dependency> |
| 126 | <dependency> |
| 127 | <groupId>org.json</groupId> |
| 128 | <artifactId>json</artifactId> |
| 129 | <version>${json.version}</version> |
| 130 | </dependency> |
elinuxhenrik | 777b07b | 2020-01-23 16:27:44 +0100 | [diff] [blame] | 131 | <dependency> |
| 132 | <groupId>commons-net</groupId> |
| 133 | <artifactId>commons-net</artifactId> |
| 134 | <version>${commons-net.version}</version> |
| 135 | </dependency> |
PatrikBuhr | 1b8d76d | 2020-01-30 16:10:19 +0100 | [diff] [blame] | 136 | <dependency> |
| 137 | <groupId>org.springframework.boot</groupId> |
| 138 | <artifactId>spring-boot-configuration-processor</artifactId> |
| 139 | <optional>true</optional> |
| 140 | </dependency> |
| 141 | <dependency> |
| 142 | <groupId>org.onap.dcaegen2.services.sdk.rest.services</groupId> |
| 143 | <artifactId>cbs-client</artifactId> |
elinuxhenrik | 777b07b | 2020-01-23 16:27:44 +0100 | [diff] [blame] | 144 | <version>${sdk.version}</version> |
| 145 | </dependency> |
| 146 | <dependency> |
Lathish | 1f722de | 2020-01-27 14:57:22 +0000 | [diff] [blame] | 147 | <groupId>org.projectlombok</groupId> |
| 148 | <artifactId>lombok</artifactId> |
elinuxhenrik | 9fb9f6e | 2020-01-28 08:59:39 +0100 | [diff] [blame] | 149 | <scope>provided</scope> |
Lathish | 1f722de | 2020-01-27 14:57:22 +0000 | [diff] [blame] | 150 | </dependency> |
RehanRaza | 7d0bb60 | 2020-02-24 09:35:23 +0100 | [diff] [blame] | 151 | <dependency> |
elinuxhenrik | 15e2651 | 2020-05-27 16:19:49 +0200 | [diff] [blame] | 152 | <groupId>org.onap.dmaap.messagerouter.dmaapclient</groupId> |
| 153 | <artifactId>dmaapClient</artifactId> |
| 154 | <version>${version.dmaap}</version> |
RehanRaza | 7d0bb60 | 2020-02-24 09:35:23 +0100 | [diff] [blame] | 155 | </dependency> |
elinuxhenrik | 15e2651 | 2020-05-27 16:19:49 +0200 | [diff] [blame] | 156 | <dependency> |
| 157 | <groupId>javax.ws.rs</groupId> |
| 158 | <artifactId>javax.ws.rs-api</artifactId> |
| 159 | <version>${javax.ws.rs-api.version}</version> |
| 160 | </dependency> |
| 161 | <dependency> |
| 162 | <groupId>org.glassfish.jersey.inject</groupId> |
| 163 | <artifactId>jersey-hk2</artifactId> |
| 164 | </dependency> |
elinuxhenrik | 15e2651 | 2020-05-27 16:19:49 +0200 | [diff] [blame] | 165 | <!-- Actuator dependencies --> |
| 166 | <dependency> |
| 167 | <groupId>org.springframework.boot</groupId> |
| 168 | <artifactId>spring-boot-starter-actuator</artifactId> |
| 169 | </dependency> |
PatrikBuhr | 1b8d76d | 2020-01-30 16:10:19 +0100 | [diff] [blame] | 170 | <!--REQUIRED TO GENERATE DOCUMENTATION --> |
| 171 | <dependency> |
| 172 | <groupId>io.springfox</groupId> |
| 173 | <artifactId>springfox-swagger2</artifactId> |
| 174 | <version>${springfox.version}</version> |
| 175 | </dependency> |
| 176 | <dependency> |
| 177 | <groupId>io.springfox</groupId> |
| 178 | <artifactId>springfox-swagger-ui</artifactId> |
| 179 | <version>${springfox.version}</version> |
| 180 | </dependency> |
| 181 | <!-- TEST --> |
| 182 | <dependency> |
elinuxhenrik | 15e2651 | 2020-05-27 16:19:49 +0200 | [diff] [blame] | 183 | <groupId>org.springframework.boot</groupId> |
| 184 | <artifactId>spring-boot-starter-test</artifactId> |
| 185 | <scope>test</scope> |
| 186 | </dependency> |
| 187 | <dependency> |
PatrikBuhr | 1b8d76d | 2020-01-30 16:10:19 +0100 | [diff] [blame] | 188 | <groupId>org.awaitility</groupId> |
| 189 | <artifactId>awaitility</artifactId> |
PatrikBuhr | 1b8d76d | 2020-01-30 16:10:19 +0100 | [diff] [blame] | 190 | <scope>test</scope> |
| 191 | </dependency> |
| 192 | <dependency> |
| 193 | <groupId>io.projectreactor</groupId> |
| 194 | <artifactId>reactor-test</artifactId> |
| 195 | <scope>test</scope> |
| 196 | </dependency> |
| 197 | <dependency> |
| 198 | <groupId>org.junit.jupiter</groupId> |
| 199 | <artifactId>junit-jupiter-engine</artifactId> |
| 200 | <scope>test</scope> |
| 201 | </dependency> |
| 202 | <dependency> |
| 203 | <groupId>org.mockito</groupId> |
| 204 | <artifactId>mockito-junit-jupiter</artifactId> |
| 205 | <scope>test</scope> |
| 206 | </dependency> |
| 207 | <dependency> |
| 208 | <groupId>org.mockito</groupId> |
| 209 | <artifactId>mockito-core</artifactId> |
| 210 | <scope>test</scope> |
| 211 | </dependency> |
| 212 | <dependency> |
elinuxhenrik | 15e2651 | 2020-05-27 16:19:49 +0200 | [diff] [blame] | 213 | <groupId>com.squareup.okhttp3</groupId> |
| 214 | <artifactId>mockwebserver</artifactId> |
| 215 | <scope>test</scope> |
Lathish | 7e09b1b | 2020-01-24 14:50:32 +0000 | [diff] [blame] | 216 | </dependency> |
PatrikBuhr | 1b8d76d | 2020-01-30 16:10:19 +0100 | [diff] [blame] | 217 | </dependencies> |
| 218 | <build> |
| 219 | <plugins> |
| 220 | <plugin> |
| 221 | <groupId>org.springframework.boot</groupId> |
| 222 | <artifactId>spring-boot-maven-plugin</artifactId> |
| 223 | </plugin> |
| 224 | <plugin> |
| 225 | <groupId>net.revelc.code.formatter</groupId> |
| 226 | <artifactId>formatter-maven-plugin</artifactId> |
| 227 | <version>${formatter-maven-plugin.version}</version> |
| 228 | <configuration> |
| 229 | <configFile>${project.basedir}/eclipse-formatter.xml</configFile> |
| 230 | </configuration> |
ecaiyanlinux | f40c3b6 | 2020-06-04 09:34:31 +0200 | [diff] [blame] | 231 | <!-- https://code.revelc.net/formatter-maven-plugin/ use mvn formatter:format |
Lathish | dac5e37 | 2020-01-23 13:56:28 +0000 | [diff] [blame] | 232 | spotless:apply process-sources --> |
PatrikBuhr | 1b8d76d | 2020-01-30 16:10:19 +0100 | [diff] [blame] | 233 | </plugin> |
| 234 | <plugin> |
| 235 | <groupId>com.diffplug.spotless</groupId> |
| 236 | <artifactId>spotless-maven-plugin</artifactId> |
| 237 | <version>${spotless-maven-plugin.version}</version> |
| 238 | <configuration> |
| 239 | <java> |
| 240 | <removeUnusedImports /> |
| 241 | <importOrder> |
| 242 | <order>com,java,javax,org</order> |
| 243 | </importOrder> |
| 244 | </java> |
| 245 | </configuration> |
ecaiyanlinux | f40c3b6 | 2020-06-04 09:34:31 +0200 | [diff] [blame] | 246 | <!-- https://github.com/diffplug/spotless/tree/master/plugin-maven use |
| 247 | mvn spotless:apply to rewrite source files use mvn spotless:check to validate |
Lathish | dac5e37 | 2020-01-23 13:56:28 +0000 | [diff] [blame] | 248 | source files --> |
PatrikBuhr | 1b8d76d | 2020-01-30 16:10:19 +0100 | [diff] [blame] | 249 | </plugin> |
| 250 | <plugin> |
| 251 | <groupId>org.apache.maven.plugins</groupId> |
| 252 | <artifactId>maven-surefire-plugin</artifactId> |
| 253 | <configuration> |
| 254 | <skipTests>false</skipTests> |
| 255 | </configuration> |
| 256 | </plugin> |
| 257 | <plugin> |
| 258 | <artifactId>maven-failsafe-plugin</artifactId> |
| 259 | </plugin> |
| 260 | <plugin> |
| 261 | <groupId>org.codehaus.mojo</groupId> |
| 262 | <artifactId>build-helper-maven-plugin</artifactId> |
| 263 | <executions> |
| 264 | <execution> |
| 265 | <id>add-source</id> |
| 266 | <phase>generate-sources</phase> |
| 267 | <goals> |
| 268 | <goal>add-source</goal> |
| 269 | </goals> |
| 270 | <configuration> |
| 271 | <sources> |
| 272 | <source>${project.build.directory}/generated-sources/annotations/</source> |
| 273 | </sources> |
| 274 | </configuration> |
| 275 | </execution> |
| 276 | </executions> |
| 277 | </plugin> |
| 278 | <plugin> |
Lathish | c05ff96 | 2020-02-12 14:46:01 +0000 | [diff] [blame] | 279 | <groupId>org.jacoco</groupId> |
| 280 | <artifactId>jacoco-maven-plugin</artifactId> |
elinuxhenrik | b76f514 | 2020-04-06 13:01:00 +0200 | [diff] [blame] | 281 | <version>${jacoco-maven-plugin.version}</version> |
Lathish | c05ff96 | 2020-02-12 14:46:01 +0000 | [diff] [blame] | 282 | <executions> |
| 283 | <execution> |
| 284 | <id>default-prepare-agent</id> |
| 285 | <goals> |
| 286 | <goal>prepare-agent</goal> |
| 287 | </goals> |
| 288 | </execution> |
| 289 | <execution> |
| 290 | <id>default-report</id> |
| 291 | <phase>prepare-package</phase> |
| 292 | <goals> |
| 293 | <goal>report</goal> |
| 294 | </goals> |
| 295 | </execution> |
| 296 | </executions> |
| 297 | </plugin> |
| 298 | <plugin> |
PatrikBuhr | 1b8d76d | 2020-01-30 16:10:19 +0100 | [diff] [blame] | 299 | <groupId>io.fabric8</groupId> |
| 300 | <artifactId>docker-maven-plugin</artifactId> |
| 301 | <version>${docker-maven-plugin}</version> |
| 302 | <inherited>false</inherited> |
| 303 | <executions> |
| 304 | <execution> |
| 305 | <id>generate-policy-agent-image</id> |
| 306 | <phase>package</phase> |
| 307 | <goals> |
| 308 | <goal>build</goal> |
| 309 | </goals> |
| 310 | <configuration> |
| 311 | <pullRegistry>${env.CONTAINER_PULL_REGISTRY}</pullRegistry> |
| 312 | <images> |
| 313 | <image> |
| 314 | <name>o-ran-sc/nonrtric-policy-agent:${project.version}</name> |
| 315 | <build> |
| 316 | <cleanup>try</cleanup> |
| 317 | <contextDir>${basedir}</contextDir> |
| 318 | <dockerFile>Dockerfile</dockerFile> |
| 319 | <args> |
| 320 | <JAR>${project.build.finalName}.jar</JAR> |
| 321 | </args> |
| 322 | <tags> |
| 323 | <tag>${project.version}</tag> |
| 324 | </tags> |
| 325 | </build> |
| 326 | </image> |
| 327 | </images> |
| 328 | </configuration> |
| 329 | </execution> |
| 330 | <execution> |
| 331 | <id>push-policy-agent-image</id> |
| 332 | <goals> |
| 333 | <goal>build</goal> |
| 334 | <goal>push</goal> |
| 335 | </goals> |
| 336 | <configuration> |
| 337 | <pullRegistry>${env.CONTAINER_PULL_REGISTRY}</pullRegistry> |
| 338 | <pushRegistry>${env.CONTAINER_PUSH_REGISTRY}</pushRegistry> |
| 339 | <images> |
| 340 | <image> |
| 341 | <name>o-ran-sc/nonrtric-policy-agent:${project.version}</name> |
| 342 | <build> |
| 343 | <contextDir>${basedir}</contextDir> |
| 344 | <dockerFile>Dockerfile</dockerFile> |
| 345 | <args> |
| 346 | <JAR>${project.build.finalName}.jar</JAR> |
| 347 | </args> |
| 348 | <tags> |
| 349 | <tag>${project.version}</tag> |
YongchaoWu | 7b9db85 | 2020-02-07 09:25:43 +0100 | [diff] [blame] | 350 | <tag>latest</tag> |
PatrikBuhr | 1b8d76d | 2020-01-30 16:10:19 +0100 | [diff] [blame] | 351 | </tags> |
| 352 | </build> |
| 353 | </image> |
| 354 | </images> |
| 355 | </configuration> |
| 356 | </execution> |
| 357 | </executions> |
| 358 | </plugin> |
elinuxhenrik | 284d321 | 2020-02-07 16:21:06 +0100 | [diff] [blame] | 359 | <!-- support sonar in multi-module project --> |
| 360 | <plugin> |
| 361 | <groupId>org.sonarsource.scanner.maven</groupId> |
| 362 | <artifactId>sonar-maven-plugin</artifactId> |
| 363 | <version>${sonar-maven-plugin.version}</version> |
| 364 | </plugin> |
PatrikBuhr | 13c62d1 | 2020-11-11 13:14:57 +0100 | [diff] [blame] | 365 | <plugin> |
| 366 | <groupId>org.codehaus.mojo</groupId> |
| 367 | <artifactId>exec-maven-plugin</artifactId> |
| 368 | <executions> |
| 369 | <execution> |
| 370 | <id>git submodule update</id> |
| 371 | <phase>initialize</phase> |
| 372 | <configuration> |
| 373 | <executable>git</executable> |
| 374 | <arguments> |
| 375 | <argument>submodule</argument> |
| 376 | <argument>update</argument> |
| 377 | <argument>--init</argument> |
| 378 | <argument>--recursive</argument> |
| 379 | </arguments> |
| 380 | </configuration> |
| 381 | <goals> |
| 382 | <goal>exec</goal> |
| 383 | </goals> |
| 384 | </execution> |
| 385 | <execution> |
| 386 | <id>copy configuration</id> |
| 387 | <phase>initialize</phase> |
| 388 | <configuration> |
| 389 | <executable>cp</executable> |
| 390 | <arguments> |
| 391 | <argument>-r</argument> |
| 392 | <argument>../onap/oran/a1-policy-management/config</argument> |
| 393 | <argument>.</argument> |
| 394 | </arguments> |
| 395 | </configuration> |
| 396 | <goals> |
| 397 | <goal>exec</goal> |
| 398 | </goals> |
| 399 | </execution> |
| 400 | </executions> |
| 401 | </plugin> |
PatrikBuhr | 1b8d76d | 2020-01-30 16:10:19 +0100 | [diff] [blame] | 402 | </plugins> |
| 403 | </build> |
| 404 | <issueManagement> |
| 405 | <system>JIRA</system> |
| 406 | <url>https://jira.o-ran-sc.org/</url> |
| 407 | </issueManagement> |
PatrikBuhr | 13c62d1 | 2020-11-11 13:14:57 +0100 | [diff] [blame] | 408 | </project> |