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> |
| 42 | <springfox.version>2.9.2</springfox.version> |
| 43 | <immutable.version>2.8.2</immutable.version> |
| 44 | <sdk.version>1.1.6</sdk.version> |
| 45 | <swagger.version>2.0.0</swagger.version> |
| 46 | <json.version>20190722</json.version> |
| 47 | <commons-net.version>3.6</commons-net.version> |
| 48 | <maven.compile.plugin.version>3.8.0</maven.compile.plugin.version> |
elinuxhenrik | c4d1f8a | 2020-08-24 13:30:10 +0200 | [diff] [blame] | 49 | <formatter-maven-plugin.version>2.8.1</formatter-maven-plugin.version> |
RehanRaza | 0e3740a | 2020-08-03 15:56:03 +0200 | [diff] [blame] | 50 | <spotless-maven-plugin.version>1.18.0</spotless-maven-plugin.version> |
elinuxhenrik | c4d1f8a | 2020-08-24 13:30:10 +0200 | [diff] [blame] | 51 | <docker-maven-plugin>0.30.0</docker-maven-plugin> |
| 52 | <version.dmaap>1.1.11</version.dmaap> |
| 53 | <javax.ws.rs-api.version>2.1.1</javax.ws.rs-api.version> |
elinuxhenrik | 9c3a6bd | 2020-08-26 14:04:17 +0200 | [diff] [blame] | 54 | <surefire-maven-plugin.version>2.22.2</surefire-maven-plugin.version><!-- Version must be this for tests to be run. Do not remove! --> |
RehanRaza | 0e3740a | 2020-08-03 15:56:03 +0200 | [diff] [blame] | 55 | <jacoco-maven-plugin.version>0.8.5</jacoco-maven-plugin.version> |
| 56 | <exec.skip>true</exec.skip> |
| 57 | </properties> |
Singal, Kapil (ks220y) | 7788a0b | 2020-09-03 16:24:57 -0400 | [diff] [blame] | 58 | |
RehanRaza | 0e3740a | 2020-08-03 15:56:03 +0200 | [diff] [blame] | 59 | <dependencies> |
| 60 | <dependency> |
| 61 | <groupId>org.springframework.boot</groupId> |
| 62 | <artifactId>spring-boot-starter-web</artifactId> |
| 63 | </dependency> |
| 64 | <dependency> |
| 65 | <groupId>org.springframework.boot</groupId> |
| 66 | <artifactId>spring-boot-starter-thymeleaf</artifactId> |
| 67 | </dependency> |
| 68 | <dependency> |
| 69 | <groupId>org.springframework.boot</groupId> |
| 70 | <artifactId>spring-boot-starter-webflux</artifactId> |
| 71 | </dependency> |
| 72 | <dependency> |
| 73 | <groupId>org.springframework.boot</groupId> |
| 74 | <artifactId>spring-boot-starter-aop</artifactId> |
| 75 | </dependency> |
| 76 | <dependency> |
| 77 | <groupId>org.springframework.boot</groupId> |
| 78 | <artifactId>spring-boot-devtools</artifactId> |
| 79 | <optional>true</optional> |
| 80 | </dependency> |
| 81 | <dependency> |
| 82 | <groupId>org.springframework</groupId> |
| 83 | <artifactId>spring-webflux</artifactId> |
| 84 | </dependency> |
| 85 | <dependency> |
| 86 | <groupId>io.swagger.core.v3</groupId> |
| 87 | <artifactId>swagger-jaxrs2</artifactId> |
| 88 | <version>${swagger.version}</version> |
| 89 | </dependency> |
| 90 | <dependency> |
| 91 | <groupId>io.swagger.core.v3</groupId> |
| 92 | <artifactId>swagger-jaxrs2-servlet-initializer</artifactId> |
| 93 | <version>${swagger.version}</version> |
| 94 | </dependency> |
| 95 | <dependency> |
| 96 | <groupId>javax.xml.bind</groupId> |
| 97 | <artifactId>jaxb-api</artifactId> |
| 98 | </dependency> |
| 99 | <dependency> |
| 100 | <groupId>org.immutables</groupId> |
| 101 | <artifactId>value</artifactId> |
| 102 | <version>${immutable.version}</version> |
| 103 | <scope>provided</scope> |
| 104 | </dependency> |
| 105 | <dependency> |
| 106 | <groupId>org.immutables</groupId> |
| 107 | <artifactId>gson</artifactId> |
| 108 | <version>${immutable.version}</version> |
| 109 | </dependency> |
| 110 | <dependency> |
| 111 | <groupId>org.json</groupId> |
| 112 | <artifactId>json</artifactId> |
| 113 | <version>${json.version}</version> |
| 114 | </dependency> |
| 115 | <dependency> |
| 116 | <groupId>commons-net</groupId> |
| 117 | <artifactId>commons-net</artifactId> |
| 118 | <version>${commons-net.version}</version> |
| 119 | </dependency> |
| 120 | <dependency> |
| 121 | <groupId>org.springframework.boot</groupId> |
| 122 | <artifactId>spring-boot-configuration-processor</artifactId> |
| 123 | <optional>true</optional> |
| 124 | </dependency> |
| 125 | <dependency> |
| 126 | <groupId>org.onap.dcaegen2.services.sdk.rest.services</groupId> |
| 127 | <artifactId>cbs-client</artifactId> |
| 128 | <version>${sdk.version}</version> |
| 129 | </dependency> |
| 130 | <dependency> |
| 131 | <groupId>org.projectlombok</groupId> |
| 132 | <artifactId>lombok</artifactId> |
| 133 | <scope>provided</scope> |
| 134 | </dependency> |
| 135 | <dependency> |
RehanRaza | 0e3740a | 2020-08-03 15:56:03 +0200 | [diff] [blame] | 136 | <groupId>javax.ws.rs</groupId> |
| 137 | <artifactId>javax.ws.rs-api</artifactId> |
| 138 | </dependency> |
RehanRaza | 0e3740a | 2020-08-03 15:56:03 +0200 | [diff] [blame] | 139 | <!-- Actuator dependencies --> |
| 140 | <dependency> |
| 141 | <groupId>org.springframework.boot</groupId> |
| 142 | <artifactId>spring-boot-starter-actuator</artifactId> |
| 143 | </dependency> |
| 144 | <!--REQUIRED TO GENERATE DOCUMENTATION --> |
| 145 | <dependency> |
| 146 | <groupId>io.springfox</groupId> |
| 147 | <artifactId>springfox-swagger2</artifactId> |
| 148 | <version>${springfox.version}</version> |
| 149 | </dependency> |
| 150 | <dependency> |
| 151 | <groupId>io.springfox</groupId> |
| 152 | <artifactId>springfox-swagger-ui</artifactId> |
| 153 | <version>${springfox.version}</version> |
| 154 | </dependency> |
Singal, Kapil (ks220y) | 7788a0b | 2020-09-03 16:24:57 -0400 | [diff] [blame] | 155 | <!-- TEST --> |
RehanRaza | 0e3740a | 2020-08-03 15:56:03 +0200 | [diff] [blame] | 156 | <dependency> |
| 157 | <groupId>org.springframework.boot</groupId> |
| 158 | <artifactId>spring-boot-starter-test</artifactId> |
| 159 | <scope>test</scope> |
| 160 | </dependency> |
| 161 | <dependency> |
| 162 | <groupId>org.awaitility</groupId> |
| 163 | <artifactId>awaitility</artifactId> |
| 164 | <scope>test</scope> |
| 165 | </dependency> |
| 166 | <dependency> |
| 167 | <groupId>io.projectreactor</groupId> |
| 168 | <artifactId>reactor-test</artifactId> |
| 169 | <scope>test</scope> |
| 170 | </dependency> |
| 171 | <dependency> |
| 172 | <groupId>org.junit.jupiter</groupId> |
| 173 | <artifactId>junit-jupiter-engine</artifactId> |
| 174 | <scope>test</scope> |
| 175 | </dependency> |
| 176 | <dependency> |
| 177 | <groupId>org.mockito</groupId> |
| 178 | <artifactId>mockito-junit-jupiter</artifactId> |
| 179 | <scope>test</scope> |
| 180 | </dependency> |
| 181 | <dependency> |
| 182 | <groupId>org.mockito</groupId> |
| 183 | <artifactId>mockito-core</artifactId> |
| 184 | <scope>test</scope> |
| 185 | </dependency> |
| 186 | <dependency> |
| 187 | <groupId>com.squareup.okhttp3</groupId> |
| 188 | <artifactId>mockwebserver</artifactId> |
| 189 | <scope>test</scope> |
| 190 | </dependency> |
| 191 | </dependencies> |
Singal, Kapil (ks220y) | 7788a0b | 2020-09-03 16:24:57 -0400 | [diff] [blame] | 192 | |
RehanRaza | 0e3740a | 2020-08-03 15:56:03 +0200 | [diff] [blame] | 193 | <build> |
| 194 | <plugins> |
| 195 | <plugin> |
| 196 | <groupId>org.springframework.boot</groupId> |
| 197 | <artifactId>spring-boot-maven-plugin</artifactId> |
| 198 | </plugin> |
Singal, Kapil (ks220y) | 7788a0b | 2020-09-03 16:24:57 -0400 | [diff] [blame] | 199 | <plugin> |
RehanRaza | 0e3740a | 2020-08-03 15:56:03 +0200 | [diff] [blame] | 200 | <groupId>net.revelc.code.formatter</groupId> |
| 201 | <artifactId>formatter-maven-plugin</artifactId> |
| 202 | <version>${formatter-maven-plugin.version}</version> |
| 203 | <configuration> |
Singal, Kapil (ks220y) | 7788a0b | 2020-09-03 16:24:57 -0400 | [diff] [blame] | 204 | <lineEnding>LF</lineEnding> |
RehanRaza | 0e3740a | 2020-08-03 15:56:03 +0200 | [diff] [blame] | 205 | <configFile>${project.basedir}/eclipse-formatter.xml</configFile> |
| 206 | </configuration> |
| 207 | <!-- https://code.revelc.net/formatter-maven-plugin/ use mvn formatter:format |
| 208 | spotless:apply process-sources --> |
| 209 | </plugin> |
| 210 | <plugin> |
| 211 | <groupId>com.diffplug.spotless</groupId> |
| 212 | <artifactId>spotless-maven-plugin</artifactId> |
| 213 | <version>${spotless-maven-plugin.version}</version> |
| 214 | <configuration> |
Singal, Kapil (ks220y) | 7788a0b | 2020-09-03 16:24:57 -0400 | [diff] [blame] | 215 | <lineEndings>UNIX</lineEndings> |
RehanRaza | 0e3740a | 2020-08-03 15:56:03 +0200 | [diff] [blame] | 216 | <java> |
Singal, Kapil (ks220y) | 7788a0b | 2020-09-03 16:24:57 -0400 | [diff] [blame] | 217 | <removeUnusedImports/> |
RehanRaza | 0e3740a | 2020-08-03 15:56:03 +0200 | [diff] [blame] | 218 | <importOrder> |
| 219 | <order>com,java,javax,org</order> |
| 220 | </importOrder> |
| 221 | </java> |
| 222 | </configuration> |
| 223 | <!-- https://github.com/diffplug/spotless/tree/master/plugin-maven use |
| 224 | mvn spotless:apply to rewrite source files use mvn spotless:check to validate |
| 225 | source files --> |
| 226 | </plugin> |
| 227 | <plugin> |
| 228 | <groupId>org.apache.maven.plugins</groupId> |
| 229 | <artifactId>maven-surefire-plugin</artifactId> |
elinuxhenrik | 9c3a6bd | 2020-08-26 14:04:17 +0200 | [diff] [blame] | 230 | <version>${surefire-maven-plugin.version}</version> |
RehanRaza | 0e3740a | 2020-08-03 15:56:03 +0200 | [diff] [blame] | 231 | <configuration> |
| 232 | <skipTests>false</skipTests> |
| 233 | </configuration> |
| 234 | </plugin> |
| 235 | <plugin> |
| 236 | <artifactId>maven-failsafe-plugin</artifactId> |
| 237 | </plugin> |
| 238 | <plugin> |
| 239 | <groupId>org.codehaus.mojo</groupId> |
| 240 | <artifactId>build-helper-maven-plugin</artifactId> |
| 241 | <executions> |
| 242 | <execution> |
| 243 | <id>add-source</id> |
| 244 | <phase>generate-sources</phase> |
| 245 | <goals> |
| 246 | <goal>add-source</goal> |
| 247 | </goals> |
| 248 | <configuration> |
| 249 | <sources> |
| 250 | <source>${project.build.directory}/generated-sources/annotations/</source> |
| 251 | </sources> |
| 252 | </configuration> |
| 253 | </execution> |
| 254 | </executions> |
| 255 | </plugin> |
| 256 | <plugin> |
| 257 | <groupId>org.jacoco</groupId> |
| 258 | <artifactId>jacoco-maven-plugin</artifactId> |
| 259 | <version>${jacoco-maven-plugin.version}</version> |
| 260 | <executions> |
| 261 | <execution> |
| 262 | <id>default-prepare-agent</id> |
| 263 | <goals> |
| 264 | <goal>prepare-agent</goal> |
| 265 | </goals> |
| 266 | </execution> |
| 267 | <execution> |
| 268 | <id>default-report</id> |
| 269 | <phase>prepare-package</phase> |
| 270 | <goals> |
| 271 | <goal>report</goal> |
| 272 | </goals> |
| 273 | </execution> |
| 274 | </executions> |
| 275 | </plugin> |
| 276 | <plugin> |
| 277 | <groupId>io.fabric8</groupId> |
| 278 | <artifactId>docker-maven-plugin</artifactId> |
| 279 | <version>${docker-maven-plugin}</version> |
| 280 | <inherited>false</inherited> |
| 281 | <executions> |
| 282 | <execution> |
| 283 | <id>generate-policy-management-service-image</id> |
| 284 | <phase>package</phase> |
| 285 | <goals> |
| 286 | <goal>build</goal> |
| 287 | </goals> |
| 288 | <configuration> |
| 289 | <images> |
| 290 | <image> |
| 291 | <name>onap/ccsdk-oran-a1policymanagementservice:${project.version}</name> |
| 292 | <build> |
| 293 | <cleanup>try</cleanup> |
| 294 | <contextDir>${basedir}</contextDir> |
| 295 | <dockerFile>Dockerfile</dockerFile> |
| 296 | <args> |
| 297 | <JAR>${project.build.finalName}.jar</JAR> |
| 298 | </args> |
| 299 | <tags> |
| 300 | <tag>${project.version}</tag> |
| 301 | </tags> |
| 302 | </build> |
| 303 | </image> |
| 304 | </images> |
| 305 | </configuration> |
| 306 | </execution> |
| 307 | <execution> |
| 308 | <id>push-policy-management-service-image</id> |
| 309 | <goals> |
| 310 | <goal>build</goal> |
| 311 | <goal>push</goal> |
| 312 | </goals> |
| 313 | <configuration> |
| 314 | <images> |
| 315 | <image> |
| 316 | <name>onap/ccsdk-oran-a1policymanagementservice:${project.version}</name> |
| 317 | <build> |
| 318 | <contextDir>${basedir}</contextDir> |
| 319 | <dockerFile>Dockerfile</dockerFile> |
| 320 | <args> |
| 321 | <JAR>${project.build.finalName}.jar</JAR> |
| 322 | </args> |
| 323 | <tags> |
| 324 | <tag>${project.version}</tag> |
| 325 | <tag>latest</tag> |
| 326 | </tags> |
| 327 | </build> |
| 328 | </image> |
| 329 | </images> |
| 330 | </configuration> |
| 331 | </execution> |
| 332 | </executions> |
| 333 | </plugin> |
| 334 | </plugins> |
| 335 | </build> |
elinuxhenrik | e5b384a | 2020-07-22 16:41:17 +0200 | [diff] [blame] | 336 | </project> |