elinuxhenrik | e5b384a | 2020-07-22 16:41:17 +0200 | [diff] [blame] | 1 | <?xml version="1.0" encoding="UTF-8"?> |
| 2 | <!-- |
| 3 | ~ ============LICENSE_START======================================================= |
| 4 | ~ ONAP : ccsdk oran |
| 5 | ~ ================================================================================ |
| 6 | ~ Copyright (C) 2020 Nordix Foundation. All rights reserved. |
| 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 | --> |
Singal, Kapil (ks220y) | 7788a0b | 2020-09-03 16:24:57 -0400 | [diff] [blame] | 22 | |
elinuxhenrik | e5b384a | 2020-07-22 16:41:17 +0200 | [diff] [blame] | 23 | <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"> |
| 24 | <modelVersion>4.0.0</modelVersion> |
| 25 | |
| 26 | <parent> |
| 27 | <groupId>org.onap.ccsdk.parent</groupId> |
RehanRaza | 0e3740a | 2020-08-03 15:56:03 +0200 | [diff] [blame] | 28 | <artifactId>spring-boot-starter-parent</artifactId> |
Dan Timoney | 5399db2 | 2020-09-15 11:28:06 -0400 | [diff] [blame] | 29 | <version>2.1.0-SNAPSHOT</version> |
Singal, Kapil (ks220y) | 7788a0b | 2020-09-03 16:24:57 -0400 | [diff] [blame] | 30 | <relativePath/> |
elinuxhenrik | e5b384a | 2020-07-22 16:41:17 +0200 | [diff] [blame] | 31 | </parent> |
| 32 | |
| 33 | <groupId>org.onap.ccsdk.oran</groupId> |
| 34 | <artifactId>a1-policy-management-service</artifactId> |
Dan Timoney | 5399db2 | 2020-09-15 11:28:06 -0400 | [diff] [blame] | 35 | <version>1.1.0-SNAPSHOT</version> |
elinuxhenrik | e5b384a | 2020-07-22 16:41:17 +0200 | [diff] [blame] | 36 | |
Lathish | a682c32 | 2020-07-30 15:52:12 +0100 | [diff] [blame] | 37 | <name>ccsdk-oran :: ${project.artifactId}</name> |
elinuxhenrik | e5b384a | 2020-07-22 16:41:17 +0200 | [diff] [blame] | 38 | |
RehanRaza | 0e3740a | 2020-08-03 15:56:03 +0200 | [diff] [blame] | 39 | <properties> |
| 40 | <java.version.source>11</java.version.source> |
| 41 | <java.version.target>11</java.version.target> |
elinuxhenrik | fa658f6 | 2020-11-05 12:37:43 +0100 | [diff] [blame] | 42 | <springfox.version>2.9.2</springfox.version><!-- Do not change to version 3.0.0! Will break the generated json. --> |
| 43 | <immutable.version>2.8.8</immutable.version> |
RehanRaza | 0e3740a | 2020-08-03 15:56:03 +0200 | [diff] [blame] | 44 | <sdk.version>1.1.6</sdk.version> |
elinuxhenrik | fa658f6 | 2020-11-05 12:37:43 +0100 | [diff] [blame] | 45 | <json.version>20200518</json.version> |
| 46 | <formatter-maven-plugin.version>2.13.0</formatter-maven-plugin.version> |
| 47 | <spotless-maven-plugin.version>2.5.0</spotless-maven-plugin.version> |
elinuxhenrik | 50b658d | 2020-11-11 14:11:37 +0100 | [diff] [blame] | 48 | <commons-io.version>2.5</commons-io.version> |
elinuxhenrik | c4d1f8a | 2020-08-24 13:30:10 +0200 | [diff] [blame] | 49 | <docker-maven-plugin>0.30.0</docker-maven-plugin> |
elinuxhenrik | fa658f6 | 2020-11-05 12:37:43 +0100 | [diff] [blame] | 50 | <surefire-maven-plugin.version>3.0.0-M5</surefire-maven-plugin.version><!-- Version must be higher than version 2.19.1 that is defined in the parent pom for JUnit 5 tests to be run. Do not remove! --> |
| 51 | <jacoco-maven-plugin.version>0.8.6</jacoco-maven-plugin.version> |
RehanRaza | 0e3740a | 2020-08-03 15:56:03 +0200 | [diff] [blame] | 52 | <exec.skip>true</exec.skip> |
Dan Timoney | efdb5b0 | 2020-11-02 11:00:33 -0500 | [diff] [blame] | 53 | <ccsdk.project.version>${project.version}</ccsdk.project.version> |
RehanRaza | 0e3740a | 2020-08-03 15:56:03 +0200 | [diff] [blame] | 54 | </properties> |
Singal, Kapil (ks220y) | 7788a0b | 2020-09-03 16:24:57 -0400 | [diff] [blame] | 55 | |
RehanRaza | 0e3740a | 2020-08-03 15:56:03 +0200 | [diff] [blame] | 56 | <dependencies> |
| 57 | <dependency> |
| 58 | <groupId>org.springframework.boot</groupId> |
elinuxhenrik | fa658f6 | 2020-11-05 12:37:43 +0100 | [diff] [blame] | 59 | <artifactId>spring-boot</artifactId> |
| 60 | </dependency> |
| 61 | <dependency> |
| 62 | <groupId>org.springframework</groupId> |
| 63 | <artifactId>spring-beans</artifactId> |
| 64 | </dependency> |
| 65 | <dependency> |
| 66 | <groupId>org.springframework</groupId> |
| 67 | <artifactId>spring-context</artifactId> |
RehanRaza | 0e3740a | 2020-08-03 15:56:03 +0200 | [diff] [blame] | 68 | </dependency> |
| 69 | <dependency> |
| 70 | <groupId>org.springframework.boot</groupId> |
elinuxhenrik | fa658f6 | 2020-11-05 12:37:43 +0100 | [diff] [blame] | 71 | <artifactId>spring-boot-autoconfigure</artifactId> |
RehanRaza | 0e3740a | 2020-08-03 15:56:03 +0200 | [diff] [blame] | 72 | </dependency> |
| 73 | <dependency> |
elinuxhenrik | fa658f6 | 2020-11-05 12:37:43 +0100 | [diff] [blame] | 74 | <groupId>org.springframework</groupId> |
| 75 | <artifactId>spring-web</artifactId> |
RehanRaza | 0e3740a | 2020-08-03 15:56:03 +0200 | [diff] [blame] | 76 | </dependency> |
| 77 | <dependency> |
elinuxhenrik | fa658f6 | 2020-11-05 12:37:43 +0100 | [diff] [blame] | 78 | <groupId>org.springframework</groupId> |
| 79 | <artifactId>spring-webmvc</artifactId> |
RehanRaza | 0e3740a | 2020-08-03 15:56:03 +0200 | [diff] [blame] | 80 | </dependency> |
| 81 | <dependency> |
| 82 | <groupId>org.springframework</groupId> |
| 83 | <artifactId>spring-webflux</artifactId> |
| 84 | </dependency> |
| 85 | <dependency> |
elinuxhenrik | fa658f6 | 2020-11-05 12:37:43 +0100 | [diff] [blame] | 86 | <groupId>io.springfox</groupId> |
| 87 | <artifactId>springfox-spring-web</artifactId> |
| 88 | <version>${springfox.version}</version> |
RehanRaza | 0e3740a | 2020-08-03 15:56:03 +0200 | [diff] [blame] | 89 | </dependency> |
| 90 | <dependency> |
elinuxhenrik | fa658f6 | 2020-11-05 12:37:43 +0100 | [diff] [blame] | 91 | <groupId>io.springfox</groupId> |
| 92 | <artifactId>springfox-spi</artifactId> |
| 93 | <version>${springfox.version}</version> |
RehanRaza | 0e3740a | 2020-08-03 15:56:03 +0200 | [diff] [blame] | 94 | </dependency> |
| 95 | <dependency> |
elinuxhenrik | fa658f6 | 2020-11-05 12:37:43 +0100 | [diff] [blame] | 96 | <groupId>io.springfox</groupId> |
| 97 | <artifactId>springfox-core</artifactId> |
| 98 | <version>${springfox.version}</version> |
| 99 | </dependency> |
| 100 | <dependency> |
| 101 | <groupId>org.aspectj</groupId> |
| 102 | <artifactId>aspectjweaver</artifactId> |
| 103 | </dependency> |
| 104 | <dependency> |
| 105 | <groupId>com.fasterxml.jackson.core</groupId> |
| 106 | <artifactId>jackson-databind</artifactId> |
| 107 | </dependency> |
| 108 | <dependency> |
| 109 | <groupId>org.apache.tomcat.embed</groupId> |
| 110 | <artifactId>tomcat-embed-core</artifactId> |
| 111 | </dependency> |
| 112 | <dependency> |
| 113 | <groupId>org.onap.dcaegen2.services.sdk.rest.services</groupId> |
| 114 | <artifactId>cbs-client</artifactId> |
| 115 | <version>${sdk.version}</version> |
| 116 | </dependency> |
| 117 | <dependency> |
| 118 | <groupId>javax.validation</groupId> |
| 119 | <artifactId>validation-api</artifactId> |
| 120 | </dependency> |
| 121 | <dependency> |
| 122 | <groupId>com.google.guava</groupId> |
| 123 | <artifactId>guava</artifactId> |
RehanRaza | 0e3740a | 2020-08-03 15:56:03 +0200 | [diff] [blame] | 124 | </dependency> |
| 125 | <dependency> |
| 126 | <groupId>org.immutables</groupId> |
| 127 | <artifactId>value</artifactId> |
| 128 | <version>${immutable.version}</version> |
| 129 | <scope>provided</scope> |
| 130 | </dependency> |
| 131 | <dependency> |
| 132 | <groupId>org.immutables</groupId> |
| 133 | <artifactId>gson</artifactId> |
| 134 | <version>${immutable.version}</version> |
| 135 | </dependency> |
| 136 | <dependency> |
| 137 | <groupId>org.json</groupId> |
| 138 | <artifactId>json</artifactId> |
| 139 | <version>${json.version}</version> |
| 140 | </dependency> |
| 141 | <dependency> |
RehanRaza | 0e3740a | 2020-08-03 15:56:03 +0200 | [diff] [blame] | 142 | <groupId>org.projectlombok</groupId> |
| 143 | <artifactId>lombok</artifactId> |
| 144 | <scope>provided</scope> |
| 145 | </dependency> |
RehanRaza | 0e3740a | 2020-08-03 15:56:03 +0200 | [diff] [blame] | 146 | <!-- Actuator dependencies --> |
| 147 | <dependency> |
| 148 | <groupId>org.springframework.boot</groupId> |
| 149 | <artifactId>spring-boot-starter-actuator</artifactId> |
elinuxhenrik | fa658f6 | 2020-11-05 12:37:43 +0100 | [diff] [blame] | 150 | <scope>runtime</scope> |
RehanRaza | 0e3740a | 2020-08-03 15:56:03 +0200 | [diff] [blame] | 151 | </dependency> |
| 152 | <!--REQUIRED TO GENERATE DOCUMENTATION --> |
| 153 | <dependency> |
| 154 | <groupId>io.springfox</groupId> |
| 155 | <artifactId>springfox-swagger2</artifactId> |
| 156 | <version>${springfox.version}</version> |
| 157 | </dependency> |
| 158 | <dependency> |
| 159 | <groupId>io.springfox</groupId> |
| 160 | <artifactId>springfox-swagger-ui</artifactId> |
| 161 | <version>${springfox.version}</version> |
elinuxhenrik | fa658f6 | 2020-11-05 12:37:43 +0100 | [diff] [blame] | 162 | <scope>runtime</scope> |
| 163 | </dependency> |
| 164 | <!-- For development help --> |
| 165 | <dependency> |
| 166 | <groupId>org.springframework.boot</groupId> |
| 167 | <artifactId>spring-boot-devtools</artifactId> |
| 168 | <optional>true</optional> |
| 169 | <scope>runtime</scope> |
| 170 | </dependency> |
| 171 | <dependency> |
| 172 | <groupId>org.springframework.boot</groupId> |
| 173 | <artifactId>spring-boot-configuration-processor</artifactId> |
| 174 | <optional>true</optional> |
| 175 | <scope>runtime</scope> |
RehanRaza | 0e3740a | 2020-08-03 15:56:03 +0200 | [diff] [blame] | 176 | </dependency> |
Singal, Kapil (ks220y) | 7788a0b | 2020-09-03 16:24:57 -0400 | [diff] [blame] | 177 | <!-- TEST --> |
RehanRaza | 0e3740a | 2020-08-03 15:56:03 +0200 | [diff] [blame] | 178 | <dependency> |
| 179 | <groupId>org.springframework.boot</groupId> |
elinuxhenrik | fa658f6 | 2020-11-05 12:37:43 +0100 | [diff] [blame] | 180 | <artifactId>spring-boot-test</artifactId> |
| 181 | <scope>test</scope> |
| 182 | </dependency> |
| 183 | <dependency> |
| 184 | <groupId>org.springframework.boot</groupId> |
RehanRaza | 0e3740a | 2020-08-03 15:56:03 +0200 | [diff] [blame] | 185 | <artifactId>spring-boot-starter-test</artifactId> |
| 186 | <scope>test</scope> |
| 187 | </dependency> |
| 188 | <dependency> |
| 189 | <groupId>org.awaitility</groupId> |
| 190 | <artifactId>awaitility</artifactId> |
| 191 | <scope>test</scope> |
| 192 | </dependency> |
| 193 | <dependency> |
| 194 | <groupId>io.projectreactor</groupId> |
| 195 | <artifactId>reactor-test</artifactId> |
| 196 | <scope>test</scope> |
| 197 | </dependency> |
| 198 | <dependency> |
| 199 | <groupId>org.junit.jupiter</groupId> |
| 200 | <artifactId>junit-jupiter-engine</artifactId> |
| 201 | <scope>test</scope> |
| 202 | </dependency> |
| 203 | <dependency> |
| 204 | <groupId>org.mockito</groupId> |
| 205 | <artifactId>mockito-junit-jupiter</artifactId> |
| 206 | <scope>test</scope> |
| 207 | </dependency> |
| 208 | <dependency> |
| 209 | <groupId>org.mockito</groupId> |
| 210 | <artifactId>mockito-core</artifactId> |
| 211 | <scope>test</scope> |
| 212 | </dependency> |
| 213 | <dependency> |
| 214 | <groupId>com.squareup.okhttp3</groupId> |
| 215 | <artifactId>mockwebserver</artifactId> |
| 216 | <scope>test</scope> |
| 217 | </dependency> |
elinuxhenrik | 50b658d | 2020-11-11 14:11:37 +0100 | [diff] [blame] | 218 | <dependency> |
| 219 | <groupId>commons-io</groupId> |
| 220 | <artifactId>commons-io</artifactId> |
| 221 | <version>${commons-io.version}</version> |
| 222 | <scope>test</scope> |
| 223 | </dependency> |
RehanRaza | 0e3740a | 2020-08-03 15:56:03 +0200 | [diff] [blame] | 224 | </dependencies> |
Singal, Kapil (ks220y) | 7788a0b | 2020-09-03 16:24:57 -0400 | [diff] [blame] | 225 | |
RehanRaza | 0e3740a | 2020-08-03 15:56:03 +0200 | [diff] [blame] | 226 | <build> |
| 227 | <plugins> |
| 228 | <plugin> |
Dan Timoney | efdb5b0 | 2020-11-02 11:00:33 -0500 | [diff] [blame] | 229 | <groupId>org.codehaus.groovy.maven</groupId> |
| 230 | <artifactId>gmaven-plugin</artifactId> |
| 231 | <executions> |
| 232 | <execution> |
| 233 | <phase>validate</phase> |
| 234 | <goals> |
| 235 | <goal>execute</goal> |
| 236 | </goals> |
| 237 | <configuration> |
| 238 | <source>${basedir}/TagVersion.groovy</source> |
| 239 | </configuration> |
| 240 | </execution> |
| 241 | </executions> |
| 242 | </plugin> |
| 243 | <plugin> |
RehanRaza | 0e3740a | 2020-08-03 15:56:03 +0200 | [diff] [blame] | 244 | <groupId>org.springframework.boot</groupId> |
| 245 | <artifactId>spring-boot-maven-plugin</artifactId> |
| 246 | </plugin> |
Singal, Kapil (ks220y) | 7788a0b | 2020-09-03 16:24:57 -0400 | [diff] [blame] | 247 | <plugin> |
RehanRaza | 0e3740a | 2020-08-03 15:56:03 +0200 | [diff] [blame] | 248 | <groupId>net.revelc.code.formatter</groupId> |
| 249 | <artifactId>formatter-maven-plugin</artifactId> |
| 250 | <version>${formatter-maven-plugin.version}</version> |
| 251 | <configuration> |
Singal, Kapil (ks220y) | 7788a0b | 2020-09-03 16:24:57 -0400 | [diff] [blame] | 252 | <lineEnding>LF</lineEnding> |
RehanRaza | 0e3740a | 2020-08-03 15:56:03 +0200 | [diff] [blame] | 253 | <configFile>${project.basedir}/eclipse-formatter.xml</configFile> |
| 254 | </configuration> |
| 255 | <!-- https://code.revelc.net/formatter-maven-plugin/ use mvn formatter:format |
| 256 | spotless:apply process-sources --> |
| 257 | </plugin> |
| 258 | <plugin> |
| 259 | <groupId>com.diffplug.spotless</groupId> |
| 260 | <artifactId>spotless-maven-plugin</artifactId> |
| 261 | <version>${spotless-maven-plugin.version}</version> |
| 262 | <configuration> |
Singal, Kapil (ks220y) | 7788a0b | 2020-09-03 16:24:57 -0400 | [diff] [blame] | 263 | <lineEndings>UNIX</lineEndings> |
RehanRaza | 0e3740a | 2020-08-03 15:56:03 +0200 | [diff] [blame] | 264 | <java> |
Singal, Kapil (ks220y) | 7788a0b | 2020-09-03 16:24:57 -0400 | [diff] [blame] | 265 | <removeUnusedImports/> |
RehanRaza | 0e3740a | 2020-08-03 15:56:03 +0200 | [diff] [blame] | 266 | <importOrder> |
| 267 | <order>com,java,javax,org</order> |
| 268 | </importOrder> |
| 269 | </java> |
| 270 | </configuration> |
| 271 | <!-- https://github.com/diffplug/spotless/tree/master/plugin-maven use |
| 272 | mvn spotless:apply to rewrite source files use mvn spotless:check to validate |
| 273 | source files --> |
| 274 | </plugin> |
| 275 | <plugin> |
| 276 | <groupId>org.apache.maven.plugins</groupId> |
| 277 | <artifactId>maven-surefire-plugin</artifactId> |
elinuxhenrik | 9c3a6bd | 2020-08-26 14:04:17 +0200 | [diff] [blame] | 278 | <version>${surefire-maven-plugin.version}</version> |
RehanRaza | 0e3740a | 2020-08-03 15:56:03 +0200 | [diff] [blame] | 279 | <configuration> |
| 280 | <skipTests>false</skipTests> |
| 281 | </configuration> |
| 282 | </plugin> |
| 283 | <plugin> |
| 284 | <artifactId>maven-failsafe-plugin</artifactId> |
| 285 | </plugin> |
| 286 | <plugin> |
| 287 | <groupId>org.codehaus.mojo</groupId> |
| 288 | <artifactId>build-helper-maven-plugin</artifactId> |
| 289 | <executions> |
| 290 | <execution> |
| 291 | <id>add-source</id> |
| 292 | <phase>generate-sources</phase> |
| 293 | <goals> |
| 294 | <goal>add-source</goal> |
| 295 | </goals> |
| 296 | <configuration> |
| 297 | <sources> |
| 298 | <source>${project.build.directory}/generated-sources/annotations/</source> |
| 299 | </sources> |
| 300 | </configuration> |
| 301 | </execution> |
| 302 | </executions> |
| 303 | </plugin> |
| 304 | <plugin> |
| 305 | <groupId>org.jacoco</groupId> |
| 306 | <artifactId>jacoco-maven-plugin</artifactId> |
| 307 | <version>${jacoco-maven-plugin.version}</version> |
| 308 | <executions> |
| 309 | <execution> |
| 310 | <id>default-prepare-agent</id> |
| 311 | <goals> |
| 312 | <goal>prepare-agent</goal> |
| 313 | </goals> |
| 314 | </execution> |
| 315 | <execution> |
| 316 | <id>default-report</id> |
| 317 | <phase>prepare-package</phase> |
| 318 | <goals> |
| 319 | <goal>report</goal> |
| 320 | </goals> |
| 321 | </execution> |
| 322 | </executions> |
| 323 | </plugin> |
| 324 | <plugin> |
| 325 | <groupId>io.fabric8</groupId> |
| 326 | <artifactId>docker-maven-plugin</artifactId> |
| 327 | <version>${docker-maven-plugin}</version> |
| 328 | <inherited>false</inherited> |
| 329 | <executions> |
| 330 | <execution> |
| 331 | <id>generate-policy-management-service-image</id> |
| 332 | <phase>package</phase> |
| 333 | <goals> |
| 334 | <goal>build</goal> |
| 335 | </goals> |
| 336 | <configuration> |
| 337 | <images> |
| 338 | <image> |
| 339 | <name>onap/ccsdk-oran-a1policymanagementservice:${project.version}</name> |
| 340 | <build> |
| 341 | <cleanup>try</cleanup> |
| 342 | <contextDir>${basedir}</contextDir> |
| 343 | <dockerFile>Dockerfile</dockerFile> |
| 344 | <args> |
| 345 | <JAR>${project.build.finalName}.jar</JAR> |
| 346 | </args> |
| 347 | <tags> |
| 348 | <tag>${project.version}</tag> |
| 349 | </tags> |
| 350 | </build> |
| 351 | </image> |
| 352 | </images> |
| 353 | </configuration> |
| 354 | </execution> |
| 355 | <execution> |
| 356 | <id>push-policy-management-service-image</id> |
| 357 | <goals> |
| 358 | <goal>build</goal> |
| 359 | <goal>push</goal> |
| 360 | </goals> |
| 361 | <configuration> |
| 362 | <images> |
| 363 | <image> |
| 364 | <name>onap/ccsdk-oran-a1policymanagementservice:${project.version}</name> |
| 365 | <build> |
| 366 | <contextDir>${basedir}</contextDir> |
| 367 | <dockerFile>Dockerfile</dockerFile> |
| 368 | <args> |
| 369 | <JAR>${project.build.finalName}.jar</JAR> |
| 370 | </args> |
| 371 | <tags> |
Dan Timoney | efdb5b0 | 2020-11-02 11:00:33 -0500 | [diff] [blame] | 372 | <tag>${project.docker.latestminortag.version}</tag> |
| 373 | <tag>${project.docker.latestfulltag.version}</tag> |
| 374 | <tag>${project.docker.latesttagtimestamp.version}</tag> |
RehanRaza | 0e3740a | 2020-08-03 15:56:03 +0200 | [diff] [blame] | 375 | </tags> |
| 376 | </build> |
| 377 | </image> |
| 378 | </images> |
| 379 | </configuration> |
| 380 | </execution> |
| 381 | </executions> |
| 382 | </plugin> |
| 383 | </plugins> |
| 384 | </build> |
elinuxhenrik | e5b384a | 2020-07-22 16:41:17 +0200 | [diff] [blame] | 385 | </project> |