blob: 1455bad1fa0013a024a442057814aa9264ed8800 [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>
aravind.estfdfb0702024-08-16 12:50:52 +0100111 <groupId>org.flywaydb</groupId>
112 <artifactId>flyway-core</artifactId>
113 </dependency>
114 <dependency>
JohnKeeney62abcd82023-03-01 19:04:58 +0000115 <!-- May be possible to remove this later when ccsdk parent bom stabilizes -->
116 <groupId>javax.servlet</groupId>
117 <artifactId>javax.servlet-api</artifactId>
118 <version>3.1.0</version>
elinuxhenrikfa658f62020-11-05 12:37:43 +0100119 </dependency>
120 <dependency>
121 <groupId>org.aspectj</groupId>
122 <artifactId>aspectjweaver</artifactId>
123 </dependency>
124 <dependency>
elinuxhenrikfa658f62020-11-05 12:37:43 +0100125 <groupId>org.apache.tomcat.embed</groupId>
126 <artifactId>tomcat-embed-core</artifactId>
127 </dependency>
128 <dependency>
elinuxhenrikfa658f62020-11-05 12:37:43 +0100129 <groupId>com.google.guava</groupId>
130 <artifactId>guava</artifactId>
JohnKeeneyc9778a72022-11-01 18:49:15 +0000131 <version>${guava.version}</version>
RehanRaza0e3740a2020-08-03 15:56:03 +0200132 </dependency>
133 <dependency>
PatrikBuhr3f3a4d72022-05-30 14:22:46 +0200134 <groupId>com.google.code.gson</groupId>
RehanRaza0e3740a2020-08-03 15:56:03 +0200135 <artifactId>gson</artifactId>
PatrikBuhr3f3a4d72022-05-30 14:22:46 +0200136 <version>${gson.version}</version>
RehanRaza0e3740a2020-08-03 15:56:03 +0200137 </dependency>
138 <dependency>
139 <groupId>org.json</groupId>
140 <artifactId>json</artifactId>
141 <version>${json.version}</version>
142 </dependency>
143 <dependency>
RehanRaza0e3740a2020-08-03 15:56:03 +0200144 <groupId>org.projectlombok</groupId>
145 <artifactId>lombok</artifactId>
146 <scope>provided</scope>
147 </dependency>
raviteja.karumuri10948b62024-04-30 22:15:58 +0100148 <dependency>
149 <groupId>org.mapstruct</groupId>
150 <artifactId>mapstruct</artifactId>
151 <version>1.5.5.Final</version>
152 </dependency>
153 <dependency>
154 <groupId>org.mapstruct</groupId>
155 <artifactId>mapstruct-processor</artifactId>
156 <version>1.5.5.Final</version>
157 </dependency>
RehanRaza0e3740a2020-08-03 15:56:03 +0200158 <!-- Actuator dependencies -->
159 <dependency>
160 <groupId>org.springframework.boot</groupId>
161 <artifactId>spring-boot-starter-actuator</artifactId>
elinuxhenrikfa658f62020-11-05 12:37:43 +0100162 <scope>runtime</scope>
RehanRaza0e3740a2020-08-03 15:56:03 +0200163 </dependency>
halil.cakal8eadcb62022-09-29 09:47:09 +0100164 <dependency>
165 <groupId>io.micrometer</groupId>
166 <artifactId>micrometer-registry-prometheus</artifactId>
167 </dependency>
168 <dependency>
169 <groupId>org.springframework.boot</groupId>
170 <artifactId>spring-boot-starter-aop</artifactId>
171 </dependency>
PatrikBuhre3693cf2022-10-14 11:38:22 +0200172 <dependency>
173 <groupId>software.amazon.awssdk</groupId>
174 <artifactId>s3</artifactId>
175 <version>${software.amazon.awssdk.version}</version>
176 </dependency>
elinuxhenrikfa658f62020-11-05 12:37:43 +0100177 <!-- For development help -->
178 <dependency>
179 <groupId>org.springframework.boot</groupId>
180 <artifactId>spring-boot-devtools</artifactId>
181 <optional>true</optional>
182 <scope>runtime</scope>
183 </dependency>
184 <dependency>
185 <groupId>org.springframework.boot</groupId>
186 <artifactId>spring-boot-configuration-processor</artifactId>
187 <optional>true</optional>
188 <scope>runtime</scope>
RehanRaza0e3740a2020-08-03 15:56:03 +0200189 </dependency>
elinuxhenrikfa658f62020-11-05 12:37:43 +0100190 <dependency>
191 <groupId>org.springframework.boot</groupId>
RehanRaza0e3740a2020-08-03 15:56:03 +0200192 <artifactId>spring-boot-starter-test</artifactId>
193 <scope>test</scope>
194 </dependency>
195 <dependency>
196 <groupId>org.awaitility</groupId>
197 <artifactId>awaitility</artifactId>
198 <scope>test</scope>
199 </dependency>
200 <dependency>
201 <groupId>io.projectreactor</groupId>
202 <artifactId>reactor-test</artifactId>
203 <scope>test</scope>
204 </dependency>
205 <dependency>
206 <groupId>org.junit.jupiter</groupId>
207 <artifactId>junit-jupiter-engine</artifactId>
208 <scope>test</scope>
209 </dependency>
210 <dependency>
211 <groupId>org.mockito</groupId>
212 <artifactId>mockito-junit-jupiter</artifactId>
213 <scope>test</scope>
214 </dependency>
215 <dependency>
216 <groupId>org.mockito</groupId>
217 <artifactId>mockito-core</artifactId>
218 <scope>test</scope>
219 </dependency>
220 <dependency>
221 <groupId>com.squareup.okhttp3</groupId>
222 <artifactId>mockwebserver</artifactId>
223 <scope>test</scope>
224 </dependency>
elinuxhenrik50b658d2020-11-11 14:11:37 +0100225 <dependency>
226 <groupId>commons-io</groupId>
227 <artifactId>commons-io</artifactId>
228 <version>${commons-io.version}</version>
229 <scope>test</scope>
230 </dependency>
PatrikBuhrd279ef72021-09-21 14:47:59 +0200231 <dependency>
232 <groupId>com.github.erosb</groupId>
233 <artifactId>everit-json-schema</artifactId>
PatrikBuhr62c25962022-03-25 15:39:06 +0100234 <version>1.14.0</version>
PatrikBuhrd279ef72021-09-21 14:47:59 +0200235 </dependency>
lapentafdf734a402024-05-30 15:47:34 +0100236 <!-- For Tracing -->
237 <dependency>
238 <groupId>io.micrometer</groupId>
239 <artifactId>micrometer-tracing-bridge-otel</artifactId>
240 </dependency>
241 <dependency>
242 <groupId>io.opentelemetry</groupId>
lapentafdf734a402024-05-30 15:47:34 +0100243 <artifactId>opentelemetry-sdk-extension-jaeger-remote-sampler</artifactId>
244 </dependency>
245 <dependency>
lapentafdf734a402024-05-30 15:47:34 +0100246 <groupId>io.opentelemetry.instrumentation</groupId>
247 <artifactId>opentelemetry-spring-webflux-5.3</artifactId>
248 </dependency>
249 <dependency>
lapentafdad800652024-06-24 10:54:54 +0100250 <groupId>io.opentelemetry.instrumentation</groupId>
251 <artifactId>opentelemetry-spring-boot-starter</artifactId>
lapentafdf734a402024-05-30 15:47:34 +0100252 </dependency>
253 <!-- For ObservationRegistryCustomizer -->
254 <dependency>
255 <groupId>org.springframework.boot</groupId>
256 <artifactId>spring-boot-actuator-autoconfigure</artifactId>
257 <version>3.1.0</version>
258 </dependency>
RehanRaza0e3740a2020-08-03 15:56:03 +0200259 </dependencies>
lapentafdf734a402024-05-30 15:47:34 +0100260 <dependencyManagement>
261 <dependencies>
262 <dependency>
263 <groupId>io.opentelemetry</groupId>
264 <artifactId>opentelemetry-bom</artifactId>
265 <version>1.38.0</version>
266 <type>pom</type>
267 <scope>import</scope>
268 </dependency>
269 <dependency>
270 <groupId>io.opentelemetry.instrumentation</groupId>
271 <artifactId>opentelemetry-instrumentation-bom-alpha</artifactId>
272 <version>2.4.0-alpha</version>
273 <type>pom</type>
274 <scope>import</scope>
275 </dependency>
276 </dependencies>
277 </dependencyManagement>
RehanRaza0e3740a2020-08-03 15:56:03 +0200278 <build>
279 <plugins>
280 <plugin>
Dan Timoneybf5e4cd2022-12-01 17:02:22 -0500281 <groupId>org.codehaus.gmaven</groupId>
282 <artifactId>groovy-maven-plugin</artifactId>
raviteja.karumuria4687d92023-09-14 12:38:49 +0100283 <version>2.1.1</version>
Dan Timoneyefdb5b02020-11-02 11:00:33 -0500284 <executions>
285 <execution>
286 <phase>validate</phase>
287 <goals>
288 <goal>execute</goal>
289 </goals>
290 <configuration>
291 <source>${basedir}/TagVersion.groovy</source>
292 </configuration>
293 </execution>
294 </executions>
295 </plugin>
296 <plugin>
RehanRaza0e3740a2020-08-03 15:56:03 +0200297 <groupId>org.springframework.boot</groupId>
298 <artifactId>spring-boot-maven-plugin</artifactId>
299 </plugin>
Singal, Kapil (ks220y)7788a0b2020-09-03 16:24:57 -0400300 <plugin>
RehanRaza0e3740a2020-08-03 15:56:03 +0200301 <groupId>net.revelc.code.formatter</groupId>
302 <artifactId>formatter-maven-plugin</artifactId>
303 <version>${formatter-maven-plugin.version}</version>
304 <configuration>
Singal, Kapil (ks220y)7788a0b2020-09-03 16:24:57 -0400305 <lineEnding>LF</lineEnding>
RehanRaza0e3740a2020-08-03 15:56:03 +0200306 <configFile>${project.basedir}/eclipse-formatter.xml</configFile>
307 </configuration>
308 <!-- https://code.revelc.net/formatter-maven-plugin/ use mvn formatter:format
309 spotless:apply process-sources -->
310 </plugin>
311 <plugin>
312 <groupId>com.diffplug.spotless</groupId>
313 <artifactId>spotless-maven-plugin</artifactId>
314 <version>${spotless-maven-plugin.version}</version>
315 <configuration>
Singal, Kapil (ks220y)7788a0b2020-09-03 16:24:57 -0400316 <lineEndings>UNIX</lineEndings>
RehanRaza0e3740a2020-08-03 15:56:03 +0200317 <java>
Dan Timoney42477eb2023-08-10 17:05:46 -0400318 <removeUnusedImports/>
RehanRaza0e3740a2020-08-03 15:56:03 +0200319 <importOrder>
PatrikBuhr44499d02023-04-04 10:06:22 +0200320 <order>com,io,java,lombok,javax,org,reactor</order>
RehanRaza0e3740a2020-08-03 15:56:03 +0200321 </importOrder>
322 </java>
323 </configuration>
324 <!-- https://github.com/diffplug/spotless/tree/master/plugin-maven use
325 mvn spotless:apply to rewrite source files use mvn spotless:check to validate
326 source files -->
327 </plugin>
328 <plugin>
329 <groupId>org.apache.maven.plugins</groupId>
330 <artifactId>maven-surefire-plugin</artifactId>
elinuxhenrik9c3a6bd2020-08-26 14:04:17 +0200331 <version>${surefire-maven-plugin.version}</version>
RehanRaza0e3740a2020-08-03 15:56:03 +0200332 <configuration>
JohnKeeneye251d0c2023-02-20 18:00:44 +0000333 <skipTests>${allowskiptests}</skipTests>
Dan Timoney42477eb2023-08-10 17:05:46 -0400334 <statelessTestsetReporter implementation="org.apache.maven.plugin.surefire.extensions.junit5.JUnit5Xml30StatelessReporter">
halil.cakal40ce8292023-02-02 12:25:13 +0000335 <usePhrasedFileName>false</usePhrasedFileName>
336 <usePhrasedTestSuiteClassName>true</usePhrasedTestSuiteClassName>
337 <usePhrasedTestCaseClassName>true</usePhrasedTestCaseClassName>
338 <usePhrasedTestCaseMethodName>true</usePhrasedTestCaseMethodName>
339 </statelessTestsetReporter>
Dan Timoney42477eb2023-08-10 17:05:46 -0400340 <consoleOutputReporter implementation="org.apache.maven.plugin.surefire.extensions.junit5.JUnit5ConsoleOutputReporter">
halil.cakal40ce8292023-02-02 12:25:13 +0000341 <usePhrasedFileName>false</usePhrasedFileName>
342 </consoleOutputReporter>
Dan Timoney42477eb2023-08-10 17:05:46 -0400343 <statelessTestsetInfoReporter implementation="org.apache.maven.plugin.surefire.extensions.junit5.JUnit5StatelessTestsetInfoReporter">
halil.cakal40ce8292023-02-02 12:25:13 +0000344 <usePhrasedFileName>false</usePhrasedFileName>
345 <usePhrasedClassNameInRunning>true</usePhrasedClassNameInRunning>
346 <usePhrasedClassNameInTestCaseSummary>true</usePhrasedClassNameInTestCaseSummary>
347 </statelessTestsetInfoReporter>
RehanRaza0e3740a2020-08-03 15:56:03 +0200348 </configuration>
349 </plugin>
350 <plugin>
RehanRaza0e3740a2020-08-03 15:56:03 +0200351 <groupId>org.codehaus.mojo</groupId>
352 <artifactId>build-helper-maven-plugin</artifactId>
353 <executions>
354 <execution>
355 <id>add-source</id>
356 <phase>generate-sources</phase>
357 <goals>
358 <goal>add-source</goal>
359 </goals>
360 <configuration>
361 <sources>
362 <source>${project.build.directory}/generated-sources/annotations/</source>
363 </sources>
364 </configuration>
365 </execution>
366 </executions>
367 </plugin>
368 <plugin>
369 <groupId>org.jacoco</groupId>
370 <artifactId>jacoco-maven-plugin</artifactId>
371 <version>${jacoco-maven-plugin.version}</version>
372 <executions>
373 <execution>
374 <id>default-prepare-agent</id>
375 <goals>
376 <goal>prepare-agent</goal>
377 </goals>
378 </execution>
379 <execution>
380 <id>default-report</id>
381 <phase>prepare-package</phase>
382 <goals>
383 <goal>report</goal>
384 </goals>
385 </execution>
386 </executions>
387 </plugin>
388 <plugin>
raviteja.karumuria4687d92023-09-14 12:38:49 +0100389 <groupId>io.swagger.codegen.v3</groupId>
390 <artifactId>swagger-codegen-maven-plugin</artifactId>
391 <version>3.0.46</version>
392 <executions>
393 <execution>
394 <id>generate-openapi-json</id>
395 <phase>prepare-package</phase>
396 <goals>
397 <goal>generate</goal>
398 </goals>
399 <configuration>
400 <inputSpec>${project.basedir}/api/pms-api.yaml</inputSpec>
401 <language>openapi</language>
402 <output>${project.basedir}/api</output>
403 <configOptions>
404 <outputFile>pms-api.json</outputFile>
405 </configOptions>
406 </configuration>
407 </execution>
408 </executions>
409 </plugin>
410 <plugin>
halil.cakalb4ed3332023-01-20 12:14:08 +0000411 <groupId>org.openapitools</groupId>
412 <artifactId>openapi-generator-maven-plugin</artifactId>
raviteja.karumuria4687d92023-09-14 12:38:49 +0100413 <version>6.6.0</version>
elinuxhenrikf28594d2020-12-07 14:54:19 +0100414 <executions>
415 <execution>
JohnKeeneye251d0c2023-02-20 18:00:44 +0000416 <id>generate-openapi-html</id>
417 <phase>prepare-package</phase>
elinuxhenrikf28594d2020-12-07 14:54:19 +0100418 <goals>
419 <goal>generate</goal>
420 </goals>
421 <configuration>
422 <inputSpec>${project.basedir}/api/pms-api.json</inputSpec>
halil.cakalb4ed3332023-01-20 12:14:08 +0000423 <generatorName>html2</generatorName>
JohnKeeneye251d0c2023-02-20 18:00:44 +0000424 <output>${project.basedir}/api/pms-api</output>
halil.cakalb4ed3332023-01-20 12:14:08 +0000425 <skipOperationExample>false</skipOperationExample>
426 <strictSpec>false</strictSpec>
elinuxhenrikf28594d2020-12-07 14:54:19 +0100427 <configOptions>
PatrikBuhr44499d02023-04-04 10:06:22 +0200428 <appDescription>The O-RAN Non-RT RIC Policy Management Service
429 provides a REST API for managing O-RAN A1 Policies.</appDescription>
halil.cakalb4ed3332023-01-20 12:14:08 +0000430 <appName>ONAP CCSDK A1 Policy Management Service</appName>
431 <infoUrl>https://wiki.onap.org/display/DW/O-RAN+A1+Policies+in+ONAP</infoUrl>
PatrikBuhr44499d02023-04-04 10:06:22 +0200432 <licenseInfo>Copyright (C) 2020-2023 Nordix Foundation. Licensed
raviteja.karumuri3e02f632024-01-17 15:50:10 +0000433 under the Apache License, and Copyright (C) 2024 OpenInfra Foundation Europe. All rights reserved.</licenseInfo>
halil.cakalb4ed3332023-01-20 12:14:08 +0000434 <licenseUrl>http://www.apache.org/licenses/LICENSE-2.0</licenseUrl>
JohnKeeneye251d0c2023-02-20 18:00:44 +0000435 </configOptions>
436 </configuration>
437 </execution>
438 <execution>
raviteja.karumuria4687d92023-09-14 12:38:49 +0100439 <id>generate-policy-api</id>
440 <phase>generate-sources </phase>
JohnKeeneye251d0c2023-02-20 18:00:44 +0000441 <goals>
442 <goal>generate</goal>
443 </goals>
444 <configuration>
raviteja.karumuria4687d92023-09-14 12:38:49 +0100445 <inputSpec>${project.basedir}/api/pms-api.yaml</inputSpec>
446 <invokerPackage>${project.groupId}.a1policymanagementservice.controllers.v2</invokerPackage>
447 <apiPackage>${project.groupId}.a1policymanagementservice.controllers.api.v2</apiPackage>
448 <modelPackage>${project.groupId}.a1policymanagementservice.models.v2</modelPackage>
449 <generateApiTests>false</generateApiTests>
450 <generateModelTests>false</generateModelTests>
451 <generatorName>spring</generatorName>
452 <generateSupportingFiles>false</generateSupportingFiles>
453 <skipValidateSpec>false</skipValidateSpec>
454 <library>spring-boot</library>
JohnKeeneye251d0c2023-02-20 18:00:44 +0000455 <configOptions>
raviteja.karumuria4687d92023-09-14 12:38:49 +0100456 <sourceFolder>src/gen/java</sourceFolder>
457 <interfaceOnly>true</interfaceOnly>
458 <useTags>true</useTags>
459 <reactive>true</reactive>
460 <dateLibrary>java8</dateLibrary>
461 <java8>true</java8>
462 <unhandledException>true</unhandledException>
463 <openApiNullable>false</openApiNullable>
464 <skipDefaultInterface>true</skipDefaultInterface>
elinuxhenrikf28594d2020-12-07 14:54:19 +0100465 </configOptions>
466 </configuration>
467 </execution>
raviteja.karumuri6de5c032024-03-22 11:55:58 +0000468 <execution>
469 <id>generate-policy-api-v3</id>
470 <phase>generate-sources </phase>
471 <goals>
472 <goal>generate</goal>
473 </goals>
474 <configuration>
475 <inputSpec>${project.basedir}/api/pms-api-v3.yaml</inputSpec>
476 <invokerPackage>${project.groupId}.a1policymanagementservice.controllers.v3</invokerPackage>
477 <apiPackage>${project.groupId}.a1policymanagementservice.controllers.api.v3</apiPackage>
478 <modelPackage>${project.groupId}.a1policymanagementservice.models.v3</modelPackage>
479 <generateApiTests>false</generateApiTests>
480 <generateModelTests>false</generateModelTests>
481 <generatorName>spring</generatorName>
482 <generateSupportingFiles>false</generateSupportingFiles>
483 <skipValidateSpec>false</skipValidateSpec>
484 <library>spring-boot</library>
485 <configOptions>
486 <sourceFolder>src/gen/java</sourceFolder>
487 <interfaceOnly>true</interfaceOnly>
488 <useTags>true</useTags>
489 <reactive>true</reactive>
490 <dateLibrary>java8</dateLibrary>
491 <java8>true</java8>
492 <unhandledException>true</unhandledException>
493 <openApiNullable>false</openApiNullable>
494 <skipDefaultInterface>true</skipDefaultInterface>
495 </configOptions>
496 </configuration>
497 </execution>
elinuxhenrikf28594d2020-12-07 14:54:19 +0100498 </executions>
499 </plugin>
500 <plugin>
PatrikBuhr1122b012021-01-20 12:21:52 +0100501 <artifactId>maven-resources-plugin</artifactId>
502 <executions>
503 <execution>
JohnKeeneye251d0c2023-02-20 18:00:44 +0000504 <id>copy-resource-openapi</id>
505 <phase>package</phase>
PatrikBuhr1122b012021-01-20 12:21:52 +0100506 <goals>
507 <goal>copy-resources</goal>
508 </goals>
509 <configuration>
510 <outputDirectory>${project.basedir}/../docs/offeredapis/swagger</outputDirectory>
raviteja.karumuri3e02f632024-01-17 15:50:10 +0000511 <overwrite>true</overwrite>
PatrikBuhr1122b012021-01-20 12:21:52 +0100512 <resources>
513 <resource>
514 <directory>${project.basedir}/api</directory>
515 <includes>
JohnKeeneye251d0c2023-02-20 18:00:44 +0000516 <include>pms-api.json</include>
517 <include>pms-api.yaml</include>
518 </includes>
519 </resource>
520 </resources>
521 </configuration>
522 </execution>
523 <execution>
524 <id>copy-resource-openapi-html</id>
525 <phase>package</phase>
526 <goals>
527 <goal>copy-resources</goal>
528 </goals>
529 <configuration>
530 <verbose>true</verbose>
PatrikBuhr44499d02023-04-04 10:06:22 +0200531 <outputDirectory>
532 ${project.basedir}/../docs/offeredapis/openapitoolgen/offeredapis/pms-api</outputDirectory>
JohnKeeneye251d0c2023-02-20 18:00:44 +0000533 <resources>
534 <resource>
535 <directory>${project.basedir}/api/pms-api</directory>
536 <includes>
halil.cakalb4ed3332023-01-20 12:14:08 +0000537 <include>index.html</include>
PatrikBuhr1122b012021-01-20 12:21:52 +0100538 </includes>
539 </resource>
540 </resources>
541 </configuration>
542 </execution>
543 </executions>
544 </plugin>
545 <plugin>
RehanRaza0e3740a2020-08-03 15:56:03 +0200546 <groupId>io.fabric8</groupId>
547 <artifactId>docker-maven-plugin</artifactId>
548 <version>${docker-maven-plugin}</version>
549 <inherited>false</inherited>
550 <executions>
551 <execution>
552 <id>generate-policy-management-service-image</id>
553 <phase>package</phase>
554 <goals>
555 <goal>build</goal>
556 </goals>
557 <configuration>
558 <images>
559 <image>
PatrikBuhr44499d02023-04-04 10:06:22 +0200560 <name>
561 onap/ccsdk-oran-a1policymanagementservice:${project.version}</name>
RehanRaza0e3740a2020-08-03 15:56:03 +0200562 <build>
563 <cleanup>try</cleanup>
564 <contextDir>${basedir}</contextDir>
565 <dockerFile>Dockerfile</dockerFile>
566 <args>
567 <JAR>${project.build.finalName}.jar</JAR>
568 </args>
569 <tags>
570 <tag>${project.version}</tag>
571 </tags>
572 </build>
573 </image>
574 </images>
575 </configuration>
576 </execution>
577 <execution>
578 <id>push-policy-management-service-image</id>
579 <goals>
580 <goal>build</goal>
581 <goal>push</goal>
582 </goals>
583 <configuration>
584 <images>
585 <image>
PatrikBuhr44499d02023-04-04 10:06:22 +0200586 <name>
587 onap/ccsdk-oran-a1policymanagementservice:${project.version}</name>
RehanRaza0e3740a2020-08-03 15:56:03 +0200588 <build>
589 <contextDir>${basedir}</contextDir>
590 <dockerFile>Dockerfile</dockerFile>
591 <args>
592 <JAR>${project.build.finalName}.jar</JAR>
593 </args>
594 <tags>
Dan Timoneyefdb5b02020-11-02 11:00:33 -0500595 <tag>${project.docker.latestminortag.version}</tag>
596 <tag>${project.docker.latestfulltag.version}</tag>
597 <tag>${project.docker.latesttagtimestamp.version}</tag>
RehanRaza0e3740a2020-08-03 15:56:03 +0200598 </tags>
599 </build>
600 </image>
601 </images>
602 </configuration>
603 </execution>
604 </executions>
605 </plugin>
606 </plugins>
607 </build>
halil.cakal40ce8292023-02-02 12:25:13 +0000608 <reporting>
609 <plugins>
610 <plugin>
611 <groupId>org.apache.maven.plugins</groupId>
612 <artifactId>maven-surefire-report-plugin</artifactId>
613 <version>${surefire-report-plugin.version}</version>
614 </plugin>
615 </plugins>
616 </reporting>
nitincg3c7a3242023-06-16 23:38:08 +0530617</project>