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