blob: 0bea5fd5d049d83c9a931157508728ebaa8e8f29 [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 ~ ================================================================================
PatrikBuhr1c317eb2023-02-23 12:39:31 +01006 ~ Copyright (C) 2020-2023 Nordix Foundation. All rights reserved.
raviteja.karumuri3e02f632024-01-17 15:50:10 +00007 ~ Copyright (C) 2024 OpenInfra Foundation Europe. All rights reserved.
elinuxhenrike5b384a2020-07-22 16:41:17 +02008 ~ ================================================================================
9 ~ Licensed under the Apache License, Version 2.0 (the "License");
10 ~ you may not use this file except in compliance with the License.
11 ~ You may obtain a copy of the License at
12 ~
13 ~ http://www.apache.org/licenses/LICENSE-2.0
14 ~
15 ~ Unless required by applicable law or agreed to in writing, software
16 ~ distributed under the License is distributed on an "AS IS" BASIS,
17 ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18 ~ See the License for the specific language governing permissions and
19 ~ limitations under the License.
20 ~ ============LICENSE_END=======================================================
21 ~
22-->
Dan Timoney42477eb2023-08-10 17:05:46 -040023<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">
elinuxhenrike5b384a2020-07-22 16:41:17 +020024 <modelVersion>4.0.0</modelVersion>
elinuxhenrike5b384a2020-07-22 16:41:17 +020025 <parent>
26 <groupId>org.onap.ccsdk.parent</groupId>
JohnKeeney7ff7a432023-08-28 16:51:05 +010027 <artifactId>spring-boot-31-starter-parent</artifactId>
Dan Timoney8bb90c02023-11-08 10:17:19 -050028 <version>2.6.1</version>
Dan Timoney42477eb2023-08-10 17:05:46 -040029 <relativePath/>
elinuxhenrike5b384a2020-07-22 16:41:17 +020030 </parent>
elinuxhenrike5b384a2020-07-22 16:41:17 +020031 <groupId>org.onap.ccsdk.oran</groupId>
32 <artifactId>a1-policy-management-service</artifactId>
JohnKeeneyd31b23f2024-06-20 19:10:40 +010033 <version>1.8.0-SNAPSHOT</version>
Lathisha682c322020-07-30 15:52:12 +010034 <name>ccsdk-oran :: ${project.artifactId}</name>
RehanRaza0e3740a2020-08-03 15:56:03 +020035 <properties>
JohnKeeney62abcd82023-03-01 19:04:58 +000036 <java.version.source>17</java.version.source>
37 <java.version.target>17</java.version.target>
PatrikBuhraee11102023-01-16 15:27:10 +010038 <gson.version>2.10.1</gson.version>
JohnKeeney3e1cb152023-11-08 15:59:54 +000039 <json.version>20231013</json.version>
PatrikBuhr44499d02023-04-04 10:06:22 +020040 <formatter-maven-plugin.version>2.22.0</formatter-maven-plugin.version>
41 <spotless-maven-plugin.version>2.35.0</spotless-maven-plugin.version>
JohnKeeney8f49f442023-11-17 17:59:33 +000042 <commons-io.version>2.14.0</commons-io.version>
JohnKeeney7ff7a432023-08-28 16:51:05 +010043 <guava.version>32.0.1-jre</guava.version>
JohnKeeney62abcd82023-03-01 19:04:58 +000044 <springdoc.version>2.0.2</springdoc.version>
elinuxhenrikc4d1f8a2020-08-24 13:30:10 +020045 <docker-maven-plugin>0.30.0</docker-maven-plugin>
JohnKeeney2d985bd2023-03-31 15:27:16 +010046 <surefire-maven-plugin.version>3.0.0-M8</surefire-maven-plugin.version>
halil.cakal40ce8292023-02-02 12:25:13 +000047 <surefire-report-plugin.version>3.0.0-M8</surefire-report-plugin.version>
PatrikBuhr3ac6f0f2023-02-01 12:14:34 +010048 <jacoco-maven-plugin.version>0.8.8</jacoco-maven-plugin.version>
Dan Timoneyefdb5b02020-11-02 11:00:33 -050049 <ccsdk.project.version>${project.version}</ccsdk.project.version>
JohnKeeney62abcd82023-03-01 19:04:58 +000050 <software.amazon.awssdk.version>2.20.12</software.amazon.awssdk.version>
JohnKeeneye251d0c2023-02-20 18:00:44 +000051 <allowskiptests>false</allowskiptests>
RehanRaza0e3740a2020-08-03 15:56:03 +020052 </properties>
53 <dependencies>
54 <dependency>
raviteja.karumuria4687d92023-09-14 12:38:49 +010055 <groupId>javax.validation</groupId>
56 <artifactId>validation-api</artifactId>
57 <version>2.0.1.Final</version>
58 </dependency>
59 <dependency>
60 <groupId>javax.annotation</groupId>
61 <artifactId>javax.annotation-api</artifactId>
62 <version>1.3.2</version>
63 </dependency>
64 <dependency>
65 <groupId>io.swagger.core.v3</groupId>
66 <artifactId>swagger-annotations</artifactId>
67 <version>2.2.15</version>
68 </dependency>
69 <dependency>
70 <groupId>org.openapitools</groupId>
71 <artifactId>jackson-databind-nullable</artifactId>
72 <version>0.2.4</version>
73 </dependency>
74 <dependency>
PatrikBuhr6ef6b6f2023-04-25 15:11:04 +020075 <!-- Temporary until version 2 is included by the parent spring-boot-starter-parent -->
76 <groupId>org.yaml</groupId>
77 <artifactId>snakeyaml</artifactId>
78 <version>2.0</version>
79 </dependency>
80 <dependency>
RehanRaza0e3740a2020-08-03 15:56:03 +020081 <groupId>org.springframework.boot</groupId>
elinuxhenrikfa658f62020-11-05 12:37:43 +010082 <artifactId>spring-boot</artifactId>
83 </dependency>
84 <dependency>
85 <groupId>org.springframework</groupId>
elinuxhenrikfa658f62020-11-05 12:37:43 +010086 <artifactId>spring-context</artifactId>
RehanRaza0e3740a2020-08-03 15:56:03 +020087 </dependency>
88 <dependency>
89 <groupId>org.springframework.boot</groupId>
elinuxhenrikfa658f62020-11-05 12:37:43 +010090 <artifactId>spring-boot-autoconfigure</artifactId>
RehanRaza0e3740a2020-08-03 15:56:03 +020091 </dependency>
92 <dependency>
PatrikBuhr0f8b2052021-12-20 13:40:14 +010093 <groupId>org.springframework.boot</groupId>
94 <artifactId>spring-boot-starter-webflux</artifactId>
95 </dependency>
96 <dependency>
aravind.estb15c0ce2024-08-14 17:35:33 +010097 <groupId>org.springframework.boot</groupId>
98 <artifactId>spring-boot-starter-data-r2dbc</artifactId>
99 </dependency>
100 <dependency>
101 <groupId>org.postgresql</groupId>
102 <artifactId>postgresql</artifactId>
103 <scope>runtime</scope>
104 </dependency>
105 <dependency>
106 <groupId>org.postgresql</groupId>
107 <artifactId>r2dbc-postgresql</artifactId>
108 <scope>runtime</scope>
109 </dependency>
110 <dependency>
JohnKeeney62abcd82023-03-01 19:04:58 +0000111 <!-- May be possible to remove this later when ccsdk parent bom stabilizes -->
112 <groupId>javax.servlet</groupId>
113 <artifactId>javax.servlet-api</artifactId>
114 <version>3.1.0</version>
elinuxhenrikfa658f62020-11-05 12:37:43 +0100115 </dependency>
116 <dependency>
117 <groupId>org.aspectj</groupId>
118 <artifactId>aspectjweaver</artifactId>
119 </dependency>
120 <dependency>
elinuxhenrikfa658f62020-11-05 12:37:43 +0100121 <groupId>org.apache.tomcat.embed</groupId>
122 <artifactId>tomcat-embed-core</artifactId>
123 </dependency>
124 <dependency>
elinuxhenrikfa658f62020-11-05 12:37:43 +0100125 <groupId>com.google.guava</groupId>
126 <artifactId>guava</artifactId>
JohnKeeneyc9778a72022-11-01 18:49:15 +0000127 <version>${guava.version}</version>
RehanRaza0e3740a2020-08-03 15:56:03 +0200128 </dependency>
129 <dependency>
PatrikBuhr3f3a4d72022-05-30 14:22:46 +0200130 <groupId>com.google.code.gson</groupId>
RehanRaza0e3740a2020-08-03 15:56:03 +0200131 <artifactId>gson</artifactId>
PatrikBuhr3f3a4d72022-05-30 14:22:46 +0200132 <version>${gson.version}</version>
RehanRaza0e3740a2020-08-03 15:56:03 +0200133 </dependency>
134 <dependency>
135 <groupId>org.json</groupId>
136 <artifactId>json</artifactId>
137 <version>${json.version}</version>
138 </dependency>
139 <dependency>
RehanRaza0e3740a2020-08-03 15:56:03 +0200140 <groupId>org.projectlombok</groupId>
141 <artifactId>lombok</artifactId>
142 <scope>provided</scope>
143 </dependency>
raviteja.karumuri10948b62024-04-30 22:15:58 +0100144 <dependency>
145 <groupId>org.mapstruct</groupId>
146 <artifactId>mapstruct</artifactId>
147 <version>1.5.5.Final</version>
148 </dependency>
149 <dependency>
150 <groupId>org.mapstruct</groupId>
151 <artifactId>mapstruct-processor</artifactId>
152 <version>1.5.5.Final</version>
153 </dependency>
RehanRaza0e3740a2020-08-03 15:56:03 +0200154 <!-- Actuator dependencies -->
155 <dependency>
156 <groupId>org.springframework.boot</groupId>
157 <artifactId>spring-boot-starter-actuator</artifactId>
elinuxhenrikfa658f62020-11-05 12:37:43 +0100158 <scope>runtime</scope>
RehanRaza0e3740a2020-08-03 15:56:03 +0200159 </dependency>
halil.cakal8eadcb62022-09-29 09:47:09 +0100160 <dependency>
161 <groupId>io.micrometer</groupId>
162 <artifactId>micrometer-registry-prometheus</artifactId>
163 </dependency>
164 <dependency>
165 <groupId>org.springframework.boot</groupId>
166 <artifactId>spring-boot-starter-aop</artifactId>
167 </dependency>
PatrikBuhre3693cf2022-10-14 11:38:22 +0200168 <dependency>
169 <groupId>software.amazon.awssdk</groupId>
170 <artifactId>s3</artifactId>
171 <version>${software.amazon.awssdk.version}</version>
172 </dependency>
elinuxhenrikfa658f62020-11-05 12:37:43 +0100173 <!-- For development help -->
174 <dependency>
175 <groupId>org.springframework.boot</groupId>
176 <artifactId>spring-boot-devtools</artifactId>
177 <optional>true</optional>
178 <scope>runtime</scope>
179 </dependency>
180 <dependency>
181 <groupId>org.springframework.boot</groupId>
182 <artifactId>spring-boot-configuration-processor</artifactId>
183 <optional>true</optional>
184 <scope>runtime</scope>
RehanRaza0e3740a2020-08-03 15:56:03 +0200185 </dependency>
elinuxhenrikfa658f62020-11-05 12:37:43 +0100186 <dependency>
187 <groupId>org.springframework.boot</groupId>
RehanRaza0e3740a2020-08-03 15:56:03 +0200188 <artifactId>spring-boot-starter-test</artifactId>
189 <scope>test</scope>
190 </dependency>
191 <dependency>
192 <groupId>org.awaitility</groupId>
193 <artifactId>awaitility</artifactId>
194 <scope>test</scope>
195 </dependency>
196 <dependency>
197 <groupId>io.projectreactor</groupId>
198 <artifactId>reactor-test</artifactId>
199 <scope>test</scope>
200 </dependency>
201 <dependency>
202 <groupId>org.junit.jupiter</groupId>
203 <artifactId>junit-jupiter-engine</artifactId>
204 <scope>test</scope>
205 </dependency>
206 <dependency>
207 <groupId>org.mockito</groupId>
208 <artifactId>mockito-junit-jupiter</artifactId>
209 <scope>test</scope>
210 </dependency>
211 <dependency>
212 <groupId>org.mockito</groupId>
213 <artifactId>mockito-core</artifactId>
214 <scope>test</scope>
215 </dependency>
216 <dependency>
217 <groupId>com.squareup.okhttp3</groupId>
218 <artifactId>mockwebserver</artifactId>
219 <scope>test</scope>
220 </dependency>
elinuxhenrik50b658d2020-11-11 14:11:37 +0100221 <dependency>
222 <groupId>commons-io</groupId>
223 <artifactId>commons-io</artifactId>
224 <version>${commons-io.version}</version>
225 <scope>test</scope>
226 </dependency>
PatrikBuhrd279ef72021-09-21 14:47:59 +0200227 <dependency>
228 <groupId>com.github.erosb</groupId>
229 <artifactId>everit-json-schema</artifactId>
PatrikBuhr62c25962022-03-25 15:39:06 +0100230 <version>1.14.0</version>
PatrikBuhrd279ef72021-09-21 14:47:59 +0200231 </dependency>
lapentafdf734a402024-05-30 15:47:34 +0100232 <!-- For Tracing -->
233 <dependency>
234 <groupId>io.micrometer</groupId>
235 <artifactId>micrometer-tracing-bridge-otel</artifactId>
236 </dependency>
237 <dependency>
238 <groupId>io.opentelemetry</groupId>
lapentafdf734a402024-05-30 15:47:34 +0100239 <artifactId>opentelemetry-sdk-extension-jaeger-remote-sampler</artifactId>
240 </dependency>
241 <dependency>
lapentafdf734a402024-05-30 15:47:34 +0100242 <groupId>io.opentelemetry.instrumentation</groupId>
243 <artifactId>opentelemetry-spring-webflux-5.3</artifactId>
244 </dependency>
245 <dependency>
lapentafdad800652024-06-24 10:54:54 +0100246 <groupId>io.opentelemetry.instrumentation</groupId>
247 <artifactId>opentelemetry-spring-boot-starter</artifactId>
lapentafdf734a402024-05-30 15:47:34 +0100248 </dependency>
249 <!-- For ObservationRegistryCustomizer -->
250 <dependency>
251 <groupId>org.springframework.boot</groupId>
252 <artifactId>spring-boot-actuator-autoconfigure</artifactId>
253 <version>3.1.0</version>
254 </dependency>
RehanRaza0e3740a2020-08-03 15:56:03 +0200255 </dependencies>
lapentafdf734a402024-05-30 15:47:34 +0100256 <dependencyManagement>
257 <dependencies>
258 <dependency>
259 <groupId>io.opentelemetry</groupId>
260 <artifactId>opentelemetry-bom</artifactId>
261 <version>1.38.0</version>
262 <type>pom</type>
263 <scope>import</scope>
264 </dependency>
265 <dependency>
266 <groupId>io.opentelemetry.instrumentation</groupId>
267 <artifactId>opentelemetry-instrumentation-bom-alpha</artifactId>
268 <version>2.4.0-alpha</version>
269 <type>pom</type>
270 <scope>import</scope>
271 </dependency>
272 </dependencies>
273 </dependencyManagement>
RehanRaza0e3740a2020-08-03 15:56:03 +0200274 <build>
275 <plugins>
276 <plugin>
Dan Timoneybf5e4cd2022-12-01 17:02:22 -0500277 <groupId>org.codehaus.gmaven</groupId>
278 <artifactId>groovy-maven-plugin</artifactId>
raviteja.karumuria4687d92023-09-14 12:38:49 +0100279 <version>2.1.1</version>
Dan Timoneyefdb5b02020-11-02 11:00:33 -0500280 <executions>
281 <execution>
282 <phase>validate</phase>
283 <goals>
284 <goal>execute</goal>
285 </goals>
286 <configuration>
287 <source>${basedir}/TagVersion.groovy</source>
288 </configuration>
289 </execution>
290 </executions>
291 </plugin>
292 <plugin>
RehanRaza0e3740a2020-08-03 15:56:03 +0200293 <groupId>org.springframework.boot</groupId>
294 <artifactId>spring-boot-maven-plugin</artifactId>
295 </plugin>
Singal, Kapil (ks220y)7788a0b2020-09-03 16:24:57 -0400296 <plugin>
RehanRaza0e3740a2020-08-03 15:56:03 +0200297 <groupId>net.revelc.code.formatter</groupId>
298 <artifactId>formatter-maven-plugin</artifactId>
299 <version>${formatter-maven-plugin.version}</version>
300 <configuration>
Singal, Kapil (ks220y)7788a0b2020-09-03 16:24:57 -0400301 <lineEnding>LF</lineEnding>
RehanRaza0e3740a2020-08-03 15:56:03 +0200302 <configFile>${project.basedir}/eclipse-formatter.xml</configFile>
303 </configuration>
304 <!-- https://code.revelc.net/formatter-maven-plugin/ use mvn formatter:format
305 spotless:apply process-sources -->
306 </plugin>
307 <plugin>
308 <groupId>com.diffplug.spotless</groupId>
309 <artifactId>spotless-maven-plugin</artifactId>
310 <version>${spotless-maven-plugin.version}</version>
311 <configuration>
Singal, Kapil (ks220y)7788a0b2020-09-03 16:24:57 -0400312 <lineEndings>UNIX</lineEndings>
RehanRaza0e3740a2020-08-03 15:56:03 +0200313 <java>
Dan Timoney42477eb2023-08-10 17:05:46 -0400314 <removeUnusedImports/>
RehanRaza0e3740a2020-08-03 15:56:03 +0200315 <importOrder>
PatrikBuhr44499d02023-04-04 10:06:22 +0200316 <order>com,io,java,lombok,javax,org,reactor</order>
RehanRaza0e3740a2020-08-03 15:56:03 +0200317 </importOrder>
318 </java>
319 </configuration>
320 <!-- https://github.com/diffplug/spotless/tree/master/plugin-maven use
321 mvn spotless:apply to rewrite source files use mvn spotless:check to validate
322 source files -->
323 </plugin>
324 <plugin>
325 <groupId>org.apache.maven.plugins</groupId>
326 <artifactId>maven-surefire-plugin</artifactId>
elinuxhenrik9c3a6bd2020-08-26 14:04:17 +0200327 <version>${surefire-maven-plugin.version}</version>
RehanRaza0e3740a2020-08-03 15:56:03 +0200328 <configuration>
JohnKeeneye251d0c2023-02-20 18:00:44 +0000329 <skipTests>${allowskiptests}</skipTests>
Dan Timoney42477eb2023-08-10 17:05:46 -0400330 <statelessTestsetReporter implementation="org.apache.maven.plugin.surefire.extensions.junit5.JUnit5Xml30StatelessReporter">
halil.cakal40ce8292023-02-02 12:25:13 +0000331 <usePhrasedFileName>false</usePhrasedFileName>
332 <usePhrasedTestSuiteClassName>true</usePhrasedTestSuiteClassName>
333 <usePhrasedTestCaseClassName>true</usePhrasedTestCaseClassName>
334 <usePhrasedTestCaseMethodName>true</usePhrasedTestCaseMethodName>
335 </statelessTestsetReporter>
Dan Timoney42477eb2023-08-10 17:05:46 -0400336 <consoleOutputReporter implementation="org.apache.maven.plugin.surefire.extensions.junit5.JUnit5ConsoleOutputReporter">
halil.cakal40ce8292023-02-02 12:25:13 +0000337 <usePhrasedFileName>false</usePhrasedFileName>
338 </consoleOutputReporter>
Dan Timoney42477eb2023-08-10 17:05:46 -0400339 <statelessTestsetInfoReporter implementation="org.apache.maven.plugin.surefire.extensions.junit5.JUnit5StatelessTestsetInfoReporter">
halil.cakal40ce8292023-02-02 12:25:13 +0000340 <usePhrasedFileName>false</usePhrasedFileName>
341 <usePhrasedClassNameInRunning>true</usePhrasedClassNameInRunning>
342 <usePhrasedClassNameInTestCaseSummary>true</usePhrasedClassNameInTestCaseSummary>
343 </statelessTestsetInfoReporter>
RehanRaza0e3740a2020-08-03 15:56:03 +0200344 </configuration>
345 </plugin>
346 <plugin>
RehanRaza0e3740a2020-08-03 15:56:03 +0200347 <groupId>org.codehaus.mojo</groupId>
348 <artifactId>build-helper-maven-plugin</artifactId>
349 <executions>
350 <execution>
351 <id>add-source</id>
352 <phase>generate-sources</phase>
353 <goals>
354 <goal>add-source</goal>
355 </goals>
356 <configuration>
357 <sources>
358 <source>${project.build.directory}/generated-sources/annotations/</source>
359 </sources>
360 </configuration>
361 </execution>
362 </executions>
363 </plugin>
364 <plugin>
365 <groupId>org.jacoco</groupId>
366 <artifactId>jacoco-maven-plugin</artifactId>
367 <version>${jacoco-maven-plugin.version}</version>
368 <executions>
369 <execution>
370 <id>default-prepare-agent</id>
371 <goals>
372 <goal>prepare-agent</goal>
373 </goals>
374 </execution>
375 <execution>
376 <id>default-report</id>
377 <phase>prepare-package</phase>
378 <goals>
379 <goal>report</goal>
380 </goals>
381 </execution>
382 </executions>
383 </plugin>
384 <plugin>
raviteja.karumuria4687d92023-09-14 12:38:49 +0100385 <groupId>io.swagger.codegen.v3</groupId>
386 <artifactId>swagger-codegen-maven-plugin</artifactId>
387 <version>3.0.46</version>
388 <executions>
389 <execution>
390 <id>generate-openapi-json</id>
391 <phase>prepare-package</phase>
392 <goals>
393 <goal>generate</goal>
394 </goals>
395 <configuration>
396 <inputSpec>${project.basedir}/api/pms-api.yaml</inputSpec>
397 <language>openapi</language>
398 <output>${project.basedir}/api</output>
399 <configOptions>
400 <outputFile>pms-api.json</outputFile>
401 </configOptions>
402 </configuration>
403 </execution>
404 </executions>
405 </plugin>
406 <plugin>
halil.cakalb4ed3332023-01-20 12:14:08 +0000407 <groupId>org.openapitools</groupId>
408 <artifactId>openapi-generator-maven-plugin</artifactId>
raviteja.karumuria4687d92023-09-14 12:38:49 +0100409 <version>6.6.0</version>
elinuxhenrikf28594d2020-12-07 14:54:19 +0100410 <executions>
411 <execution>
JohnKeeneye251d0c2023-02-20 18:00:44 +0000412 <id>generate-openapi-html</id>
413 <phase>prepare-package</phase>
elinuxhenrikf28594d2020-12-07 14:54:19 +0100414 <goals>
415 <goal>generate</goal>
416 </goals>
417 <configuration>
418 <inputSpec>${project.basedir}/api/pms-api.json</inputSpec>
halil.cakalb4ed3332023-01-20 12:14:08 +0000419 <generatorName>html2</generatorName>
JohnKeeneye251d0c2023-02-20 18:00:44 +0000420 <output>${project.basedir}/api/pms-api</output>
halil.cakalb4ed3332023-01-20 12:14:08 +0000421 <skipOperationExample>false</skipOperationExample>
422 <strictSpec>false</strictSpec>
elinuxhenrikf28594d2020-12-07 14:54:19 +0100423 <configOptions>
PatrikBuhr44499d02023-04-04 10:06:22 +0200424 <appDescription>The O-RAN Non-RT RIC Policy Management Service
425 provides a REST API for managing O-RAN A1 Policies.</appDescription>
halil.cakalb4ed3332023-01-20 12:14:08 +0000426 <appName>ONAP CCSDK A1 Policy Management Service</appName>
427 <infoUrl>https://wiki.onap.org/display/DW/O-RAN+A1+Policies+in+ONAP</infoUrl>
PatrikBuhr44499d02023-04-04 10:06:22 +0200428 <licenseInfo>Copyright (C) 2020-2023 Nordix Foundation. Licensed
raviteja.karumuri3e02f632024-01-17 15:50:10 +0000429 under the Apache License, and Copyright (C) 2024 OpenInfra Foundation Europe. All rights reserved.</licenseInfo>
halil.cakalb4ed3332023-01-20 12:14:08 +0000430 <licenseUrl>http://www.apache.org/licenses/LICENSE-2.0</licenseUrl>
JohnKeeneye251d0c2023-02-20 18:00:44 +0000431 </configOptions>
432 </configuration>
433 </execution>
434 <execution>
raviteja.karumuria4687d92023-09-14 12:38:49 +0100435 <id>generate-policy-api</id>
436 <phase>generate-sources </phase>
JohnKeeneye251d0c2023-02-20 18:00:44 +0000437 <goals>
438 <goal>generate</goal>
439 </goals>
440 <configuration>
raviteja.karumuria4687d92023-09-14 12:38:49 +0100441 <inputSpec>${project.basedir}/api/pms-api.yaml</inputSpec>
442 <invokerPackage>${project.groupId}.a1policymanagementservice.controllers.v2</invokerPackage>
443 <apiPackage>${project.groupId}.a1policymanagementservice.controllers.api.v2</apiPackage>
444 <modelPackage>${project.groupId}.a1policymanagementservice.models.v2</modelPackage>
445 <generateApiTests>false</generateApiTests>
446 <generateModelTests>false</generateModelTests>
447 <generatorName>spring</generatorName>
448 <generateSupportingFiles>false</generateSupportingFiles>
449 <skipValidateSpec>false</skipValidateSpec>
450 <library>spring-boot</library>
JohnKeeneye251d0c2023-02-20 18:00:44 +0000451 <configOptions>
raviteja.karumuria4687d92023-09-14 12:38:49 +0100452 <sourceFolder>src/gen/java</sourceFolder>
453 <interfaceOnly>true</interfaceOnly>
454 <useTags>true</useTags>
455 <reactive>true</reactive>
456 <dateLibrary>java8</dateLibrary>
457 <java8>true</java8>
458 <unhandledException>true</unhandledException>
459 <openApiNullable>false</openApiNullable>
460 <skipDefaultInterface>true</skipDefaultInterface>
elinuxhenrikf28594d2020-12-07 14:54:19 +0100461 </configOptions>
462 </configuration>
463 </execution>
raviteja.karumuri6de5c032024-03-22 11:55:58 +0000464 <execution>
465 <id>generate-policy-api-v3</id>
466 <phase>generate-sources </phase>
467 <goals>
468 <goal>generate</goal>
469 </goals>
470 <configuration>
471 <inputSpec>${project.basedir}/api/pms-api-v3.yaml</inputSpec>
472 <invokerPackage>${project.groupId}.a1policymanagementservice.controllers.v3</invokerPackage>
473 <apiPackage>${project.groupId}.a1policymanagementservice.controllers.api.v3</apiPackage>
474 <modelPackage>${project.groupId}.a1policymanagementservice.models.v3</modelPackage>
475 <generateApiTests>false</generateApiTests>
476 <generateModelTests>false</generateModelTests>
477 <generatorName>spring</generatorName>
478 <generateSupportingFiles>false</generateSupportingFiles>
479 <skipValidateSpec>false</skipValidateSpec>
480 <library>spring-boot</library>
481 <configOptions>
482 <sourceFolder>src/gen/java</sourceFolder>
483 <interfaceOnly>true</interfaceOnly>
484 <useTags>true</useTags>
485 <reactive>true</reactive>
486 <dateLibrary>java8</dateLibrary>
487 <java8>true</java8>
488 <unhandledException>true</unhandledException>
489 <openApiNullable>false</openApiNullable>
490 <skipDefaultInterface>true</skipDefaultInterface>
491 </configOptions>
492 </configuration>
493 </execution>
elinuxhenrikf28594d2020-12-07 14:54:19 +0100494 </executions>
495 </plugin>
496 <plugin>
PatrikBuhr1122b012021-01-20 12:21:52 +0100497 <artifactId>maven-resources-plugin</artifactId>
498 <executions>
499 <execution>
JohnKeeneye251d0c2023-02-20 18:00:44 +0000500 <id>copy-resource-openapi</id>
501 <phase>package</phase>
PatrikBuhr1122b012021-01-20 12:21:52 +0100502 <goals>
503 <goal>copy-resources</goal>
504 </goals>
505 <configuration>
506 <outputDirectory>${project.basedir}/../docs/offeredapis/swagger</outputDirectory>
raviteja.karumuri3e02f632024-01-17 15:50:10 +0000507 <overwrite>true</overwrite>
PatrikBuhr1122b012021-01-20 12:21:52 +0100508 <resources>
509 <resource>
510 <directory>${project.basedir}/api</directory>
511 <includes>
JohnKeeneye251d0c2023-02-20 18:00:44 +0000512 <include>pms-api.json</include>
513 <include>pms-api.yaml</include>
514 </includes>
515 </resource>
516 </resources>
517 </configuration>
518 </execution>
519 <execution>
520 <id>copy-resource-openapi-html</id>
521 <phase>package</phase>
522 <goals>
523 <goal>copy-resources</goal>
524 </goals>
525 <configuration>
526 <verbose>true</verbose>
PatrikBuhr44499d02023-04-04 10:06:22 +0200527 <outputDirectory>
528 ${project.basedir}/../docs/offeredapis/openapitoolgen/offeredapis/pms-api</outputDirectory>
JohnKeeneye251d0c2023-02-20 18:00:44 +0000529 <resources>
530 <resource>
531 <directory>${project.basedir}/api/pms-api</directory>
532 <includes>
halil.cakalb4ed3332023-01-20 12:14:08 +0000533 <include>index.html</include>
PatrikBuhr1122b012021-01-20 12:21:52 +0100534 </includes>
535 </resource>
536 </resources>
537 </configuration>
538 </execution>
539 </executions>
540 </plugin>
541 <plugin>
RehanRaza0e3740a2020-08-03 15:56:03 +0200542 <groupId>io.fabric8</groupId>
543 <artifactId>docker-maven-plugin</artifactId>
544 <version>${docker-maven-plugin}</version>
545 <inherited>false</inherited>
546 <executions>
547 <execution>
548 <id>generate-policy-management-service-image</id>
549 <phase>package</phase>
550 <goals>
551 <goal>build</goal>
552 </goals>
553 <configuration>
554 <images>
555 <image>
PatrikBuhr44499d02023-04-04 10:06:22 +0200556 <name>
557 onap/ccsdk-oran-a1policymanagementservice:${project.version}</name>
RehanRaza0e3740a2020-08-03 15:56:03 +0200558 <build>
559 <cleanup>try</cleanup>
560 <contextDir>${basedir}</contextDir>
561 <dockerFile>Dockerfile</dockerFile>
562 <args>
563 <JAR>${project.build.finalName}.jar</JAR>
564 </args>
565 <tags>
566 <tag>${project.version}</tag>
567 </tags>
568 </build>
569 </image>
570 </images>
571 </configuration>
572 </execution>
573 <execution>
574 <id>push-policy-management-service-image</id>
575 <goals>
576 <goal>build</goal>
577 <goal>push</goal>
578 </goals>
579 <configuration>
580 <images>
581 <image>
PatrikBuhr44499d02023-04-04 10:06:22 +0200582 <name>
583 onap/ccsdk-oran-a1policymanagementservice:${project.version}</name>
RehanRaza0e3740a2020-08-03 15:56:03 +0200584 <build>
585 <contextDir>${basedir}</contextDir>
586 <dockerFile>Dockerfile</dockerFile>
587 <args>
588 <JAR>${project.build.finalName}.jar</JAR>
589 </args>
590 <tags>
Dan Timoneyefdb5b02020-11-02 11:00:33 -0500591 <tag>${project.docker.latestminortag.version}</tag>
592 <tag>${project.docker.latestfulltag.version}</tag>
593 <tag>${project.docker.latesttagtimestamp.version}</tag>
RehanRaza0e3740a2020-08-03 15:56:03 +0200594 </tags>
595 </build>
596 </image>
597 </images>
598 </configuration>
599 </execution>
600 </executions>
601 </plugin>
602 </plugins>
603 </build>
halil.cakal40ce8292023-02-02 12:25:13 +0000604 <reporting>
605 <plugins>
606 <plugin>
607 <groupId>org.apache.maven.plugins</groupId>
608 <artifactId>maven-surefire-report-plugin</artifactId>
609 <version>${surefire-report-plugin.version}</version>
610 </plugin>
611 </plugins>
612 </reporting>
nitincg3c7a3242023-06-16 23:38:08 +0530613</project>