blob: 718a27426b1c01af994f14f40834b62ac77707f0 [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>
JohnKeeneye251d0c2023-02-20 18:00:44 +0000435 <id>generate-openapi-html</id>
436 <phase>prepare-package</phase>
elinuxhenrikf28594d2020-12-07 14:54:19 +0100437 <goals>
438 <goal>generate</goal>
439 </goals>
440 <configuration>
raviteja.karumuri1203af82024-09-05 15:18:32 +0100441 <inputSpec>${project.basedir}/api/offeredapis/swagger/pms-api.json</inputSpec>
halil.cakalb4ed3332023-01-20 12:14:08 +0000442 <generatorName>html2</generatorName>
raviteja.karumuri1203af82024-09-05 15:18:32 +0100443 <output>${project.basedir}/api/offeredapis/openapitoolgen/offeredapis/pms-api</output>
halil.cakalb4ed3332023-01-20 12:14:08 +0000444 <skipOperationExample>false</skipOperationExample>
445 <strictSpec>false</strictSpec>
elinuxhenrikf28594d2020-12-07 14:54:19 +0100446 <configOptions>
PatrikBuhr44499d02023-04-04 10:06:22 +0200447 <appDescription>The O-RAN Non-RT RIC Policy Management Service
448 provides a REST API for managing O-RAN A1 Policies.</appDescription>
halil.cakalb4ed3332023-01-20 12:14:08 +0000449 <appName>ONAP CCSDK A1 Policy Management Service</appName>
450 <infoUrl>https://wiki.onap.org/display/DW/O-RAN+A1+Policies+in+ONAP</infoUrl>
PatrikBuhr44499d02023-04-04 10:06:22 +0200451 <licenseInfo>Copyright (C) 2020-2023 Nordix Foundation. Licensed
raviteja.karumuri3e02f632024-01-17 15:50:10 +0000452 under the Apache License, and Copyright (C) 2024 OpenInfra Foundation Europe. All rights reserved.</licenseInfo>
halil.cakalb4ed3332023-01-20 12:14:08 +0000453 <licenseUrl>http://www.apache.org/licenses/LICENSE-2.0</licenseUrl>
JohnKeeneye251d0c2023-02-20 18:00:44 +0000454 </configOptions>
455 </configuration>
456 </execution>
457 <execution>
raviteja.karumuri1203af82024-09-05 15:18:32 +0100458 <id>generate-openapi-html-v3</id>
459 <phase>prepare-package</phase>
460 <goals>
461 <goal>generate</goal>
462 </goals>
463 <configuration>
464 <inputSpec>${project.basedir}/api/offeredapis/swagger/pms-api-v3.json</inputSpec>
465 <generatorName>html2</generatorName>
466 <output>${project.basedir}/api/offeredapis/openapitoolgen/offeredapis/pms-api/v3</output>
467 <skipOperationExample>false</skipOperationExample>
468 <strictSpec>false</strictSpec>
469 <configOptions>
470 <appDescription>The O-RAN Non-RT RIC Policy Management Service
471 provides a REST API for managing O-RAN A1 Policies.</appDescription>
472 <appName>ONAP CCSDK A1 Policy Management Service</appName>
473 <infoUrl>https://wiki.onap.org/display/DW/O-RAN+A1+Policies+in+ONAP</infoUrl>
474 <licenseInfo>Copyright (C) 2024 OpenInfra Foundation Europe. All rights reserved.</licenseInfo>
475 <licenseUrl>http://www.apache.org/licenses/LICENSE-2.0</licenseUrl>
476 </configOptions>
477 </configuration>
478 </execution>
479 <execution>
raviteja.karumuria4687d92023-09-14 12:38:49 +0100480 <id>generate-policy-api</id>
481 <phase>generate-sources </phase>
JohnKeeneye251d0c2023-02-20 18:00:44 +0000482 <goals>
483 <goal>generate</goal>
484 </goals>
485 <configuration>
raviteja.karumuri1203af82024-09-05 15:18:32 +0100486 <inputSpec>${project.basedir}/api/offeredapis/swagger/pms-api.yaml</inputSpec>
raviteja.karumuria4687d92023-09-14 12:38:49 +0100487 <invokerPackage>${project.groupId}.a1policymanagementservice.controllers.v2</invokerPackage>
488 <apiPackage>${project.groupId}.a1policymanagementservice.controllers.api.v2</apiPackage>
489 <modelPackage>${project.groupId}.a1policymanagementservice.models.v2</modelPackage>
490 <generateApiTests>false</generateApiTests>
491 <generateModelTests>false</generateModelTests>
492 <generatorName>spring</generatorName>
493 <generateSupportingFiles>false</generateSupportingFiles>
494 <skipValidateSpec>false</skipValidateSpec>
495 <library>spring-boot</library>
JohnKeeneye251d0c2023-02-20 18:00:44 +0000496 <configOptions>
raviteja.karumuria4687d92023-09-14 12:38:49 +0100497 <sourceFolder>src/gen/java</sourceFolder>
498 <interfaceOnly>true</interfaceOnly>
499 <useTags>true</useTags>
500 <reactive>true</reactive>
501 <dateLibrary>java8</dateLibrary>
502 <java8>true</java8>
503 <unhandledException>true</unhandledException>
504 <openApiNullable>false</openApiNullable>
505 <skipDefaultInterface>true</skipDefaultInterface>
elinuxhenrikf28594d2020-12-07 14:54:19 +0100506 </configOptions>
507 </configuration>
508 </execution>
raviteja.karumuri6de5c032024-03-22 11:55:58 +0000509 <execution>
510 <id>generate-policy-api-v3</id>
511 <phase>generate-sources </phase>
512 <goals>
513 <goal>generate</goal>
514 </goals>
515 <configuration>
raviteja.karumuri1203af82024-09-05 15:18:32 +0100516 <inputSpec>${project.basedir}/api/offeredapis/swagger/pms-api-v3.yaml</inputSpec>
raviteja.karumuri6de5c032024-03-22 11:55:58 +0000517 <invokerPackage>${project.groupId}.a1policymanagementservice.controllers.v3</invokerPackage>
518 <apiPackage>${project.groupId}.a1policymanagementservice.controllers.api.v3</apiPackage>
519 <modelPackage>${project.groupId}.a1policymanagementservice.models.v3</modelPackage>
520 <generateApiTests>false</generateApiTests>
521 <generateModelTests>false</generateModelTests>
522 <generatorName>spring</generatorName>
523 <generateSupportingFiles>false</generateSupportingFiles>
524 <skipValidateSpec>false</skipValidateSpec>
525 <library>spring-boot</library>
526 <configOptions>
527 <sourceFolder>src/gen/java</sourceFolder>
528 <interfaceOnly>true</interfaceOnly>
529 <useTags>true</useTags>
530 <reactive>true</reactive>
531 <dateLibrary>java8</dateLibrary>
532 <java8>true</java8>
533 <unhandledException>true</unhandledException>
534 <openApiNullable>false</openApiNullable>
535 <skipDefaultInterface>true</skipDefaultInterface>
536 </configOptions>
537 </configuration>
538 </execution>
elinuxhenrikf28594d2020-12-07 14:54:19 +0100539 </executions>
540 </plugin>
541 <plugin>
PatrikBuhr1122b012021-01-20 12:21:52 +0100542 <artifactId>maven-resources-plugin</artifactId>
543 <executions>
544 <execution>
JohnKeeneye251d0c2023-02-20 18:00:44 +0000545 <id>copy-resource-openapi</id>
546 <phase>package</phase>
PatrikBuhr1122b012021-01-20 12:21:52 +0100547 <goals>
548 <goal>copy-resources</goal>
549 </goals>
550 <configuration>
raviteja.karumuri1203af82024-09-05 15:18:32 +0100551 <outputDirectory>${project.basedir}/../docs/offeredapis</outputDirectory>
raviteja.karumuri3e02f632024-01-17 15:50:10 +0000552 <overwrite>true</overwrite>
PatrikBuhr1122b012021-01-20 12:21:52 +0100553 <resources>
554 <resource>
raviteja.karumuri1203af82024-09-05 15:18:32 +0100555 <directory>${project.basedir}/api/offeredapis</directory>
PatrikBuhr1122b012021-01-20 12:21:52 +0100556 <includes>
raviteja.karumuri1203af82024-09-05 15:18:32 +0100557 <include>swagger/pms-api.json</include>
558 <include>swagger/pms-api.yaml</include>
559 <include>swagger/pms-api-v3.json</include>
560 <include>swagger/pms-api-v3.yaml</include>
561 <include>openapitoolgen/offeredapis/pms-api/index.html</include>
562 <include>openapitoolgen/offeredapis/pms-api/v3/index.html</include>
PatrikBuhr1122b012021-01-20 12:21:52 +0100563 </includes>
564 </resource>
565 </resources>
566 </configuration>
567 </execution>
568 </executions>
569 </plugin>
570 <plugin>
RehanRaza0e3740a2020-08-03 15:56:03 +0200571 <groupId>io.fabric8</groupId>
572 <artifactId>docker-maven-plugin</artifactId>
573 <version>${docker-maven-plugin}</version>
574 <inherited>false</inherited>
575 <executions>
576 <execution>
577 <id>generate-policy-management-service-image</id>
578 <phase>package</phase>
579 <goals>
580 <goal>build</goal>
581 </goals>
582 <configuration>
583 <images>
584 <image>
PatrikBuhr44499d02023-04-04 10:06:22 +0200585 <name>
586 onap/ccsdk-oran-a1policymanagementservice:${project.version}</name>
RehanRaza0e3740a2020-08-03 15:56:03 +0200587 <build>
588 <cleanup>try</cleanup>
589 <contextDir>${basedir}</contextDir>
590 <dockerFile>Dockerfile</dockerFile>
591 <args>
592 <JAR>${project.build.finalName}.jar</JAR>
593 </args>
594 <tags>
595 <tag>${project.version}</tag>
596 </tags>
597 </build>
598 </image>
599 </images>
600 </configuration>
601 </execution>
602 <execution>
603 <id>push-policy-management-service-image</id>
604 <goals>
605 <goal>build</goal>
606 <goal>push</goal>
607 </goals>
608 <configuration>
609 <images>
610 <image>
PatrikBuhr44499d02023-04-04 10:06:22 +0200611 <name>
612 onap/ccsdk-oran-a1policymanagementservice:${project.version}</name>
RehanRaza0e3740a2020-08-03 15:56:03 +0200613 <build>
614 <contextDir>${basedir}</contextDir>
615 <dockerFile>Dockerfile</dockerFile>
616 <args>
617 <JAR>${project.build.finalName}.jar</JAR>
618 </args>
619 <tags>
Dan Timoneyefdb5b02020-11-02 11:00:33 -0500620 <tag>${project.docker.latestminortag.version}</tag>
621 <tag>${project.docker.latestfulltag.version}</tag>
622 <tag>${project.docker.latesttagtimestamp.version}</tag>
RehanRaza0e3740a2020-08-03 15:56:03 +0200623 </tags>
624 </build>
625 </image>
626 </images>
627 </configuration>
628 </execution>
629 </executions>
630 </plugin>
631 </plugins>
632 </build>
halil.cakal40ce8292023-02-02 12:25:13 +0000633 <reporting>
634 <plugins>
635 <plugin>
636 <groupId>org.apache.maven.plugins</groupId>
637 <artifactId>maven-surefire-report-plugin</artifactId>
638 <version>${surefire-report-plugin.version}</version>
639 </plugin>
640 </plugins>
641 </reporting>
nitincg3c7a3242023-06-16 23:38:08 +0530642</project>