blob: 411878dfd2bbcc24ba1bb207b9626e0b0ab75f1c [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 Timoney22f179f2024-09-23 11:39:18 -040023
Dan Timoney42477eb2023-08-10 17:05:46 -040024<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 +020025 <modelVersion>4.0.0</modelVersion>
elinuxhenrike5b384a2020-07-22 16:41:17 +020026 <parent>
27 <groupId>org.onap.ccsdk.parent</groupId>
lapentafdaa142062024-08-20 14:24:11 +010028 <artifactId>spring-boot-33-starter-parent</artifactId>
Dan Timoney22f179f2024-09-23 11:39:18 -040029 <version>2.8.0</version>
Dan Timoney42477eb2023-08-10 17:05:46 -040030 <relativePath/>
elinuxhenrike5b384a2020-07-22 16:41:17 +020031 </parent>
elinuxhenrike5b384a2020-07-22 16:41:17 +020032 <groupId>org.onap.ccsdk.oran</groupId>
33 <artifactId>a1-policy-management-service</artifactId>
Dan Timoney7c50c522024-09-23 15:56:26 -040034 <version>1.8.1-SNAPSHOT</version>
Lathisha682c322020-07-30 15:52:12 +010035 <name>ccsdk-oran :: ${project.artifactId}</name>
RehanRaza0e3740a2020-08-03 15:56:03 +020036 <properties>
JohnKeeney62abcd82023-03-01 19:04:58 +000037 <java.version.source>17</java.version.source>
38 <java.version.target>17</java.version.target>
PatrikBuhraee11102023-01-16 15:27:10 +010039 <gson.version>2.10.1</gson.version>
lapentafdaa142062024-08-20 14:24:11 +010040 <json.version>20240303</json.version>
raviteja.karumuribfc1bfe2024-08-20 17:22:15 +010041 <localstack.version>1.20.1</localstack.version>
42 <junit.jupiter.version>1.20.1</junit.jupiter.version>
43 <javax.annotation-api.version>1.3.2</javax.annotation-api.version>
44 <everit-json-schema.version>1.14.4</everit-json-schema.version>
45 <jackson-databind-nullable.version>0.2.6</jackson-databind-nullable.version>
46 <validation-api.version>2.0.1.Final</validation-api.version>
47 <swagger-annotations.version>2.2.15</swagger-annotations.version>
48 <spring-boot-actuator-autoconfigure.version>3.3.2</spring-boot-actuator-autoconfigure.version>
PatrikBuhr44499d02023-04-04 10:06:22 +020049 <formatter-maven-plugin.version>2.22.0</formatter-maven-plugin.version>
50 <spotless-maven-plugin.version>2.35.0</spotless-maven-plugin.version>
lapentafdaa142062024-08-20 14:24:11 +010051 <commons-io.version>2.16.1</commons-io.version>
52 <guava.version>33.3.0-jre</guava.version>
JohnKeeney62abcd82023-03-01 19:04:58 +000053 <springdoc.version>2.0.2</springdoc.version>
elinuxhenrikc4d1f8a2020-08-24 13:30:10 +020054 <docker-maven-plugin>0.30.0</docker-maven-plugin>
JohnKeeney2d985bd2023-03-31 15:27:16 +010055 <surefire-maven-plugin.version>3.0.0-M8</surefire-maven-plugin.version>
halil.cakal40ce8292023-02-02 12:25:13 +000056 <surefire-report-plugin.version>3.0.0-M8</surefire-report-plugin.version>
PatrikBuhr3ac6f0f2023-02-01 12:14:34 +010057 <jacoco-maven-plugin.version>0.8.8</jacoco-maven-plugin.version>
Dan Timoneyefdb5b02020-11-02 11:00:33 -050058 <ccsdk.project.version>${project.version}</ccsdk.project.version>
lapentafdaa142062024-08-20 14:24:11 +010059 <software.amazon.awssdk.version>2.27.8</software.amazon.awssdk.version>
60 <mapstruct.version>1.6.0</mapstruct.version>
JohnKeeneye251d0c2023-02-20 18:00:44 +000061 <allowskiptests>false</allowskiptests>
RehanRaza0e3740a2020-08-03 15:56:03 +020062 </properties>
63 <dependencies>
64 <dependency>
raviteja.karumuria4687d92023-09-14 12:38:49 +010065 <groupId>javax.validation</groupId>
66 <artifactId>validation-api</artifactId>
raviteja.karumuribfc1bfe2024-08-20 17:22:15 +010067 <version>${validation-api.version}</version>
raviteja.karumuria4687d92023-09-14 12:38:49 +010068 </dependency>
69 <dependency>
70 <groupId>javax.annotation</groupId>
71 <artifactId>javax.annotation-api</artifactId>
raviteja.karumuribfc1bfe2024-08-20 17:22:15 +010072 <version>${javax.annotation-api.version}</version>
raviteja.karumuria4687d92023-09-14 12:38:49 +010073 </dependency>
74 <dependency>
75 <groupId>io.swagger.core.v3</groupId>
76 <artifactId>swagger-annotations</artifactId>
raviteja.karumuribfc1bfe2024-08-20 17:22:15 +010077 <version>${swagger-annotations.version}</version>
raviteja.karumuria4687d92023-09-14 12:38:49 +010078 </dependency>
79 <dependency>
80 <groupId>org.openapitools</groupId>
81 <artifactId>jackson-databind-nullable</artifactId>
raviteja.karumuribfc1bfe2024-08-20 17:22:15 +010082 <version>${jackson-databind-nullable.version}</version>
PatrikBuhr6ef6b6f2023-04-25 15:11:04 +020083 </dependency>
84 <dependency>
RehanRaza0e3740a2020-08-03 15:56:03 +020085 <groupId>org.springframework.boot</groupId>
elinuxhenrikfa658f62020-11-05 12:37:43 +010086 <artifactId>spring-boot</artifactId>
87 </dependency>
88 <dependency>
89 <groupId>org.springframework</groupId>
elinuxhenrikfa658f62020-11-05 12:37:43 +010090 <artifactId>spring-context</artifactId>
RehanRaza0e3740a2020-08-03 15:56:03 +020091 </dependency>
92 <dependency>
93 <groupId>org.springframework.boot</groupId>
elinuxhenrikfa658f62020-11-05 12:37:43 +010094 <artifactId>spring-boot-autoconfigure</artifactId>
RehanRaza0e3740a2020-08-03 15:56:03 +020095 </dependency>
96 <dependency>
PatrikBuhr0f8b2052021-12-20 13:40:14 +010097 <groupId>org.springframework.boot</groupId>
98 <artifactId>spring-boot-starter-webflux</artifactId>
99 </dependency>
100 <dependency>
aravind.estb15c0ce2024-08-14 17:35:33 +0100101 <groupId>org.springframework.boot</groupId>
102 <artifactId>spring-boot-starter-data-r2dbc</artifactId>
103 </dependency>
104 <dependency>
105 <groupId>org.postgresql</groupId>
106 <artifactId>postgresql</artifactId>
107 <scope>runtime</scope>
108 </dependency>
109 <dependency>
110 <groupId>org.postgresql</groupId>
111 <artifactId>r2dbc-postgresql</artifactId>
112 <scope>runtime</scope>
113 </dependency>
114 <dependency>
aravind.estfdfb0702024-08-16 12:50:52 +0100115 <groupId>org.flywaydb</groupId>
aravind.estd0f37822024-08-28 17:57:57 +0100116 <artifactId>flyway-database-postgresql</artifactId>
117 <scope>runtime</scope>
aravind.estfdfb0702024-08-16 12:50:52 +0100118 </dependency>
119 <dependency>
elinuxhenrikfa658f62020-11-05 12:37:43 +0100120 <groupId>org.aspectj</groupId>
121 <artifactId>aspectjweaver</artifactId>
122 </dependency>
123 <dependency>
elinuxhenrikfa658f62020-11-05 12:37:43 +0100124 <groupId>org.apache.tomcat.embed</groupId>
125 <artifactId>tomcat-embed-core</artifactId>
126 </dependency>
127 <dependency>
elinuxhenrikfa658f62020-11-05 12:37:43 +0100128 <groupId>com.google.guava</groupId>
129 <artifactId>guava</artifactId>
JohnKeeneyc9778a72022-11-01 18:49:15 +0000130 <version>${guava.version}</version>
RehanRaza0e3740a2020-08-03 15:56:03 +0200131 </dependency>
132 <dependency>
PatrikBuhr3f3a4d72022-05-30 14:22:46 +0200133 <groupId>com.google.code.gson</groupId>
RehanRaza0e3740a2020-08-03 15:56:03 +0200134 <artifactId>gson</artifactId>
PatrikBuhr3f3a4d72022-05-30 14:22:46 +0200135 <version>${gson.version}</version>
RehanRaza0e3740a2020-08-03 15:56:03 +0200136 </dependency>
137 <dependency>
138 <groupId>org.json</groupId>
139 <artifactId>json</artifactId>
140 <version>${json.version}</version>
141 </dependency>
142 <dependency>
RehanRaza0e3740a2020-08-03 15:56:03 +0200143 <groupId>org.projectlombok</groupId>
144 <artifactId>lombok</artifactId>
145 <scope>provided</scope>
146 </dependency>
raviteja.karumuri10948b62024-04-30 22:15:58 +0100147 <dependency>
148 <groupId>org.mapstruct</groupId>
149 <artifactId>mapstruct</artifactId>
lapentafdaa142062024-08-20 14:24:11 +0100150 <version>${mapstruct.version}</version>
raviteja.karumuri10948b62024-04-30 22:15:58 +0100151 </dependency>
152 <dependency>
153 <groupId>org.mapstruct</groupId>
154 <artifactId>mapstruct-processor</artifactId>
lapentafdaa142062024-08-20 14:24:11 +0100155 <version>${mapstruct.version}</version>
raviteja.karumuri10948b62024-04-30 22:15:58 +0100156 </dependency>
RehanRaza0e3740a2020-08-03 15:56:03 +0200157 <!-- Actuator dependencies -->
158 <dependency>
159 <groupId>org.springframework.boot</groupId>
160 <artifactId>spring-boot-starter-actuator</artifactId>
elinuxhenrikfa658f62020-11-05 12:37:43 +0100161 <scope>runtime</scope>
RehanRaza0e3740a2020-08-03 15:56:03 +0200162 </dependency>
halil.cakal8eadcb62022-09-29 09:47:09 +0100163 <dependency>
164 <groupId>io.micrometer</groupId>
165 <artifactId>micrometer-registry-prometheus</artifactId>
166 </dependency>
167 <dependency>
168 <groupId>org.springframework.boot</groupId>
169 <artifactId>spring-boot-starter-aop</artifactId>
170 </dependency>
PatrikBuhre3693cf2022-10-14 11:38:22 +0200171 <dependency>
172 <groupId>software.amazon.awssdk</groupId>
173 <artifactId>s3</artifactId>
174 <version>${software.amazon.awssdk.version}</version>
175 </dependency>
elinuxhenrikfa658f62020-11-05 12:37:43 +0100176 <!-- For development help -->
177 <dependency>
178 <groupId>org.springframework.boot</groupId>
179 <artifactId>spring-boot-devtools</artifactId>
180 <optional>true</optional>
181 <scope>runtime</scope>
182 </dependency>
183 <dependency>
184 <groupId>org.springframework.boot</groupId>
185 <artifactId>spring-boot-configuration-processor</artifactId>
186 <optional>true</optional>
187 <scope>runtime</scope>
RehanRaza0e3740a2020-08-03 15:56:03 +0200188 </dependency>
elinuxhenrikfa658f62020-11-05 12:37:43 +0100189 <dependency>
raviteja.karumuribfc1bfe2024-08-20 17:22:15 +0100190 <groupId>org.testcontainers</groupId>
191 <artifactId>junit-jupiter</artifactId>
192 <version>${junit.jupiter.version}</version>
193 <scope>test</scope>
194 </dependency>
195 <dependency>
196 <groupId>org.testcontainers</groupId>
197 <artifactId>localstack</artifactId>
198 <version>${localstack.version}</version>
199 <scope>test</scope>
200 </dependency>
201 <dependency>
elinuxhenrikfa658f62020-11-05 12:37:43 +0100202 <groupId>org.springframework.boot</groupId>
RehanRaza0e3740a2020-08-03 15:56:03 +0200203 <artifactId>spring-boot-starter-test</artifactId>
204 <scope>test</scope>
205 </dependency>
206 <dependency>
207 <groupId>org.awaitility</groupId>
208 <artifactId>awaitility</artifactId>
209 <scope>test</scope>
210 </dependency>
211 <dependency>
212 <groupId>io.projectreactor</groupId>
213 <artifactId>reactor-test</artifactId>
214 <scope>test</scope>
215 </dependency>
216 <dependency>
217 <groupId>org.junit.jupiter</groupId>
218 <artifactId>junit-jupiter-engine</artifactId>
219 <scope>test</scope>
220 </dependency>
221 <dependency>
222 <groupId>org.mockito</groupId>
223 <artifactId>mockito-junit-jupiter</artifactId>
224 <scope>test</scope>
225 </dependency>
226 <dependency>
227 <groupId>org.mockito</groupId>
228 <artifactId>mockito-core</artifactId>
229 <scope>test</scope>
230 </dependency>
231 <dependency>
232 <groupId>com.squareup.okhttp3</groupId>
233 <artifactId>mockwebserver</artifactId>
234 <scope>test</scope>
235 </dependency>
elinuxhenrik50b658d2020-11-11 14:11:37 +0100236 <dependency>
237 <groupId>commons-io</groupId>
238 <artifactId>commons-io</artifactId>
239 <version>${commons-io.version}</version>
240 <scope>test</scope>
241 </dependency>
PatrikBuhrd279ef72021-09-21 14:47:59 +0200242 <dependency>
243 <groupId>com.github.erosb</groupId>
244 <artifactId>everit-json-schema</artifactId>
raviteja.karumuribfc1bfe2024-08-20 17:22:15 +0100245 <version>${everit-json-schema.version}</version>
PatrikBuhrd279ef72021-09-21 14:47:59 +0200246 </dependency>
lapentafdf734a402024-05-30 15:47:34 +0100247 <!-- For Tracing -->
248 <dependency>
249 <groupId>io.micrometer</groupId>
250 <artifactId>micrometer-tracing-bridge-otel</artifactId>
251 </dependency>
252 <dependency>
253 <groupId>io.opentelemetry</groupId>
lapentafdf734a402024-05-30 15:47:34 +0100254 <artifactId>opentelemetry-sdk-extension-jaeger-remote-sampler</artifactId>
255 </dependency>
256 <dependency>
lapentafdf734a402024-05-30 15:47:34 +0100257 <groupId>io.opentelemetry.instrumentation</groupId>
258 <artifactId>opentelemetry-spring-webflux-5.3</artifactId>
259 </dependency>
260 <dependency>
lapentafdad800652024-06-24 10:54:54 +0100261 <groupId>io.opentelemetry.instrumentation</groupId>
262 <artifactId>opentelemetry-spring-boot-starter</artifactId>
lapentafdf734a402024-05-30 15:47:34 +0100263 </dependency>
264 <!-- For ObservationRegistryCustomizer -->
265 <dependency>
266 <groupId>org.springframework.boot</groupId>
267 <artifactId>spring-boot-actuator-autoconfigure</artifactId>
raviteja.karumuri1203af82024-09-05 15:18:32 +0100268 <version>3.3.0</version>
lapentafdf734a402024-05-30 15:47:34 +0100269 </dependency>
RehanRaza0e3740a2020-08-03 15:56:03 +0200270 </dependencies>
lapentafdf734a402024-05-30 15:47:34 +0100271 <dependencyManagement>
272 <dependencies>
273 <dependency>
274 <groupId>io.opentelemetry</groupId>
275 <artifactId>opentelemetry-bom</artifactId>
lapentafdaa142062024-08-20 14:24:11 +0100276 <version>1.41.0</version>
lapentafdf734a402024-05-30 15:47:34 +0100277 <type>pom</type>
278 <scope>import</scope>
279 </dependency>
280 <dependency>
281 <groupId>io.opentelemetry.instrumentation</groupId>
282 <artifactId>opentelemetry-instrumentation-bom-alpha</artifactId>
lapentafdaa142062024-08-20 14:24:11 +0100283 <version>2.7.0-alpha</version>
lapentafdf734a402024-05-30 15:47:34 +0100284 <type>pom</type>
285 <scope>import</scope>
286 </dependency>
287 </dependencies>
288 </dependencyManagement>
RehanRaza0e3740a2020-08-03 15:56:03 +0200289 <build>
290 <plugins>
291 <plugin>
Dan Timoneybf5e4cd2022-12-01 17:02:22 -0500292 <groupId>org.codehaus.gmaven</groupId>
293 <artifactId>groovy-maven-plugin</artifactId>
raviteja.karumuria4687d92023-09-14 12:38:49 +0100294 <version>2.1.1</version>
Dan Timoneyefdb5b02020-11-02 11:00:33 -0500295 <executions>
296 <execution>
297 <phase>validate</phase>
298 <goals>
299 <goal>execute</goal>
300 </goals>
301 <configuration>
302 <source>${basedir}/TagVersion.groovy</source>
303 </configuration>
304 </execution>
305 </executions>
306 </plugin>
307 <plugin>
RehanRaza0e3740a2020-08-03 15:56:03 +0200308 <groupId>org.springframework.boot</groupId>
309 <artifactId>spring-boot-maven-plugin</artifactId>
310 </plugin>
Singal, Kapil (ks220y)7788a0b2020-09-03 16:24:57 -0400311 <plugin>
RehanRaza0e3740a2020-08-03 15:56:03 +0200312 <groupId>net.revelc.code.formatter</groupId>
313 <artifactId>formatter-maven-plugin</artifactId>
314 <version>${formatter-maven-plugin.version}</version>
315 <configuration>
Singal, Kapil (ks220y)7788a0b2020-09-03 16:24:57 -0400316 <lineEnding>LF</lineEnding>
RehanRaza0e3740a2020-08-03 15:56:03 +0200317 <configFile>${project.basedir}/eclipse-formatter.xml</configFile>
318 </configuration>
319 <!-- https://code.revelc.net/formatter-maven-plugin/ use mvn formatter:format
320 spotless:apply process-sources -->
321 </plugin>
322 <plugin>
323 <groupId>com.diffplug.spotless</groupId>
324 <artifactId>spotless-maven-plugin</artifactId>
325 <version>${spotless-maven-plugin.version}</version>
326 <configuration>
Singal, Kapil (ks220y)7788a0b2020-09-03 16:24:57 -0400327 <lineEndings>UNIX</lineEndings>
RehanRaza0e3740a2020-08-03 15:56:03 +0200328 <java>
Dan Timoney42477eb2023-08-10 17:05:46 -0400329 <removeUnusedImports/>
RehanRaza0e3740a2020-08-03 15:56:03 +0200330 <importOrder>
PatrikBuhr44499d02023-04-04 10:06:22 +0200331 <order>com,io,java,lombok,javax,org,reactor</order>
RehanRaza0e3740a2020-08-03 15:56:03 +0200332 </importOrder>
333 </java>
334 </configuration>
335 <!-- https://github.com/diffplug/spotless/tree/master/plugin-maven use
336 mvn spotless:apply to rewrite source files use mvn spotless:check to validate
337 source files -->
338 </plugin>
339 <plugin>
340 <groupId>org.apache.maven.plugins</groupId>
341 <artifactId>maven-surefire-plugin</artifactId>
elinuxhenrik9c3a6bd2020-08-26 14:04:17 +0200342 <version>${surefire-maven-plugin.version}</version>
RehanRaza0e3740a2020-08-03 15:56:03 +0200343 <configuration>
JohnKeeneye251d0c2023-02-20 18:00:44 +0000344 <skipTests>${allowskiptests}</skipTests>
Dan Timoney42477eb2023-08-10 17:05:46 -0400345 <statelessTestsetReporter implementation="org.apache.maven.plugin.surefire.extensions.junit5.JUnit5Xml30StatelessReporter">
halil.cakal40ce8292023-02-02 12:25:13 +0000346 <usePhrasedFileName>false</usePhrasedFileName>
347 <usePhrasedTestSuiteClassName>true</usePhrasedTestSuiteClassName>
348 <usePhrasedTestCaseClassName>true</usePhrasedTestCaseClassName>
349 <usePhrasedTestCaseMethodName>true</usePhrasedTestCaseMethodName>
350 </statelessTestsetReporter>
Dan Timoney42477eb2023-08-10 17:05:46 -0400351 <consoleOutputReporter implementation="org.apache.maven.plugin.surefire.extensions.junit5.JUnit5ConsoleOutputReporter">
halil.cakal40ce8292023-02-02 12:25:13 +0000352 <usePhrasedFileName>false</usePhrasedFileName>
353 </consoleOutputReporter>
Dan Timoney42477eb2023-08-10 17:05:46 -0400354 <statelessTestsetInfoReporter implementation="org.apache.maven.plugin.surefire.extensions.junit5.JUnit5StatelessTestsetInfoReporter">
halil.cakal40ce8292023-02-02 12:25:13 +0000355 <usePhrasedFileName>false</usePhrasedFileName>
356 <usePhrasedClassNameInRunning>true</usePhrasedClassNameInRunning>
357 <usePhrasedClassNameInTestCaseSummary>true</usePhrasedClassNameInTestCaseSummary>
358 </statelessTestsetInfoReporter>
RehanRaza0e3740a2020-08-03 15:56:03 +0200359 </configuration>
360 </plugin>
361 <plugin>
RehanRaza0e3740a2020-08-03 15:56:03 +0200362 <groupId>org.codehaus.mojo</groupId>
363 <artifactId>build-helper-maven-plugin</artifactId>
364 <executions>
365 <execution>
366 <id>add-source</id>
367 <phase>generate-sources</phase>
368 <goals>
369 <goal>add-source</goal>
370 </goals>
371 <configuration>
372 <sources>
373 <source>${project.build.directory}/generated-sources/annotations/</source>
374 </sources>
375 </configuration>
376 </execution>
377 </executions>
378 </plugin>
379 <plugin>
380 <groupId>org.jacoco</groupId>
381 <artifactId>jacoco-maven-plugin</artifactId>
382 <version>${jacoco-maven-plugin.version}</version>
383 <executions>
384 <execution>
385 <id>default-prepare-agent</id>
386 <goals>
387 <goal>prepare-agent</goal>
388 </goals>
389 </execution>
390 <execution>
391 <id>default-report</id>
392 <phase>prepare-package</phase>
393 <goals>
394 <goal>report</goal>
395 </goals>
396 </execution>
397 </executions>
398 </plugin>
399 <plugin>
raviteja.karumuri1203af82024-09-05 15:18:32 +0100400 <groupId>org.openapitools</groupId>
401 <artifactId>openapi-generator-maven-plugin</artifactId>
402 <version>7.7.0</version>
raviteja.karumuria4687d92023-09-14 12:38:49 +0100403 <executions>
404 <execution>
405 <id>generate-openapi-json</id>
406 <phase>prepare-package</phase>
407 <goals>
408 <goal>generate</goal>
409 </goals>
410 <configuration>
raviteja.karumuri1203af82024-09-05 15:18:32 +0100411 <inputSpec>${project.basedir}/api/offeredapis/swagger/pms-api.yaml</inputSpec>
412 <generatorName>openapi</generatorName>
413 <output>${project.basedir}/api/offeredapis/swagger</output>
raviteja.karumuria4687d92023-09-14 12:38:49 +0100414 <configOptions>
raviteja.karumuri1203af82024-09-05 15:18:32 +0100415 <outputFileName>pms-api.json</outputFileName>
raviteja.karumuria4687d92023-09-14 12:38:49 +0100416 </configOptions>
417 </configuration>
418 </execution>
raviteja.karumuri1203af82024-09-05 15:18:32 +0100419 <execution>
420 <id>generate-openapi-json-v3</id>
421 <phase>prepare-package</phase>
422 <goals>
423 <goal>generate</goal>
424 </goals>
425 <configuration>
426 <inputSpec>${project.basedir}/api/offeredapis/swagger/pms-api-v3.yaml</inputSpec>
427 <generatorName>openapi</generatorName>
428 <output>${project.basedir}/api/offeredapis/swagger</output>
429 <configOptions>
430 <outputFileName>pms-api-v3.json</outputFileName>
431 </configOptions>
432 </configuration>
433 </execution>
elinuxhenrikf28594d2020-12-07 14:54:19 +0100434 <execution>
raviteja.karumuri89097842024-09-20 14:06:44 +0100435 <id>generate-openapi-json-config-a1pms</id>
436 <phase>prepare-package</phase>
437 <goals>
438 <goal>generate</goal>
439 </goals>
440 <configuration>
441 <inputSpec>${project.basedir}/api/offeredapis/swagger/pms-api-v3.yaml</inputSpec>
442 <generatorName>openapi</generatorName>
443 <apisToGenerate>A1PolicyManagement</apisToGenerate>
444 <output>${project.basedir}/api/offeredapis/swagger</output>
445 <configOptions>
446 <outputFileName>a1pms-api-v3.json</outputFileName>
447 </configOptions>
448 </configuration>
449 </execution>
450 <execution>
JohnKeeneye251d0c2023-02-20 18:00:44 +0000451 <id>generate-openapi-html</id>
452 <phase>prepare-package</phase>
elinuxhenrikf28594d2020-12-07 14:54:19 +0100453 <goals>
454 <goal>generate</goal>
455 </goals>
456 <configuration>
raviteja.karumuri1203af82024-09-05 15:18:32 +0100457 <inputSpec>${project.basedir}/api/offeredapis/swagger/pms-api.json</inputSpec>
halil.cakalb4ed3332023-01-20 12:14:08 +0000458 <generatorName>html2</generatorName>
raviteja.karumuri1203af82024-09-05 15:18:32 +0100459 <output>${project.basedir}/api/offeredapis/openapitoolgen/offeredapis/pms-api</output>
halil.cakalb4ed3332023-01-20 12:14:08 +0000460 <skipOperationExample>false</skipOperationExample>
461 <strictSpec>false</strictSpec>
elinuxhenrikf28594d2020-12-07 14:54:19 +0100462 <configOptions>
PatrikBuhr44499d02023-04-04 10:06:22 +0200463 <appDescription>The O-RAN Non-RT RIC Policy Management Service
464 provides a REST API for managing O-RAN A1 Policies.</appDescription>
halil.cakalb4ed3332023-01-20 12:14:08 +0000465 <appName>ONAP CCSDK A1 Policy Management Service</appName>
466 <infoUrl>https://wiki.onap.org/display/DW/O-RAN+A1+Policies+in+ONAP</infoUrl>
PatrikBuhr44499d02023-04-04 10:06:22 +0200467 <licenseInfo>Copyright (C) 2020-2023 Nordix Foundation. Licensed
raviteja.karumuri3e02f632024-01-17 15:50:10 +0000468 under the Apache License, and Copyright (C) 2024 OpenInfra Foundation Europe. All rights reserved.</licenseInfo>
halil.cakalb4ed3332023-01-20 12:14:08 +0000469 <licenseUrl>http://www.apache.org/licenses/LICENSE-2.0</licenseUrl>
JohnKeeneye251d0c2023-02-20 18:00:44 +0000470 </configOptions>
471 </configuration>
472 </execution>
473 <execution>
raviteja.karumuri1203af82024-09-05 15:18:32 +0100474 <id>generate-openapi-html-v3</id>
475 <phase>prepare-package</phase>
476 <goals>
477 <goal>generate</goal>
478 </goals>
479 <configuration>
480 <inputSpec>${project.basedir}/api/offeredapis/swagger/pms-api-v3.json</inputSpec>
481 <generatorName>html2</generatorName>
482 <output>${project.basedir}/api/offeredapis/openapitoolgen/offeredapis/pms-api/v3</output>
483 <skipOperationExample>false</skipOperationExample>
484 <strictSpec>false</strictSpec>
485 <configOptions>
486 <appDescription>The O-RAN Non-RT RIC Policy Management Service
487 provides a REST API for managing O-RAN A1 Policies.</appDescription>
488 <appName>ONAP CCSDK A1 Policy Management Service</appName>
489 <infoUrl>https://wiki.onap.org/display/DW/O-RAN+A1+Policies+in+ONAP</infoUrl>
490 <licenseInfo>Copyright (C) 2024 OpenInfra Foundation Europe. All rights reserved.</licenseInfo>
491 <licenseUrl>http://www.apache.org/licenses/LICENSE-2.0</licenseUrl>
492 </configOptions>
493 </configuration>
494 </execution>
495 <execution>
raviteja.karumuri89097842024-09-20 14:06:44 +0100496 <id>generate-openapi-html-config-a1pms</id>
497 <phase>prepare-package</phase>
498 <goals>
499 <goal>generate</goal>
500 </goals>
501 <configuration>
502 <inputSpec>${project.basedir}/api/offeredapis/swagger/pms-api-v3.json</inputSpec>
503 <generatorName>html2</generatorName>
504 <output>${project.basedir}/api/offeredapis/openapitoolgen/offeredapis/pms-api/v3/custom</output>
505 <skipOperationExample>false</skipOperationExample>
506 <strictSpec>false</strictSpec>
507 <apisToGenerate>A1PolicyManagement</apisToGenerate>
508 <configOptions>
509 <appDescription>The O-RAN Non-RT RIC Policy Management Service
510 provides a REST API for managing O-RAN A1 Policies.</appDescription>
511 <appName>ONAP CCSDK A1 Policy Management Service</appName>
512 <infoUrl>https://wiki.onap.org/display/DW/O-RAN+A1+Policies+in+ONAP</infoUrl>
513 <licenseInfo>Copyright (C) 2024 OpenInfra Foundation Europe. All rights reserved.</licenseInfo>
514 <licenseUrl>http://www.apache.org/licenses/LICENSE-2.0</licenseUrl>
515 </configOptions>
516 </configuration>
517 </execution>
518 <execution>
raviteja.karumuria4687d92023-09-14 12:38:49 +0100519 <id>generate-policy-api</id>
520 <phase>generate-sources </phase>
JohnKeeneye251d0c2023-02-20 18:00:44 +0000521 <goals>
522 <goal>generate</goal>
523 </goals>
524 <configuration>
raviteja.karumuri1203af82024-09-05 15:18:32 +0100525 <inputSpec>${project.basedir}/api/offeredapis/swagger/pms-api.yaml</inputSpec>
raviteja.karumuria4687d92023-09-14 12:38:49 +0100526 <invokerPackage>${project.groupId}.a1policymanagementservice.controllers.v2</invokerPackage>
527 <apiPackage>${project.groupId}.a1policymanagementservice.controllers.api.v2</apiPackage>
528 <modelPackage>${project.groupId}.a1policymanagementservice.models.v2</modelPackage>
529 <generateApiTests>false</generateApiTests>
530 <generateModelTests>false</generateModelTests>
531 <generatorName>spring</generatorName>
532 <generateSupportingFiles>false</generateSupportingFiles>
533 <skipValidateSpec>false</skipValidateSpec>
534 <library>spring-boot</library>
JohnKeeneye251d0c2023-02-20 18:00:44 +0000535 <configOptions>
raviteja.karumuria4687d92023-09-14 12:38:49 +0100536 <sourceFolder>src/gen/java</sourceFolder>
537 <interfaceOnly>true</interfaceOnly>
538 <useTags>true</useTags>
539 <reactive>true</reactive>
540 <dateLibrary>java8</dateLibrary>
541 <java8>true</java8>
542 <unhandledException>true</unhandledException>
543 <openApiNullable>false</openApiNullable>
544 <skipDefaultInterface>true</skipDefaultInterface>
elinuxhenrikf28594d2020-12-07 14:54:19 +0100545 </configOptions>
546 </configuration>
547 </execution>
raviteja.karumuri6de5c032024-03-22 11:55:58 +0000548 <execution>
549 <id>generate-policy-api-v3</id>
550 <phase>generate-sources </phase>
551 <goals>
552 <goal>generate</goal>
553 </goals>
554 <configuration>
raviteja.karumuri1203af82024-09-05 15:18:32 +0100555 <inputSpec>${project.basedir}/api/offeredapis/swagger/pms-api-v3.yaml</inputSpec>
raviteja.karumuri6de5c032024-03-22 11:55:58 +0000556 <invokerPackage>${project.groupId}.a1policymanagementservice.controllers.v3</invokerPackage>
557 <apiPackage>${project.groupId}.a1policymanagementservice.controllers.api.v3</apiPackage>
558 <modelPackage>${project.groupId}.a1policymanagementservice.models.v3</modelPackage>
559 <generateApiTests>false</generateApiTests>
560 <generateModelTests>false</generateModelTests>
561 <generatorName>spring</generatorName>
562 <generateSupportingFiles>false</generateSupportingFiles>
563 <skipValidateSpec>false</skipValidateSpec>
564 <library>spring-boot</library>
565 <configOptions>
566 <sourceFolder>src/gen/java</sourceFolder>
567 <interfaceOnly>true</interfaceOnly>
568 <useTags>true</useTags>
569 <reactive>true</reactive>
570 <dateLibrary>java8</dateLibrary>
571 <java8>true</java8>
572 <unhandledException>true</unhandledException>
573 <openApiNullable>false</openApiNullable>
574 <skipDefaultInterface>true</skipDefaultInterface>
575 </configOptions>
576 </configuration>
577 </execution>
elinuxhenrikf28594d2020-12-07 14:54:19 +0100578 </executions>
579 </plugin>
580 <plugin>
PatrikBuhr1122b012021-01-20 12:21:52 +0100581 <artifactId>maven-resources-plugin</artifactId>
582 <executions>
583 <execution>
JohnKeeneye251d0c2023-02-20 18:00:44 +0000584 <id>copy-resource-openapi</id>
585 <phase>package</phase>
PatrikBuhr1122b012021-01-20 12:21:52 +0100586 <goals>
587 <goal>copy-resources</goal>
588 </goals>
589 <configuration>
raviteja.karumuri1203af82024-09-05 15:18:32 +0100590 <outputDirectory>${project.basedir}/../docs/offeredapis</outputDirectory>
raviteja.karumuri3e02f632024-01-17 15:50:10 +0000591 <overwrite>true</overwrite>
PatrikBuhr1122b012021-01-20 12:21:52 +0100592 <resources>
593 <resource>
raviteja.karumuri1203af82024-09-05 15:18:32 +0100594 <directory>${project.basedir}/api/offeredapis</directory>
PatrikBuhr1122b012021-01-20 12:21:52 +0100595 <includes>
raviteja.karumuri1203af82024-09-05 15:18:32 +0100596 <include>swagger/pms-api.json</include>
597 <include>swagger/pms-api.yaml</include>
598 <include>swagger/pms-api-v3.json</include>
599 <include>swagger/pms-api-v3.yaml</include>
raviteja.karumuri89097842024-09-20 14:06:44 +0100600 <include>swagger/a1pms-api-v3.json</include>
raviteja.karumuri1203af82024-09-05 15:18:32 +0100601 <include>openapitoolgen/offeredapis/pms-api/index.html</include>
602 <include>openapitoolgen/offeredapis/pms-api/v3/index.html</include>
raviteja.karumuri89097842024-09-20 14:06:44 +0100603 <include>openapitoolgen/offeredapis/pms-api/v3/custom/index.html</include>
PatrikBuhr1122b012021-01-20 12:21:52 +0100604 </includes>
605 </resource>
606 </resources>
607 </configuration>
608 </execution>
609 </executions>
610 </plugin>
611 <plugin>
RehanRaza0e3740a2020-08-03 15:56:03 +0200612 <groupId>io.fabric8</groupId>
613 <artifactId>docker-maven-plugin</artifactId>
614 <version>${docker-maven-plugin}</version>
615 <inherited>false</inherited>
616 <executions>
617 <execution>
618 <id>generate-policy-management-service-image</id>
619 <phase>package</phase>
620 <goals>
621 <goal>build</goal>
622 </goals>
623 <configuration>
624 <images>
625 <image>
PatrikBuhr44499d02023-04-04 10:06:22 +0200626 <name>
627 onap/ccsdk-oran-a1policymanagementservice:${project.version}</name>
RehanRaza0e3740a2020-08-03 15:56:03 +0200628 <build>
629 <cleanup>try</cleanup>
630 <contextDir>${basedir}</contextDir>
631 <dockerFile>Dockerfile</dockerFile>
632 <args>
633 <JAR>${project.build.finalName}.jar</JAR>
634 </args>
635 <tags>
636 <tag>${project.version}</tag>
637 </tags>
638 </build>
639 </image>
640 </images>
641 </configuration>
642 </execution>
643 <execution>
644 <id>push-policy-management-service-image</id>
645 <goals>
646 <goal>build</goal>
647 <goal>push</goal>
648 </goals>
649 <configuration>
650 <images>
651 <image>
PatrikBuhr44499d02023-04-04 10:06:22 +0200652 <name>
653 onap/ccsdk-oran-a1policymanagementservice:${project.version}</name>
RehanRaza0e3740a2020-08-03 15:56:03 +0200654 <build>
655 <contextDir>${basedir}</contextDir>
656 <dockerFile>Dockerfile</dockerFile>
657 <args>
658 <JAR>${project.build.finalName}.jar</JAR>
659 </args>
660 <tags>
Dan Timoneyefdb5b02020-11-02 11:00:33 -0500661 <tag>${project.docker.latestminortag.version}</tag>
662 <tag>${project.docker.latestfulltag.version}</tag>
663 <tag>${project.docker.latesttagtimestamp.version}</tag>
RehanRaza0e3740a2020-08-03 15:56:03 +0200664 </tags>
665 </build>
666 </image>
667 </images>
668 </configuration>
669 </execution>
670 </executions>
671 </plugin>
672 </plugins>
673 </build>
halil.cakal40ce8292023-02-02 12:25:13 +0000674 <reporting>
675 <plugins>
676 <plugin>
677 <groupId>org.apache.maven.plugins</groupId>
678 <artifactId>maven-surefire-report-plugin</artifactId>
679 <version>${surefire-report-plugin.version}</version>
680 </plugin>
681 </plugins>
682 </reporting>
nitincg3c7a3242023-06-16 23:38:08 +0530683</project>