blob: cd8b31f543ed97fbbba22fc40f6eb70acb2a11fa [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>
lapentafdaa142062024-08-20 14:24:11 +010027 <artifactId>spring-boot-33-starter-parent</artifactId>
28 <version>2.8.0-SNAPSHOT</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>
lapentafdaa142062024-08-20 14:24:11 +010039 <json.version>20240303</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>
lapentafdaa142062024-08-20 14:24:11 +010042 <commons-io.version>2.16.1</commons-io.version>
43 <guava.version>33.3.0-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>
lapentafdaa142062024-08-20 14:24:11 +010050 <software.amazon.awssdk.version>2.27.8</software.amazon.awssdk.version>
51 <mapstruct.version>1.6.0</mapstruct.version>
JohnKeeneye251d0c2023-02-20 18:00:44 +000052 <allowskiptests>false</allowskiptests>
RehanRaza0e3740a2020-08-03 15:56:03 +020053 </properties>
54 <dependencies>
55 <dependency>
raviteja.karumuria4687d92023-09-14 12:38:49 +010056 <groupId>javax.validation</groupId>
57 <artifactId>validation-api</artifactId>
58 <version>2.0.1.Final</version>
59 </dependency>
60 <dependency>
61 <groupId>javax.annotation</groupId>
62 <artifactId>javax.annotation-api</artifactId>
63 <version>1.3.2</version>
64 </dependency>
65 <dependency>
66 <groupId>io.swagger.core.v3</groupId>
67 <artifactId>swagger-annotations</artifactId>
68 <version>2.2.15</version>
69 </dependency>
70 <dependency>
71 <groupId>org.openapitools</groupId>
72 <artifactId>jackson-databind-nullable</artifactId>
lapentafdaa142062024-08-20 14:24:11 +010073 <version>0.2.6</version>
PatrikBuhr6ef6b6f2023-04-25 15:11:04 +020074 </dependency>
75 <dependency>
RehanRaza0e3740a2020-08-03 15:56:03 +020076 <groupId>org.springframework.boot</groupId>
elinuxhenrikfa658f62020-11-05 12:37:43 +010077 <artifactId>spring-boot</artifactId>
78 </dependency>
79 <dependency>
80 <groupId>org.springframework</groupId>
elinuxhenrikfa658f62020-11-05 12:37:43 +010081 <artifactId>spring-context</artifactId>
RehanRaza0e3740a2020-08-03 15:56:03 +020082 </dependency>
83 <dependency>
84 <groupId>org.springframework.boot</groupId>
elinuxhenrikfa658f62020-11-05 12:37:43 +010085 <artifactId>spring-boot-autoconfigure</artifactId>
RehanRaza0e3740a2020-08-03 15:56:03 +020086 </dependency>
87 <dependency>
PatrikBuhr0f8b2052021-12-20 13:40:14 +010088 <groupId>org.springframework.boot</groupId>
89 <artifactId>spring-boot-starter-webflux</artifactId>
90 </dependency>
91 <dependency>
aravind.estb15c0ce2024-08-14 17:35:33 +010092 <groupId>org.springframework.boot</groupId>
93 <artifactId>spring-boot-starter-data-r2dbc</artifactId>
94 </dependency>
95 <dependency>
96 <groupId>org.postgresql</groupId>
97 <artifactId>postgresql</artifactId>
98 <scope>runtime</scope>
99 </dependency>
100 <dependency>
101 <groupId>org.postgresql</groupId>
102 <artifactId>r2dbc-postgresql</artifactId>
103 <scope>runtime</scope>
104 </dependency>
105 <dependency>
aravind.estfdfb0702024-08-16 12:50:52 +0100106 <groupId>org.flywaydb</groupId>
aravind.estd0f37822024-08-28 17:57:57 +0100107 <artifactId>flyway-database-postgresql</artifactId>
108 <scope>runtime</scope>
aravind.estfdfb0702024-08-16 12:50:52 +0100109 </dependency>
110 <dependency>
elinuxhenrikfa658f62020-11-05 12:37:43 +0100111 <groupId>org.aspectj</groupId>
112 <artifactId>aspectjweaver</artifactId>
113 </dependency>
114 <dependency>
elinuxhenrikfa658f62020-11-05 12:37:43 +0100115 <groupId>org.apache.tomcat.embed</groupId>
116 <artifactId>tomcat-embed-core</artifactId>
117 </dependency>
118 <dependency>
elinuxhenrikfa658f62020-11-05 12:37:43 +0100119 <groupId>com.google.guava</groupId>
120 <artifactId>guava</artifactId>
JohnKeeneyc9778a72022-11-01 18:49:15 +0000121 <version>${guava.version}</version>
RehanRaza0e3740a2020-08-03 15:56:03 +0200122 </dependency>
123 <dependency>
PatrikBuhr3f3a4d72022-05-30 14:22:46 +0200124 <groupId>com.google.code.gson</groupId>
RehanRaza0e3740a2020-08-03 15:56:03 +0200125 <artifactId>gson</artifactId>
PatrikBuhr3f3a4d72022-05-30 14:22:46 +0200126 <version>${gson.version}</version>
RehanRaza0e3740a2020-08-03 15:56:03 +0200127 </dependency>
128 <dependency>
129 <groupId>org.json</groupId>
130 <artifactId>json</artifactId>
131 <version>${json.version}</version>
132 </dependency>
133 <dependency>
RehanRaza0e3740a2020-08-03 15:56:03 +0200134 <groupId>org.projectlombok</groupId>
135 <artifactId>lombok</artifactId>
136 <scope>provided</scope>
137 </dependency>
raviteja.karumuri10948b62024-04-30 22:15:58 +0100138 <dependency>
139 <groupId>org.mapstruct</groupId>
140 <artifactId>mapstruct</artifactId>
lapentafdaa142062024-08-20 14:24:11 +0100141 <version>${mapstruct.version}</version>
raviteja.karumuri10948b62024-04-30 22:15:58 +0100142 </dependency>
143 <dependency>
144 <groupId>org.mapstruct</groupId>
145 <artifactId>mapstruct-processor</artifactId>
lapentafdaa142062024-08-20 14:24:11 +0100146 <version>${mapstruct.version}</version>
raviteja.karumuri10948b62024-04-30 22:15:58 +0100147 </dependency>
RehanRaza0e3740a2020-08-03 15:56:03 +0200148 <!-- Actuator dependencies -->
149 <dependency>
150 <groupId>org.springframework.boot</groupId>
151 <artifactId>spring-boot-starter-actuator</artifactId>
elinuxhenrikfa658f62020-11-05 12:37:43 +0100152 <scope>runtime</scope>
RehanRaza0e3740a2020-08-03 15:56:03 +0200153 </dependency>
halil.cakal8eadcb62022-09-29 09:47:09 +0100154 <dependency>
155 <groupId>io.micrometer</groupId>
156 <artifactId>micrometer-registry-prometheus</artifactId>
157 </dependency>
158 <dependency>
159 <groupId>org.springframework.boot</groupId>
160 <artifactId>spring-boot-starter-aop</artifactId>
161 </dependency>
PatrikBuhre3693cf2022-10-14 11:38:22 +0200162 <dependency>
163 <groupId>software.amazon.awssdk</groupId>
164 <artifactId>s3</artifactId>
165 <version>${software.amazon.awssdk.version}</version>
166 </dependency>
elinuxhenrikfa658f62020-11-05 12:37:43 +0100167 <!-- For development help -->
168 <dependency>
169 <groupId>org.springframework.boot</groupId>
170 <artifactId>spring-boot-devtools</artifactId>
171 <optional>true</optional>
172 <scope>runtime</scope>
173 </dependency>
174 <dependency>
175 <groupId>org.springframework.boot</groupId>
176 <artifactId>spring-boot-configuration-processor</artifactId>
177 <optional>true</optional>
178 <scope>runtime</scope>
RehanRaza0e3740a2020-08-03 15:56:03 +0200179 </dependency>
elinuxhenrikfa658f62020-11-05 12:37:43 +0100180 <dependency>
181 <groupId>org.springframework.boot</groupId>
RehanRaza0e3740a2020-08-03 15:56:03 +0200182 <artifactId>spring-boot-starter-test</artifactId>
183 <scope>test</scope>
184 </dependency>
185 <dependency>
186 <groupId>org.awaitility</groupId>
187 <artifactId>awaitility</artifactId>
188 <scope>test</scope>
189 </dependency>
190 <dependency>
191 <groupId>io.projectreactor</groupId>
192 <artifactId>reactor-test</artifactId>
193 <scope>test</scope>
194 </dependency>
195 <dependency>
196 <groupId>org.junit.jupiter</groupId>
197 <artifactId>junit-jupiter-engine</artifactId>
198 <scope>test</scope>
199 </dependency>
200 <dependency>
201 <groupId>org.mockito</groupId>
202 <artifactId>mockito-junit-jupiter</artifactId>
203 <scope>test</scope>
204 </dependency>
205 <dependency>
206 <groupId>org.mockito</groupId>
207 <artifactId>mockito-core</artifactId>
208 <scope>test</scope>
209 </dependency>
210 <dependency>
211 <groupId>com.squareup.okhttp3</groupId>
212 <artifactId>mockwebserver</artifactId>
213 <scope>test</scope>
214 </dependency>
elinuxhenrik50b658d2020-11-11 14:11:37 +0100215 <dependency>
216 <groupId>commons-io</groupId>
217 <artifactId>commons-io</artifactId>
218 <version>${commons-io.version}</version>
219 <scope>test</scope>
220 </dependency>
PatrikBuhrd279ef72021-09-21 14:47:59 +0200221 <dependency>
222 <groupId>com.github.erosb</groupId>
223 <artifactId>everit-json-schema</artifactId>
lapentafdaa142062024-08-20 14:24:11 +0100224 <version>1.14.4</version>
PatrikBuhrd279ef72021-09-21 14:47:59 +0200225 </dependency>
lapentafdf734a402024-05-30 15:47:34 +0100226 <!-- For Tracing -->
227 <dependency>
228 <groupId>io.micrometer</groupId>
229 <artifactId>micrometer-tracing-bridge-otel</artifactId>
230 </dependency>
231 <dependency>
232 <groupId>io.opentelemetry</groupId>
lapentafdf734a402024-05-30 15:47:34 +0100233 <artifactId>opentelemetry-sdk-extension-jaeger-remote-sampler</artifactId>
234 </dependency>
235 <dependency>
lapentafdf734a402024-05-30 15:47:34 +0100236 <groupId>io.opentelemetry.instrumentation</groupId>
237 <artifactId>opentelemetry-spring-webflux-5.3</artifactId>
238 </dependency>
239 <dependency>
lapentafdad800652024-06-24 10:54:54 +0100240 <groupId>io.opentelemetry.instrumentation</groupId>
241 <artifactId>opentelemetry-spring-boot-starter</artifactId>
lapentafdf734a402024-05-30 15:47:34 +0100242 </dependency>
243 <!-- For ObservationRegistryCustomizer -->
244 <dependency>
245 <groupId>org.springframework.boot</groupId>
246 <artifactId>spring-boot-actuator-autoconfigure</artifactId>
lapentafdf734a402024-05-30 15:47:34 +0100247 </dependency>
RehanRaza0e3740a2020-08-03 15:56:03 +0200248 </dependencies>
lapentafdf734a402024-05-30 15:47:34 +0100249 <dependencyManagement>
250 <dependencies>
251 <dependency>
252 <groupId>io.opentelemetry</groupId>
253 <artifactId>opentelemetry-bom</artifactId>
lapentafdaa142062024-08-20 14:24:11 +0100254 <version>1.41.0</version>
lapentafdf734a402024-05-30 15:47:34 +0100255 <type>pom</type>
256 <scope>import</scope>
257 </dependency>
258 <dependency>
259 <groupId>io.opentelemetry.instrumentation</groupId>
260 <artifactId>opentelemetry-instrumentation-bom-alpha</artifactId>
lapentafdaa142062024-08-20 14:24:11 +0100261 <version>2.7.0-alpha</version>
lapentafdf734a402024-05-30 15:47:34 +0100262 <type>pom</type>
263 <scope>import</scope>
264 </dependency>
265 </dependencies>
266 </dependencyManagement>
RehanRaza0e3740a2020-08-03 15:56:03 +0200267 <build>
268 <plugins>
269 <plugin>
Dan Timoneybf5e4cd2022-12-01 17:02:22 -0500270 <groupId>org.codehaus.gmaven</groupId>
271 <artifactId>groovy-maven-plugin</artifactId>
raviteja.karumuria4687d92023-09-14 12:38:49 +0100272 <version>2.1.1</version>
Dan Timoneyefdb5b02020-11-02 11:00:33 -0500273 <executions>
274 <execution>
275 <phase>validate</phase>
276 <goals>
277 <goal>execute</goal>
278 </goals>
279 <configuration>
280 <source>${basedir}/TagVersion.groovy</source>
281 </configuration>
282 </execution>
283 </executions>
284 </plugin>
285 <plugin>
RehanRaza0e3740a2020-08-03 15:56:03 +0200286 <groupId>org.springframework.boot</groupId>
287 <artifactId>spring-boot-maven-plugin</artifactId>
288 </plugin>
Singal, Kapil (ks220y)7788a0b2020-09-03 16:24:57 -0400289 <plugin>
RehanRaza0e3740a2020-08-03 15:56:03 +0200290 <groupId>net.revelc.code.formatter</groupId>
291 <artifactId>formatter-maven-plugin</artifactId>
292 <version>${formatter-maven-plugin.version}</version>
293 <configuration>
Singal, Kapil (ks220y)7788a0b2020-09-03 16:24:57 -0400294 <lineEnding>LF</lineEnding>
RehanRaza0e3740a2020-08-03 15:56:03 +0200295 <configFile>${project.basedir}/eclipse-formatter.xml</configFile>
296 </configuration>
297 <!-- https://code.revelc.net/formatter-maven-plugin/ use mvn formatter:format
298 spotless:apply process-sources -->
299 </plugin>
300 <plugin>
301 <groupId>com.diffplug.spotless</groupId>
302 <artifactId>spotless-maven-plugin</artifactId>
303 <version>${spotless-maven-plugin.version}</version>
304 <configuration>
Singal, Kapil (ks220y)7788a0b2020-09-03 16:24:57 -0400305 <lineEndings>UNIX</lineEndings>
RehanRaza0e3740a2020-08-03 15:56:03 +0200306 <java>
Dan Timoney42477eb2023-08-10 17:05:46 -0400307 <removeUnusedImports/>
RehanRaza0e3740a2020-08-03 15:56:03 +0200308 <importOrder>
PatrikBuhr44499d02023-04-04 10:06:22 +0200309 <order>com,io,java,lombok,javax,org,reactor</order>
RehanRaza0e3740a2020-08-03 15:56:03 +0200310 </importOrder>
311 </java>
312 </configuration>
313 <!-- https://github.com/diffplug/spotless/tree/master/plugin-maven use
314 mvn spotless:apply to rewrite source files use mvn spotless:check to validate
315 source files -->
316 </plugin>
317 <plugin>
318 <groupId>org.apache.maven.plugins</groupId>
319 <artifactId>maven-surefire-plugin</artifactId>
elinuxhenrik9c3a6bd2020-08-26 14:04:17 +0200320 <version>${surefire-maven-plugin.version}</version>
RehanRaza0e3740a2020-08-03 15:56:03 +0200321 <configuration>
JohnKeeneye251d0c2023-02-20 18:00:44 +0000322 <skipTests>${allowskiptests}</skipTests>
Dan Timoney42477eb2023-08-10 17:05:46 -0400323 <statelessTestsetReporter implementation="org.apache.maven.plugin.surefire.extensions.junit5.JUnit5Xml30StatelessReporter">
halil.cakal40ce8292023-02-02 12:25:13 +0000324 <usePhrasedFileName>false</usePhrasedFileName>
325 <usePhrasedTestSuiteClassName>true</usePhrasedTestSuiteClassName>
326 <usePhrasedTestCaseClassName>true</usePhrasedTestCaseClassName>
327 <usePhrasedTestCaseMethodName>true</usePhrasedTestCaseMethodName>
328 </statelessTestsetReporter>
Dan Timoney42477eb2023-08-10 17:05:46 -0400329 <consoleOutputReporter implementation="org.apache.maven.plugin.surefire.extensions.junit5.JUnit5ConsoleOutputReporter">
halil.cakal40ce8292023-02-02 12:25:13 +0000330 <usePhrasedFileName>false</usePhrasedFileName>
331 </consoleOutputReporter>
Dan Timoney42477eb2023-08-10 17:05:46 -0400332 <statelessTestsetInfoReporter implementation="org.apache.maven.plugin.surefire.extensions.junit5.JUnit5StatelessTestsetInfoReporter">
halil.cakal40ce8292023-02-02 12:25:13 +0000333 <usePhrasedFileName>false</usePhrasedFileName>
334 <usePhrasedClassNameInRunning>true</usePhrasedClassNameInRunning>
335 <usePhrasedClassNameInTestCaseSummary>true</usePhrasedClassNameInTestCaseSummary>
336 </statelessTestsetInfoReporter>
RehanRaza0e3740a2020-08-03 15:56:03 +0200337 </configuration>
338 </plugin>
339 <plugin>
RehanRaza0e3740a2020-08-03 15:56:03 +0200340 <groupId>org.codehaus.mojo</groupId>
341 <artifactId>build-helper-maven-plugin</artifactId>
342 <executions>
343 <execution>
344 <id>add-source</id>
345 <phase>generate-sources</phase>
346 <goals>
347 <goal>add-source</goal>
348 </goals>
349 <configuration>
350 <sources>
351 <source>${project.build.directory}/generated-sources/annotations/</source>
352 </sources>
353 </configuration>
354 </execution>
355 </executions>
356 </plugin>
357 <plugin>
358 <groupId>org.jacoco</groupId>
359 <artifactId>jacoco-maven-plugin</artifactId>
360 <version>${jacoco-maven-plugin.version}</version>
361 <executions>
362 <execution>
363 <id>default-prepare-agent</id>
364 <goals>
365 <goal>prepare-agent</goal>
366 </goals>
367 </execution>
368 <execution>
369 <id>default-report</id>
370 <phase>prepare-package</phase>
371 <goals>
372 <goal>report</goal>
373 </goals>
374 </execution>
375 </executions>
376 </plugin>
377 <plugin>
raviteja.karumuria4687d92023-09-14 12:38:49 +0100378 <groupId>io.swagger.codegen.v3</groupId>
379 <artifactId>swagger-codegen-maven-plugin</artifactId>
380 <version>3.0.46</version>
381 <executions>
382 <execution>
383 <id>generate-openapi-json</id>
384 <phase>prepare-package</phase>
385 <goals>
386 <goal>generate</goal>
387 </goals>
388 <configuration>
389 <inputSpec>${project.basedir}/api/pms-api.yaml</inputSpec>
390 <language>openapi</language>
391 <output>${project.basedir}/api</output>
392 <configOptions>
393 <outputFile>pms-api.json</outputFile>
394 </configOptions>
395 </configuration>
396 </execution>
397 </executions>
398 </plugin>
399 <plugin>
halil.cakalb4ed3332023-01-20 12:14:08 +0000400 <groupId>org.openapitools</groupId>
401 <artifactId>openapi-generator-maven-plugin</artifactId>
raviteja.karumuria4687d92023-09-14 12:38:49 +0100402 <version>6.6.0</version>
elinuxhenrikf28594d2020-12-07 14:54:19 +0100403 <executions>
404 <execution>
JohnKeeneye251d0c2023-02-20 18:00:44 +0000405 <id>generate-openapi-html</id>
406 <phase>prepare-package</phase>
elinuxhenrikf28594d2020-12-07 14:54:19 +0100407 <goals>
408 <goal>generate</goal>
409 </goals>
410 <configuration>
411 <inputSpec>${project.basedir}/api/pms-api.json</inputSpec>
halil.cakalb4ed3332023-01-20 12:14:08 +0000412 <generatorName>html2</generatorName>
JohnKeeneye251d0c2023-02-20 18:00:44 +0000413 <output>${project.basedir}/api/pms-api</output>
halil.cakalb4ed3332023-01-20 12:14:08 +0000414 <skipOperationExample>false</skipOperationExample>
415 <strictSpec>false</strictSpec>
elinuxhenrikf28594d2020-12-07 14:54:19 +0100416 <configOptions>
PatrikBuhr44499d02023-04-04 10:06:22 +0200417 <appDescription>The O-RAN Non-RT RIC Policy Management Service
418 provides a REST API for managing O-RAN A1 Policies.</appDescription>
halil.cakalb4ed3332023-01-20 12:14:08 +0000419 <appName>ONAP CCSDK A1 Policy Management Service</appName>
420 <infoUrl>https://wiki.onap.org/display/DW/O-RAN+A1+Policies+in+ONAP</infoUrl>
PatrikBuhr44499d02023-04-04 10:06:22 +0200421 <licenseInfo>Copyright (C) 2020-2023 Nordix Foundation. Licensed
raviteja.karumuri3e02f632024-01-17 15:50:10 +0000422 under the Apache License, and Copyright (C) 2024 OpenInfra Foundation Europe. All rights reserved.</licenseInfo>
halil.cakalb4ed3332023-01-20 12:14:08 +0000423 <licenseUrl>http://www.apache.org/licenses/LICENSE-2.0</licenseUrl>
JohnKeeneye251d0c2023-02-20 18:00:44 +0000424 </configOptions>
425 </configuration>
426 </execution>
427 <execution>
raviteja.karumuria4687d92023-09-14 12:38:49 +0100428 <id>generate-policy-api</id>
429 <phase>generate-sources </phase>
JohnKeeneye251d0c2023-02-20 18:00:44 +0000430 <goals>
431 <goal>generate</goal>
432 </goals>
433 <configuration>
raviteja.karumuria4687d92023-09-14 12:38:49 +0100434 <inputSpec>${project.basedir}/api/pms-api.yaml</inputSpec>
435 <invokerPackage>${project.groupId}.a1policymanagementservice.controllers.v2</invokerPackage>
436 <apiPackage>${project.groupId}.a1policymanagementservice.controllers.api.v2</apiPackage>
437 <modelPackage>${project.groupId}.a1policymanagementservice.models.v2</modelPackage>
438 <generateApiTests>false</generateApiTests>
439 <generateModelTests>false</generateModelTests>
440 <generatorName>spring</generatorName>
441 <generateSupportingFiles>false</generateSupportingFiles>
442 <skipValidateSpec>false</skipValidateSpec>
443 <library>spring-boot</library>
JohnKeeneye251d0c2023-02-20 18:00:44 +0000444 <configOptions>
raviteja.karumuria4687d92023-09-14 12:38:49 +0100445 <sourceFolder>src/gen/java</sourceFolder>
446 <interfaceOnly>true</interfaceOnly>
447 <useTags>true</useTags>
448 <reactive>true</reactive>
449 <dateLibrary>java8</dateLibrary>
450 <java8>true</java8>
451 <unhandledException>true</unhandledException>
452 <openApiNullable>false</openApiNullable>
453 <skipDefaultInterface>true</skipDefaultInterface>
elinuxhenrikf28594d2020-12-07 14:54:19 +0100454 </configOptions>
455 </configuration>
456 </execution>
raviteja.karumuri6de5c032024-03-22 11:55:58 +0000457 <execution>
458 <id>generate-policy-api-v3</id>
459 <phase>generate-sources </phase>
460 <goals>
461 <goal>generate</goal>
462 </goals>
463 <configuration>
464 <inputSpec>${project.basedir}/api/pms-api-v3.yaml</inputSpec>
465 <invokerPackage>${project.groupId}.a1policymanagementservice.controllers.v3</invokerPackage>
466 <apiPackage>${project.groupId}.a1policymanagementservice.controllers.api.v3</apiPackage>
467 <modelPackage>${project.groupId}.a1policymanagementservice.models.v3</modelPackage>
468 <generateApiTests>false</generateApiTests>
469 <generateModelTests>false</generateModelTests>
470 <generatorName>spring</generatorName>
471 <generateSupportingFiles>false</generateSupportingFiles>
472 <skipValidateSpec>false</skipValidateSpec>
473 <library>spring-boot</library>
474 <configOptions>
475 <sourceFolder>src/gen/java</sourceFolder>
476 <interfaceOnly>true</interfaceOnly>
477 <useTags>true</useTags>
478 <reactive>true</reactive>
479 <dateLibrary>java8</dateLibrary>
480 <java8>true</java8>
481 <unhandledException>true</unhandledException>
482 <openApiNullable>false</openApiNullable>
483 <skipDefaultInterface>true</skipDefaultInterface>
484 </configOptions>
485 </configuration>
486 </execution>
elinuxhenrikf28594d2020-12-07 14:54:19 +0100487 </executions>
488 </plugin>
489 <plugin>
PatrikBuhr1122b012021-01-20 12:21:52 +0100490 <artifactId>maven-resources-plugin</artifactId>
491 <executions>
492 <execution>
JohnKeeneye251d0c2023-02-20 18:00:44 +0000493 <id>copy-resource-openapi</id>
494 <phase>package</phase>
PatrikBuhr1122b012021-01-20 12:21:52 +0100495 <goals>
496 <goal>copy-resources</goal>
497 </goals>
498 <configuration>
499 <outputDirectory>${project.basedir}/../docs/offeredapis/swagger</outputDirectory>
raviteja.karumuri3e02f632024-01-17 15:50:10 +0000500 <overwrite>true</overwrite>
PatrikBuhr1122b012021-01-20 12:21:52 +0100501 <resources>
502 <resource>
503 <directory>${project.basedir}/api</directory>
504 <includes>
JohnKeeneye251d0c2023-02-20 18:00:44 +0000505 <include>pms-api.json</include>
506 <include>pms-api.yaml</include>
507 </includes>
508 </resource>
509 </resources>
510 </configuration>
511 </execution>
512 <execution>
513 <id>copy-resource-openapi-html</id>
514 <phase>package</phase>
515 <goals>
516 <goal>copy-resources</goal>
517 </goals>
518 <configuration>
519 <verbose>true</verbose>
PatrikBuhr44499d02023-04-04 10:06:22 +0200520 <outputDirectory>
521 ${project.basedir}/../docs/offeredapis/openapitoolgen/offeredapis/pms-api</outputDirectory>
JohnKeeneye251d0c2023-02-20 18:00:44 +0000522 <resources>
523 <resource>
524 <directory>${project.basedir}/api/pms-api</directory>
525 <includes>
halil.cakalb4ed3332023-01-20 12:14:08 +0000526 <include>index.html</include>
PatrikBuhr1122b012021-01-20 12:21:52 +0100527 </includes>
528 </resource>
529 </resources>
530 </configuration>
531 </execution>
532 </executions>
533 </plugin>
534 <plugin>
RehanRaza0e3740a2020-08-03 15:56:03 +0200535 <groupId>io.fabric8</groupId>
536 <artifactId>docker-maven-plugin</artifactId>
537 <version>${docker-maven-plugin}</version>
538 <inherited>false</inherited>
539 <executions>
540 <execution>
541 <id>generate-policy-management-service-image</id>
542 <phase>package</phase>
543 <goals>
544 <goal>build</goal>
545 </goals>
546 <configuration>
547 <images>
548 <image>
PatrikBuhr44499d02023-04-04 10:06:22 +0200549 <name>
550 onap/ccsdk-oran-a1policymanagementservice:${project.version}</name>
RehanRaza0e3740a2020-08-03 15:56:03 +0200551 <build>
552 <cleanup>try</cleanup>
553 <contextDir>${basedir}</contextDir>
554 <dockerFile>Dockerfile</dockerFile>
555 <args>
556 <JAR>${project.build.finalName}.jar</JAR>
557 </args>
558 <tags>
559 <tag>${project.version}</tag>
560 </tags>
561 </build>
562 </image>
563 </images>
564 </configuration>
565 </execution>
566 <execution>
567 <id>push-policy-management-service-image</id>
568 <goals>
569 <goal>build</goal>
570 <goal>push</goal>
571 </goals>
572 <configuration>
573 <images>
574 <image>
PatrikBuhr44499d02023-04-04 10:06:22 +0200575 <name>
576 onap/ccsdk-oran-a1policymanagementservice:${project.version}</name>
RehanRaza0e3740a2020-08-03 15:56:03 +0200577 <build>
578 <contextDir>${basedir}</contextDir>
579 <dockerFile>Dockerfile</dockerFile>
580 <args>
581 <JAR>${project.build.finalName}.jar</JAR>
582 </args>
583 <tags>
Dan Timoneyefdb5b02020-11-02 11:00:33 -0500584 <tag>${project.docker.latestminortag.version}</tag>
585 <tag>${project.docker.latestfulltag.version}</tag>
586 <tag>${project.docker.latesttagtimestamp.version}</tag>
RehanRaza0e3740a2020-08-03 15:56:03 +0200587 </tags>
588 </build>
589 </image>
590 </images>
591 </configuration>
592 </execution>
593 </executions>
594 </plugin>
595 </plugins>
596 </build>
halil.cakal40ce8292023-02-02 12:25:13 +0000597 <reporting>
598 <plugins>
599 <plugin>
600 <groupId>org.apache.maven.plugins</groupId>
601 <artifactId>maven-surefire-report-plugin</artifactId>
602 <version>${surefire-report-plugin.version}</version>
603 </plugin>
604 </plugins>
605 </reporting>
nitincg3c7a3242023-06-16 23:38:08 +0530606</project>