blob: c690858b3fc5a3c8a8077fbd4670d6dbb4bf60a6 [file] [log] [blame]
elinuxhenrike5b384a2020-07-22 16:41:17 +02001<?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-->
22<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">
23 <modelVersion>4.0.0</modelVersion>
elinuxhenrike5b384a2020-07-22 16:41:17 +020024 <parent>
25 <groupId>org.onap.ccsdk.parent</groupId>
JohnKeeneyf5f34a52022-04-29 18:07:46 +010026 <artifactId>spring-boot-26-starter-parent</artifactId>
Dan Timoneybf5e4cd2022-12-01 17:02:22 -050027 <version>2.5.0</version>
Dan Timoney8a70f002021-08-31 10:40:07 -040028 <relativePath/>
elinuxhenrike5b384a2020-07-22 16:41:17 +020029 </parent>
elinuxhenrike5b384a2020-07-22 16:41:17 +020030 <groupId>org.onap.ccsdk.oran</groupId>
31 <artifactId>a1-policy-management-service</artifactId>
Timoney, Dan (dt5972)883ecc22022-10-20 15:31:38 -040032 <version>1.5.0-SNAPSHOT</version>
Lathisha682c322020-07-30 15:52:12 +010033 <name>ccsdk-oran :: ${project.artifactId}</name>
RehanRaza0e3740a2020-08-03 15:56:03 +020034 <properties>
35 <java.version.source>11</java.version.source>
36 <java.version.target>11</java.version.target>
RehanRazab369f782021-01-29 13:26:00 +010037 <springfox.version>3.0.0</springfox.version>
PatrikBuhr3f3a4d72022-05-30 14:22:46 +020038 <gson.version>2.9.0</gson.version>
PatrikBuhr62c25962022-03-25 15:39:06 +010039 <json.version>20220320</json.version>
elinuxhenrikfa658f62020-11-05 12:37:43 +010040 <formatter-maven-plugin.version>2.13.0</formatter-maven-plugin.version>
41 <spotless-maven-plugin.version>2.5.0</spotless-maven-plugin.version>
PatrikBuhrc6cca202022-01-04 17:10:12 +010042 <commons-io.version>2.11.0</commons-io.version>
JohnKeeneyc9778a72022-11-01 18:49:15 +000043 <guava.version>31.0.1-jre</guava.version>
elinuxhenrikc4d1f8a2020-08-24 13:30:10 +020044 <docker-maven-plugin>0.30.0</docker-maven-plugin>
PatrikBuhr1122b012021-01-20 12:21:52 +010045 <surefire-maven-plugin.version>3.0.0-M5</surefire-maven-plugin.version>
elinuxhenrikfa658f62020-11-05 12:37:43 +010046 <jacoco-maven-plugin.version>0.8.6</jacoco-maven-plugin.version>
elinuxhenrikf28594d2020-12-07 14:54:19 +010047 <swagger-codegen-maven-plugin.version>3.0.11</swagger-codegen-maven-plugin.version>
RehanRaza0e3740a2020-08-03 15:56:03 +020048 <exec.skip>true</exec.skip>
Dan Timoneyefdb5b02020-11-02 11:00:33 -050049 <ccsdk.project.version>${project.version}</ccsdk.project.version>
PatrikBuhre3693cf2022-10-14 11:38:22 +020050 <software.amazon.awssdk.version>2.17.292</software.amazon.awssdk.version>
RehanRaza0e3740a2020-08-03 15:56:03 +020051 </properties>
52 <dependencies>
53 <dependency>
54 <groupId>org.springframework.boot</groupId>
elinuxhenrikfa658f62020-11-05 12:37:43 +010055 <artifactId>spring-boot</artifactId>
56 </dependency>
57 <dependency>
58 <groupId>org.springframework</groupId>
59 <artifactId>spring-beans</artifactId>
60 </dependency>
61 <dependency>
62 <groupId>org.springframework</groupId>
63 <artifactId>spring-context</artifactId>
RehanRaza0e3740a2020-08-03 15:56:03 +020064 </dependency>
65 <dependency>
66 <groupId>org.springframework.boot</groupId>
elinuxhenrikfa658f62020-11-05 12:37:43 +010067 <artifactId>spring-boot-autoconfigure</artifactId>
RehanRaza0e3740a2020-08-03 15:56:03 +020068 </dependency>
69 <dependency>
elinuxhenrikfa658f62020-11-05 12:37:43 +010070 <groupId>org.springframework</groupId>
71 <artifactId>spring-web</artifactId>
RehanRaza0e3740a2020-08-03 15:56:03 +020072 </dependency>
73 <dependency>
elinuxhenrikfa658f62020-11-05 12:37:43 +010074 <groupId>org.springframework</groupId>
75 <artifactId>spring-webmvc</artifactId>
RehanRaza0e3740a2020-08-03 15:56:03 +020076 </dependency>
77 <dependency>
PatrikBuhr0f8b2052021-12-20 13:40:14 +010078 <groupId>org.springframework.boot</groupId>
79 <artifactId>spring-boot-starter-webflux</artifactId>
80 </dependency>
81 <dependency>
RehanRaza0e3740a2020-08-03 15:56:03 +020082 <groupId>org.springframework</groupId>
83 <artifactId>spring-webflux</artifactId>
84 </dependency>
85 <dependency>
elinuxhenrikfa658f62020-11-05 12:37:43 +010086 <groupId>io.springfox</groupId>
87 <artifactId>springfox-spring-web</artifactId>
88 <version>${springfox.version}</version>
RehanRaza0e3740a2020-08-03 15:56:03 +020089 </dependency>
90 <dependency>
elinuxhenrikfa658f62020-11-05 12:37:43 +010091 <groupId>io.springfox</groupId>
92 <artifactId>springfox-spi</artifactId>
93 <version>${springfox.version}</version>
RehanRaza0e3740a2020-08-03 15:56:03 +020094 </dependency>
95 <dependency>
elinuxhenrikfa658f62020-11-05 12:37:43 +010096 <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>
elinuxhenrikfa658f62020-11-05 12:37:43 +0100105 <groupId>org.apache.tomcat.embed</groupId>
106 <artifactId>tomcat-embed-core</artifactId>
107 </dependency>
108 <dependency>
elinuxhenrikfa658f62020-11-05 12:37:43 +0100109 <groupId>javax.validation</groupId>
110 <artifactId>validation-api</artifactId>
111 </dependency>
112 <dependency>
113 <groupId>com.google.guava</groupId>
114 <artifactId>guava</artifactId>
JohnKeeneyc9778a72022-11-01 18:49:15 +0000115 <version>${guava.version}</version>
RehanRaza0e3740a2020-08-03 15:56:03 +0200116 </dependency>
117 <dependency>
PatrikBuhr3f3a4d72022-05-30 14:22:46 +0200118 <groupId>com.google.code.gson</groupId>
RehanRaza0e3740a2020-08-03 15:56:03 +0200119 <artifactId>gson</artifactId>
PatrikBuhr3f3a4d72022-05-30 14:22:46 +0200120 <version>${gson.version}</version>
RehanRaza0e3740a2020-08-03 15:56:03 +0200121 </dependency>
122 <dependency>
123 <groupId>org.json</groupId>
124 <artifactId>json</artifactId>
125 <version>${json.version}</version>
126 </dependency>
127 <dependency>
RehanRaza0e3740a2020-08-03 15:56:03 +0200128 <groupId>org.projectlombok</groupId>
129 <artifactId>lombok</artifactId>
130 <scope>provided</scope>
131 </dependency>
RehanRaza0e3740a2020-08-03 15:56:03 +0200132 <!-- Actuator dependencies -->
133 <dependency>
134 <groupId>org.springframework.boot</groupId>
135 <artifactId>spring-boot-starter-actuator</artifactId>
elinuxhenrikfa658f62020-11-05 12:37:43 +0100136 <scope>runtime</scope>
RehanRaza0e3740a2020-08-03 15:56:03 +0200137 </dependency>
halil.cakal8eadcb62022-09-29 09:47:09 +0100138 <dependency>
139 <groupId>io.micrometer</groupId>
140 <artifactId>micrometer-registry-prometheus</artifactId>
141 </dependency>
142 <dependency>
143 <groupId>org.springframework.boot</groupId>
144 <artifactId>spring-boot-starter-aop</artifactId>
145 </dependency>
PatrikBuhre3693cf2022-10-14 11:38:22 +0200146 <dependency>
147 <groupId>software.amazon.awssdk</groupId>
148 <artifactId>s3</artifactId>
149 <version>${software.amazon.awssdk.version}</version>
150 </dependency>
RehanRaza0e3740a2020-08-03 15:56:03 +0200151 <!--REQUIRED TO GENERATE DOCUMENTATION -->
152 <dependency>
153 <groupId>io.springfox</groupId>
154 <artifactId>springfox-swagger2</artifactId>
155 <version>${springfox.version}</version>
156 </dependency>
157 <dependency>
158 <groupId>io.springfox</groupId>
159 <artifactId>springfox-swagger-ui</artifactId>
160 <version>${springfox.version}</version>
elinuxhenrikfa658f62020-11-05 12:37:43 +0100161 <scope>runtime</scope>
162 </dependency>
163 <!-- For development help -->
164 <dependency>
165 <groupId>org.springframework.boot</groupId>
166 <artifactId>spring-boot-devtools</artifactId>
167 <optional>true</optional>
168 <scope>runtime</scope>
169 </dependency>
170 <dependency>
171 <groupId>org.springframework.boot</groupId>
172 <artifactId>spring-boot-configuration-processor</artifactId>
173 <optional>true</optional>
174 <scope>runtime</scope>
RehanRaza0e3740a2020-08-03 15:56:03 +0200175 </dependency>
Singal, Kapil (ks220y)7788a0b2020-09-03 16:24:57 -0400176 <!-- TEST -->
RehanRaza0e3740a2020-08-03 15:56:03 +0200177 <dependency>
PatrikBuhr4faa67e2022-07-06 11:57:20 +0200178 <groupId>org.springdoc</groupId>
179 <artifactId>springdoc-openapi-ui</artifactId>
180 <version>1.6.6</version>
181 <scope>test</scope>
182 </dependency>
183 <dependency>
RehanRaza0e3740a2020-08-03 15:56:03 +0200184 <groupId>org.springframework.boot</groupId>
elinuxhenrikfa658f62020-11-05 12:37:43 +0100185 <artifactId>spring-boot-test</artifactId>
186 <scope>test</scope>
187 </dependency>
188 <dependency>
189 <groupId>org.springframework.boot</groupId>
RehanRaza0e3740a2020-08-03 15:56:03 +0200190 <artifactId>spring-boot-starter-test</artifactId>
191 <scope>test</scope>
192 </dependency>
193 <dependency>
194 <groupId>org.awaitility</groupId>
195 <artifactId>awaitility</artifactId>
196 <scope>test</scope>
197 </dependency>
198 <dependency>
199 <groupId>io.projectreactor</groupId>
200 <artifactId>reactor-test</artifactId>
201 <scope>test</scope>
202 </dependency>
203 <dependency>
204 <groupId>org.junit.jupiter</groupId>
205 <artifactId>junit-jupiter-engine</artifactId>
206 <scope>test</scope>
207 </dependency>
208 <dependency>
209 <groupId>org.mockito</groupId>
210 <artifactId>mockito-junit-jupiter</artifactId>
211 <scope>test</scope>
212 </dependency>
213 <dependency>
214 <groupId>org.mockito</groupId>
215 <artifactId>mockito-core</artifactId>
216 <scope>test</scope>
217 </dependency>
218 <dependency>
219 <groupId>com.squareup.okhttp3</groupId>
220 <artifactId>mockwebserver</artifactId>
221 <scope>test</scope>
222 </dependency>
elinuxhenrik50b658d2020-11-11 14:11:37 +0100223 <dependency>
224 <groupId>commons-io</groupId>
225 <artifactId>commons-io</artifactId>
226 <version>${commons-io.version}</version>
227 <scope>test</scope>
228 </dependency>
PatrikBuhrd279ef72021-09-21 14:47:59 +0200229 <dependency>
230 <groupId>com.github.erosb</groupId>
231 <artifactId>everit-json-schema</artifactId>
PatrikBuhr62c25962022-03-25 15:39:06 +0100232 <version>1.14.0</version>
PatrikBuhrd279ef72021-09-21 14:47:59 +0200233 </dependency>
RehanRaza0e3740a2020-08-03 15:56:03 +0200234 </dependencies>
235 <build>
236 <plugins>
237 <plugin>
Dan Timoneybf5e4cd2022-12-01 17:02:22 -0500238 <groupId>org.codehaus.gmaven</groupId>
239 <artifactId>groovy-maven-plugin</artifactId>
Dan Timoneyefdb5b02020-11-02 11:00:33 -0500240 <executions>
241 <execution>
242 <phase>validate</phase>
243 <goals>
244 <goal>execute</goal>
245 </goals>
246 <configuration>
247 <source>${basedir}/TagVersion.groovy</source>
248 </configuration>
249 </execution>
250 </executions>
251 </plugin>
252 <plugin>
RehanRaza0e3740a2020-08-03 15:56:03 +0200253 <groupId>org.springframework.boot</groupId>
254 <artifactId>spring-boot-maven-plugin</artifactId>
255 </plugin>
Singal, Kapil (ks220y)7788a0b2020-09-03 16:24:57 -0400256 <plugin>
RehanRaza0e3740a2020-08-03 15:56:03 +0200257 <groupId>net.revelc.code.formatter</groupId>
258 <artifactId>formatter-maven-plugin</artifactId>
259 <version>${formatter-maven-plugin.version}</version>
260 <configuration>
Singal, Kapil (ks220y)7788a0b2020-09-03 16:24:57 -0400261 <lineEnding>LF</lineEnding>
RehanRaza0e3740a2020-08-03 15:56:03 +0200262 <configFile>${project.basedir}/eclipse-formatter.xml</configFile>
263 </configuration>
264 <!-- https://code.revelc.net/formatter-maven-plugin/ use mvn formatter:format
265 spotless:apply process-sources -->
266 </plugin>
267 <plugin>
268 <groupId>com.diffplug.spotless</groupId>
269 <artifactId>spotless-maven-plugin</artifactId>
270 <version>${spotless-maven-plugin.version}</version>
271 <configuration>
Singal, Kapil (ks220y)7788a0b2020-09-03 16:24:57 -0400272 <lineEndings>UNIX</lineEndings>
RehanRaza0e3740a2020-08-03 15:56:03 +0200273 <java>
Singal, Kapil (ks220y)7788a0b2020-09-03 16:24:57 -0400274 <removeUnusedImports/>
RehanRaza0e3740a2020-08-03 15:56:03 +0200275 <importOrder>
276 <order>com,java,javax,org</order>
277 </importOrder>
278 </java>
279 </configuration>
280 <!-- https://github.com/diffplug/spotless/tree/master/plugin-maven use
281 mvn spotless:apply to rewrite source files use mvn spotless:check to validate
282 source files -->
283 </plugin>
284 <plugin>
285 <groupId>org.apache.maven.plugins</groupId>
286 <artifactId>maven-surefire-plugin</artifactId>
elinuxhenrik9c3a6bd2020-08-26 14:04:17 +0200287 <version>${surefire-maven-plugin.version}</version>
RehanRaza0e3740a2020-08-03 15:56:03 +0200288 <configuration>
289 <skipTests>false</skipTests>
290 </configuration>
291 </plugin>
292 <plugin>
293 <artifactId>maven-failsafe-plugin</artifactId>
294 </plugin>
295 <plugin>
296 <groupId>org.codehaus.mojo</groupId>
297 <artifactId>build-helper-maven-plugin</artifactId>
298 <executions>
299 <execution>
300 <id>add-source</id>
301 <phase>generate-sources</phase>
302 <goals>
303 <goal>add-source</goal>
304 </goals>
305 <configuration>
306 <sources>
307 <source>${project.build.directory}/generated-sources/annotations/</source>
308 </sources>
309 </configuration>
310 </execution>
311 </executions>
312 </plugin>
313 <plugin>
314 <groupId>org.jacoco</groupId>
315 <artifactId>jacoco-maven-plugin</artifactId>
316 <version>${jacoco-maven-plugin.version}</version>
317 <executions>
318 <execution>
319 <id>default-prepare-agent</id>
320 <goals>
321 <goal>prepare-agent</goal>
322 </goals>
323 </execution>
324 <execution>
325 <id>default-report</id>
326 <phase>prepare-package</phase>
327 <goals>
328 <goal>report</goal>
329 </goals>
330 </execution>
331 </executions>
332 </plugin>
333 <plugin>
elinuxhenrikf28594d2020-12-07 14:54:19 +0100334 <groupId>io.swagger.codegen.v3</groupId>
335 <artifactId>swagger-codegen-maven-plugin</artifactId>
336 <version>${swagger-codegen-maven-plugin.version}</version>
337 <executions>
338 <execution>
339 <phase>test</phase>
340 <goals>
341 <goal>generate</goal>
342 </goals>
343 <configuration>
344 <inputSpec>${project.basedir}/api/pms-api.json</inputSpec>
345 <language>openapi-yaml</language>
346 <output>${project.basedir}/api</output>
347 <configOptions>
348 <outputFile>pms-api.yaml</outputFile>
349 </configOptions>
350 </configuration>
351 </execution>
352 </executions>
353 </plugin>
354 <plugin>
PatrikBuhr1122b012021-01-20 12:21:52 +0100355 <artifactId>maven-resources-plugin</artifactId>
356 <executions>
357 <execution>
358 <id>copy-resource-one</id>
359 <phase>install</phase>
360 <goals>
361 <goal>copy-resources</goal>
362 </goals>
363 <configuration>
364 <outputDirectory>${project.basedir}/../docs/offeredapis/swagger</outputDirectory>
365 <resources>
366 <resource>
367 <directory>${project.basedir}/api</directory>
368 <includes>
369 <include>pms-api.*</include>
370 </includes>
371 </resource>
372 </resources>
373 </configuration>
374 </execution>
375 </executions>
376 </plugin>
377 <plugin>
RehanRaza0e3740a2020-08-03 15:56:03 +0200378 <groupId>io.fabric8</groupId>
379 <artifactId>docker-maven-plugin</artifactId>
380 <version>${docker-maven-plugin}</version>
381 <inherited>false</inherited>
382 <executions>
383 <execution>
384 <id>generate-policy-management-service-image</id>
385 <phase>package</phase>
386 <goals>
387 <goal>build</goal>
388 </goals>
389 <configuration>
390 <images>
391 <image>
392 <name>onap/ccsdk-oran-a1policymanagementservice:${project.version}</name>
393 <build>
394 <cleanup>try</cleanup>
395 <contextDir>${basedir}</contextDir>
396 <dockerFile>Dockerfile</dockerFile>
397 <args>
398 <JAR>${project.build.finalName}.jar</JAR>
399 </args>
400 <tags>
401 <tag>${project.version}</tag>
402 </tags>
403 </build>
404 </image>
405 </images>
406 </configuration>
407 </execution>
408 <execution>
409 <id>push-policy-management-service-image</id>
410 <goals>
411 <goal>build</goal>
412 <goal>push</goal>
413 </goals>
414 <configuration>
415 <images>
416 <image>
417 <name>onap/ccsdk-oran-a1policymanagementservice:${project.version}</name>
418 <build>
419 <contextDir>${basedir}</contextDir>
420 <dockerFile>Dockerfile</dockerFile>
421 <args>
422 <JAR>${project.build.finalName}.jar</JAR>
423 </args>
424 <tags>
Dan Timoneyefdb5b02020-11-02 11:00:33 -0500425 <tag>${project.docker.latestminortag.version}</tag>
426 <tag>${project.docker.latestfulltag.version}</tag>
427 <tag>${project.docker.latesttagtimestamp.version}</tag>
RehanRaza0e3740a2020-08-03 15:56:03 +0200428 </tags>
429 </build>
430 </image>
431 </images>
432 </configuration>
433 </execution>
434 </executions>
435 </plugin>
436 </plugins>
437 </build>
Dan Timoneybf5e4cd2022-12-01 17:02:22 -0500438</project>