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 | 083393d | 2020-05-12 13:27:37 +0200 | [diff] [blame] | 29 | <version>2.2.7.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 | 15e2651 | 2020-05-27 16:19:49 +0200 | [diff] [blame] | 34 | <version>2.0.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> |
| 50 | <springfox.version>2.9.2</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> |
| 53 | <swagger.version>2.0.0</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> |
| 57 | <formatter-maven-plugin.version>2.8.1</formatter-maven-plugin.version> |
| 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> |
ecaiyanlinux | f40c3b6 | 2020-06-04 09:34:31 +0200 | [diff] [blame] | 64 | <exec-maven-plugin.version>1.6.0</exec-maven-plugin.version> |
ecaiyanlinux | 5ab25ed | 2020-06-10 18:17:56 +0200 | [diff] [blame] | 65 | <exec.skip>true</exec.skip> |
PatrikBuhr | 1b8d76d | 2020-01-30 16:10:19 +0100 | [diff] [blame] | 66 | </properties> |
| 67 | <dependencies> |
| 68 | <dependency> |
| 69 | <groupId>org.springframework.boot</groupId> |
| 70 | <artifactId>spring-boot-starter-web</artifactId> |
| 71 | </dependency> |
| 72 | <dependency> |
| 73 | <groupId>org.springframework.boot</groupId> |
| 74 | <artifactId>spring-boot-starter-thymeleaf</artifactId> |
| 75 | </dependency> |
| 76 | <dependency> |
| 77 | <groupId>org.springframework.boot</groupId> |
| 78 | <artifactId>spring-boot-starter-webflux</artifactId> |
| 79 | </dependency> |
| 80 | <dependency> |
PatrikBuhr | 4e7db50 | 2020-06-16 11:19:01 +0200 | [diff] [blame] | 81 | <groupId>org.springframework.boot</groupId> |
| 82 | <artifactId>spring-boot-starter-aop</artifactId> |
Lathish | 961b63f | 2020-03-19 15:24:32 +0000 | [diff] [blame] | 83 | </dependency> |
| 84 | <dependency> |
PatrikBuhr | 1b8d76d | 2020-01-30 16:10:19 +0100 | [diff] [blame] | 85 | <groupId>org.springframework.boot</groupId> |
| 86 | <artifactId>spring-boot-devtools</artifactId> |
| 87 | <optional>true</optional> |
| 88 | </dependency> |
| 89 | <dependency> |
| 90 | <groupId>org.springframework</groupId> |
| 91 | <artifactId>spring-webflux</artifactId> |
| 92 | </dependency> |
| 93 | <dependency> |
| 94 | <groupId>io.swagger.core.v3</groupId> |
| 95 | <artifactId>swagger-jaxrs2</artifactId> |
| 96 | <version>${swagger.version}</version> |
| 97 | </dependency> |
| 98 | <dependency> |
| 99 | <groupId>io.swagger.core.v3</groupId> |
| 100 | <artifactId>swagger-jaxrs2-servlet-initializer</artifactId> |
| 101 | <version>${swagger.version}</version> |
| 102 | </dependency> |
| 103 | <dependency> |
| 104 | <groupId>javax.xml.bind</groupId> |
| 105 | <artifactId>jaxb-api</artifactId> |
| 106 | </dependency> |
| 107 | <dependency> |
| 108 | <groupId>org.immutables</groupId> |
| 109 | <artifactId>value</artifactId> |
| 110 | <version>${immutable.version}</version> |
| 111 | <scope>provided</scope> |
| 112 | </dependency> |
| 113 | <dependency> |
| 114 | <groupId>org.immutables</groupId> |
| 115 | <artifactId>gson</artifactId> |
| 116 | <version>${immutable.version}</version> |
| 117 | </dependency> |
| 118 | <dependency> |
| 119 | <groupId>org.json</groupId> |
| 120 | <artifactId>json</artifactId> |
| 121 | <version>${json.version}</version> |
| 122 | </dependency> |
elinuxhenrik | 777b07b | 2020-01-23 16:27:44 +0100 | [diff] [blame] | 123 | <dependency> |
| 124 | <groupId>commons-net</groupId> |
| 125 | <artifactId>commons-net</artifactId> |
| 126 | <version>${commons-net.version}</version> |
| 127 | </dependency> |
PatrikBuhr | 1b8d76d | 2020-01-30 16:10:19 +0100 | [diff] [blame] | 128 | <dependency> |
| 129 | <groupId>org.springframework.boot</groupId> |
| 130 | <artifactId>spring-boot-configuration-processor</artifactId> |
| 131 | <optional>true</optional> |
| 132 | </dependency> |
| 133 | <dependency> |
| 134 | <groupId>org.onap.dcaegen2.services.sdk.rest.services</groupId> |
| 135 | <artifactId>cbs-client</artifactId> |
elinuxhenrik | 777b07b | 2020-01-23 16:27:44 +0100 | [diff] [blame] | 136 | <version>${sdk.version}</version> |
| 137 | </dependency> |
| 138 | <dependency> |
Lathish | 1f722de | 2020-01-27 14:57:22 +0000 | [diff] [blame] | 139 | <groupId>org.projectlombok</groupId> |
| 140 | <artifactId>lombok</artifactId> |
elinuxhenrik | 9fb9f6e | 2020-01-28 08:59:39 +0100 | [diff] [blame] | 141 | <scope>provided</scope> |
Lathish | 1f722de | 2020-01-27 14:57:22 +0000 | [diff] [blame] | 142 | </dependency> |
RehanRaza | 7d0bb60 | 2020-02-24 09:35:23 +0100 | [diff] [blame] | 143 | <dependency> |
elinuxhenrik | 15e2651 | 2020-05-27 16:19:49 +0200 | [diff] [blame] | 144 | <groupId>org.onap.dmaap.messagerouter.dmaapclient</groupId> |
| 145 | <artifactId>dmaapClient</artifactId> |
| 146 | <version>${version.dmaap}</version> |
RehanRaza | 7d0bb60 | 2020-02-24 09:35:23 +0100 | [diff] [blame] | 147 | </dependency> |
elinuxhenrik | 15e2651 | 2020-05-27 16:19:49 +0200 | [diff] [blame] | 148 | <dependency> |
| 149 | <groupId>javax.ws.rs</groupId> |
| 150 | <artifactId>javax.ws.rs-api</artifactId> |
| 151 | <version>${javax.ws.rs-api.version}</version> |
| 152 | </dependency> |
| 153 | <dependency> |
| 154 | <groupId>org.glassfish.jersey.inject</groupId> |
| 155 | <artifactId>jersey-hk2</artifactId> |
| 156 | </dependency> |
elinuxhenrik | 15e2651 | 2020-05-27 16:19:49 +0200 | [diff] [blame] | 157 | <!-- Actuator dependencies --> |
| 158 | <dependency> |
| 159 | <groupId>org.springframework.boot</groupId> |
| 160 | <artifactId>spring-boot-starter-actuator</artifactId> |
| 161 | </dependency> |
PatrikBuhr | 1b8d76d | 2020-01-30 16:10:19 +0100 | [diff] [blame] | 162 | <!--REQUIRED TO GENERATE DOCUMENTATION --> |
| 163 | <dependency> |
| 164 | <groupId>io.springfox</groupId> |
| 165 | <artifactId>springfox-swagger2</artifactId> |
| 166 | <version>${springfox.version}</version> |
| 167 | </dependency> |
| 168 | <dependency> |
| 169 | <groupId>io.springfox</groupId> |
| 170 | <artifactId>springfox-swagger-ui</artifactId> |
| 171 | <version>${springfox.version}</version> |
| 172 | </dependency> |
| 173 | <!-- TEST --> |
| 174 | <dependency> |
elinuxhenrik | 15e2651 | 2020-05-27 16:19:49 +0200 | [diff] [blame] | 175 | <groupId>org.springframework.boot</groupId> |
| 176 | <artifactId>spring-boot-starter-test</artifactId> |
| 177 | <scope>test</scope> |
| 178 | </dependency> |
| 179 | <dependency> |
PatrikBuhr | 1b8d76d | 2020-01-30 16:10:19 +0100 | [diff] [blame] | 180 | <groupId>org.awaitility</groupId> |
| 181 | <artifactId>awaitility</artifactId> |
PatrikBuhr | 1b8d76d | 2020-01-30 16:10:19 +0100 | [diff] [blame] | 182 | <scope>test</scope> |
| 183 | </dependency> |
| 184 | <dependency> |
| 185 | <groupId>io.projectreactor</groupId> |
| 186 | <artifactId>reactor-test</artifactId> |
| 187 | <scope>test</scope> |
| 188 | </dependency> |
| 189 | <dependency> |
| 190 | <groupId>org.junit.jupiter</groupId> |
| 191 | <artifactId>junit-jupiter-engine</artifactId> |
| 192 | <scope>test</scope> |
| 193 | </dependency> |
| 194 | <dependency> |
| 195 | <groupId>org.mockito</groupId> |
| 196 | <artifactId>mockito-junit-jupiter</artifactId> |
| 197 | <scope>test</scope> |
| 198 | </dependency> |
| 199 | <dependency> |
| 200 | <groupId>org.mockito</groupId> |
| 201 | <artifactId>mockito-core</artifactId> |
| 202 | <scope>test</scope> |
| 203 | </dependency> |
| 204 | <dependency> |
elinuxhenrik | 15e2651 | 2020-05-27 16:19:49 +0200 | [diff] [blame] | 205 | <groupId>com.squareup.okhttp3</groupId> |
| 206 | <artifactId>mockwebserver</artifactId> |
| 207 | <scope>test</scope> |
Lathish | 7e09b1b | 2020-01-24 14:50:32 +0000 | [diff] [blame] | 208 | </dependency> |
PatrikBuhr | 1b8d76d | 2020-01-30 16:10:19 +0100 | [diff] [blame] | 209 | </dependencies> |
| 210 | <build> |
| 211 | <plugins> |
| 212 | <plugin> |
| 213 | <groupId>org.springframework.boot</groupId> |
| 214 | <artifactId>spring-boot-maven-plugin</artifactId> |
| 215 | </plugin> |
| 216 | <plugin> |
| 217 | <groupId>net.revelc.code.formatter</groupId> |
| 218 | <artifactId>formatter-maven-plugin</artifactId> |
| 219 | <version>${formatter-maven-plugin.version}</version> |
| 220 | <configuration> |
| 221 | <configFile>${project.basedir}/eclipse-formatter.xml</configFile> |
| 222 | </configuration> |
ecaiyanlinux | f40c3b6 | 2020-06-04 09:34:31 +0200 | [diff] [blame] | 223 | <!-- https://code.revelc.net/formatter-maven-plugin/ use mvn formatter:format |
Lathish | dac5e37 | 2020-01-23 13:56:28 +0000 | [diff] [blame] | 224 | spotless:apply process-sources --> |
PatrikBuhr | 1b8d76d | 2020-01-30 16:10:19 +0100 | [diff] [blame] | 225 | </plugin> |
| 226 | <plugin> |
| 227 | <groupId>com.diffplug.spotless</groupId> |
| 228 | <artifactId>spotless-maven-plugin</artifactId> |
| 229 | <version>${spotless-maven-plugin.version}</version> |
| 230 | <configuration> |
| 231 | <java> |
| 232 | <removeUnusedImports /> |
| 233 | <importOrder> |
| 234 | <order>com,java,javax,org</order> |
| 235 | </importOrder> |
| 236 | </java> |
| 237 | </configuration> |
ecaiyanlinux | f40c3b6 | 2020-06-04 09:34:31 +0200 | [diff] [blame] | 238 | <!-- https://github.com/diffplug/spotless/tree/master/plugin-maven use |
| 239 | mvn spotless:apply to rewrite source files use mvn spotless:check to validate |
Lathish | dac5e37 | 2020-01-23 13:56:28 +0000 | [diff] [blame] | 240 | source files --> |
PatrikBuhr | 1b8d76d | 2020-01-30 16:10:19 +0100 | [diff] [blame] | 241 | </plugin> |
| 242 | <plugin> |
| 243 | <groupId>org.apache.maven.plugins</groupId> |
| 244 | <artifactId>maven-surefire-plugin</artifactId> |
| 245 | <configuration> |
| 246 | <skipTests>false</skipTests> |
| 247 | </configuration> |
| 248 | </plugin> |
| 249 | <plugin> |
| 250 | <artifactId>maven-failsafe-plugin</artifactId> |
| 251 | </plugin> |
| 252 | <plugin> |
| 253 | <groupId>org.codehaus.mojo</groupId> |
| 254 | <artifactId>build-helper-maven-plugin</artifactId> |
| 255 | <executions> |
| 256 | <execution> |
| 257 | <id>add-source</id> |
| 258 | <phase>generate-sources</phase> |
| 259 | <goals> |
| 260 | <goal>add-source</goal> |
| 261 | </goals> |
| 262 | <configuration> |
| 263 | <sources> |
| 264 | <source>${project.build.directory}/generated-sources/annotations/</source> |
| 265 | </sources> |
| 266 | </configuration> |
| 267 | </execution> |
| 268 | </executions> |
| 269 | </plugin> |
| 270 | <plugin> |
Lathish | c05ff96 | 2020-02-12 14:46:01 +0000 | [diff] [blame] | 271 | <groupId>org.jacoco</groupId> |
| 272 | <artifactId>jacoco-maven-plugin</artifactId> |
elinuxhenrik | b76f514 | 2020-04-06 13:01:00 +0200 | [diff] [blame] | 273 | <version>${jacoco-maven-plugin.version}</version> |
Lathish | c05ff96 | 2020-02-12 14:46:01 +0000 | [diff] [blame] | 274 | <executions> |
| 275 | <execution> |
| 276 | <id>default-prepare-agent</id> |
| 277 | <goals> |
| 278 | <goal>prepare-agent</goal> |
| 279 | </goals> |
| 280 | </execution> |
| 281 | <execution> |
| 282 | <id>default-report</id> |
| 283 | <phase>prepare-package</phase> |
| 284 | <goals> |
| 285 | <goal>report</goal> |
| 286 | </goals> |
| 287 | </execution> |
| 288 | </executions> |
| 289 | </plugin> |
| 290 | <plugin> |
PatrikBuhr | 1b8d76d | 2020-01-30 16:10:19 +0100 | [diff] [blame] | 291 | <groupId>io.fabric8</groupId> |
| 292 | <artifactId>docker-maven-plugin</artifactId> |
| 293 | <version>${docker-maven-plugin}</version> |
| 294 | <inherited>false</inherited> |
| 295 | <executions> |
| 296 | <execution> |
| 297 | <id>generate-policy-agent-image</id> |
| 298 | <phase>package</phase> |
| 299 | <goals> |
| 300 | <goal>build</goal> |
| 301 | </goals> |
| 302 | <configuration> |
| 303 | <pullRegistry>${env.CONTAINER_PULL_REGISTRY}</pullRegistry> |
| 304 | <images> |
| 305 | <image> |
| 306 | <name>o-ran-sc/nonrtric-policy-agent:${project.version}</name> |
| 307 | <build> |
| 308 | <cleanup>try</cleanup> |
| 309 | <contextDir>${basedir}</contextDir> |
| 310 | <dockerFile>Dockerfile</dockerFile> |
| 311 | <args> |
| 312 | <JAR>${project.build.finalName}.jar</JAR> |
| 313 | </args> |
| 314 | <tags> |
| 315 | <tag>${project.version}</tag> |
| 316 | </tags> |
| 317 | </build> |
| 318 | </image> |
| 319 | </images> |
| 320 | </configuration> |
| 321 | </execution> |
| 322 | <execution> |
| 323 | <id>push-policy-agent-image</id> |
| 324 | <goals> |
| 325 | <goal>build</goal> |
| 326 | <goal>push</goal> |
| 327 | </goals> |
| 328 | <configuration> |
| 329 | <pullRegistry>${env.CONTAINER_PULL_REGISTRY}</pullRegistry> |
| 330 | <pushRegistry>${env.CONTAINER_PUSH_REGISTRY}</pushRegistry> |
| 331 | <images> |
| 332 | <image> |
| 333 | <name>o-ran-sc/nonrtric-policy-agent:${project.version}</name> |
| 334 | <build> |
| 335 | <contextDir>${basedir}</contextDir> |
| 336 | <dockerFile>Dockerfile</dockerFile> |
| 337 | <args> |
| 338 | <JAR>${project.build.finalName}.jar</JAR> |
| 339 | </args> |
| 340 | <tags> |
| 341 | <tag>${project.version}</tag> |
YongchaoWu | 7b9db85 | 2020-02-07 09:25:43 +0100 | [diff] [blame] | 342 | <tag>latest</tag> |
PatrikBuhr | 1b8d76d | 2020-01-30 16:10:19 +0100 | [diff] [blame] | 343 | </tags> |
| 344 | </build> |
| 345 | </image> |
| 346 | </images> |
| 347 | </configuration> |
| 348 | </execution> |
| 349 | </executions> |
| 350 | </plugin> |
elinuxhenrik | 284d321 | 2020-02-07 16:21:06 +0100 | [diff] [blame] | 351 | <!-- support sonar in multi-module project --> |
| 352 | <plugin> |
| 353 | <groupId>org.sonarsource.scanner.maven</groupId> |
| 354 | <artifactId>sonar-maven-plugin</artifactId> |
| 355 | <version>${sonar-maven-plugin.version}</version> |
| 356 | </plugin> |
ecaiyanlinux | f40c3b6 | 2020-06-04 09:34:31 +0200 | [diff] [blame] | 357 | <plugin> |
| 358 | <groupId>org.codehaus.mojo</groupId> |
| 359 | <artifactId>exec-maven-plugin</artifactId> |
| 360 | <version>${exec-maven-plugin.version}</version> |
| 361 | <executions> |
| 362 | <execution> |
| 363 | <id>run-test-script</id> |
| 364 | <phase>verify</phase> |
| 365 | <goals> |
| 366 | <goal>exec</goal> |
| 367 | </goals> |
| 368 | </execution> |
| 369 | </executions> |
| 370 | <configuration> |
| 371 | <executable>bash</executable> |
| 372 | <arguments> |
| 373 | <argument>run_test.sh</argument> |
| 374 | </arguments> |
| 375 | <workingDirectory>../test/jenkins/</workingDirectory> |
| 376 | </configuration> |
| 377 | </plugin> |
PatrikBuhr | 1b8d76d | 2020-01-30 16:10:19 +0100 | [diff] [blame] | 378 | </plugins> |
| 379 | </build> |
| 380 | <issueManagement> |
| 381 | <system>JIRA</system> |
| 382 | <url>https://jira.o-ran-sc.org/</url> |
| 383 | </issueManagement> |
PatrikBuhr | 3bdae60 | 2019-11-28 10:58:54 +0100 | [diff] [blame] | 384 | </project> |