blob: cbbbdbe60f27e1703f646b4ec1d7b3332cd57f24 [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 ~ ================================================================================
6 ~ Copyright (C) 2020 Nordix Foundation. All rights reserved.
7 ~ ================================================================================
8 ~ Licensed under the Apache License, Version 2.0 (the "License");
9 ~ you may not use this file except in compliance with the License.
10 ~ You may obtain a copy of the License at
11 ~
12 ~ http://www.apache.org/licenses/LICENSE-2.0
13 ~
14 ~ Unless required by applicable law or agreed to in writing, software
15 ~ distributed under the License is distributed on an "AS IS" BASIS,
16 ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17 ~ See the License for the specific language governing permissions and
18 ~ limitations under the License.
19 ~ ============LICENSE_END=======================================================
20 ~
21-->
22<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">
23 <modelVersion>4.0.0</modelVersion>
elinuxhenrike5b384a2020-07-22 16:41:17 +020024 <parent>
25 <groupId>org.onap.ccsdk.parent</groupId>
JohnKeeneyf5f34a52022-04-29 18:07:46 +010026 <artifactId>spring-boot-26-starter-parent</artifactId>
Dan Timoney4242d5b2023-01-04 07:50:57 -050027 <version>2.5.1</version>
Dan Timoney8a70f002021-08-31 10:40:07 -040028 <relativePath/>
elinuxhenrike5b384a2020-07-22 16:41:17 +020029 </parent>
elinuxhenrike5b384a2020-07-22 16:41:17 +020030 <groupId>org.onap.ccsdk.oran</groupId>
31 <artifactId>a1-policy-management-service</artifactId>
Timoney, Dan (dt5972)883ecc22022-10-20 15:31:38 -040032 <version>1.5.0-SNAPSHOT</version>
Lathisha682c322020-07-30 15:52:12 +010033 <name>ccsdk-oran :: ${project.artifactId}</name>
RehanRaza0e3740a2020-08-03 15:56:03 +020034 <properties>
35 <java.version.source>11</java.version.source>
36 <java.version.target>11</java.version.target>
RehanRazab369f782021-01-29 13:26:00 +010037 <springfox.version>3.0.0</springfox.version>
PatrikBuhraee11102023-01-16 15:27:10 +010038 <gson.version>2.10.1</gson.version>
39 <json.version>20220924</json.version>
elinuxhenrikfa658f62020-11-05 12:37:43 +010040 <formatter-maven-plugin.version>2.13.0</formatter-maven-plugin.version>
41 <spotless-maven-plugin.version>2.5.0</spotless-maven-plugin.version>
PatrikBuhrc6cca202022-01-04 17:10:12 +010042 <commons-io.version>2.11.0</commons-io.version>
JohnKeeneyc9778a72022-11-01 18:49:15 +000043 <guava.version>31.0.1-jre</guava.version>
elinuxhenrikc4d1f8a2020-08-24 13:30:10 +020044 <docker-maven-plugin>0.30.0</docker-maven-plugin>
PatrikBuhr1122b012021-01-20 12:21:52 +010045 <surefire-maven-plugin.version>3.0.0-M5</surefire-maven-plugin.version>
elinuxhenrikfa658f62020-11-05 12:37:43 +010046 <jacoco-maven-plugin.version>0.8.6</jacoco-maven-plugin.version>
elinuxhenrikf28594d2020-12-07 14:54:19 +010047 <swagger-codegen-maven-plugin.version>3.0.11</swagger-codegen-maven-plugin.version>
RehanRaza0e3740a2020-08-03 15:56:03 +020048 <exec.skip>true</exec.skip>
Dan Timoneyefdb5b02020-11-02 11:00:33 -050049 <ccsdk.project.version>${project.version}</ccsdk.project.version>
PatrikBuhraee11102023-01-16 15:27:10 +010050 <software.amazon.awssdk.version>2.19.17</software.amazon.awssdk.version>
RehanRaza0e3740a2020-08-03 15:56:03 +020051 </properties>
52 <dependencies>
53 <dependency>
54 <groupId>org.springframework.boot</groupId>
elinuxhenrikfa658f62020-11-05 12:37:43 +010055 <artifactId>spring-boot</artifactId>
56 </dependency>
57 <dependency>
58 <groupId>org.springframework</groupId>
59 <artifactId>spring-beans</artifactId>
60 </dependency>
61 <dependency>
62 <groupId>org.springframework</groupId>
63 <artifactId>spring-context</artifactId>
RehanRaza0e3740a2020-08-03 15:56:03 +020064 </dependency>
65 <dependency>
66 <groupId>org.springframework.boot</groupId>
elinuxhenrikfa658f62020-11-05 12:37:43 +010067 <artifactId>spring-boot-autoconfigure</artifactId>
RehanRaza0e3740a2020-08-03 15:56:03 +020068 </dependency>
69 <dependency>
elinuxhenrikfa658f62020-11-05 12:37:43 +010070 <groupId>org.springframework</groupId>
71 <artifactId>spring-web</artifactId>
RehanRaza0e3740a2020-08-03 15:56:03 +020072 </dependency>
73 <dependency>
elinuxhenrikfa658f62020-11-05 12:37:43 +010074 <groupId>org.springframework</groupId>
75 <artifactId>spring-webmvc</artifactId>
RehanRaza0e3740a2020-08-03 15:56:03 +020076 </dependency>
77 <dependency>
PatrikBuhr0f8b2052021-12-20 13:40:14 +010078 <groupId>org.springframework.boot</groupId>
79 <artifactId>spring-boot-starter-webflux</artifactId>
80 </dependency>
81 <dependency>
RehanRaza0e3740a2020-08-03 15:56:03 +020082 <groupId>org.springframework</groupId>
83 <artifactId>spring-webflux</artifactId>
84 </dependency>
85 <dependency>
elinuxhenrikfa658f62020-11-05 12:37:43 +010086 <groupId>io.springfox</groupId>
87 <artifactId>springfox-spring-web</artifactId>
88 <version>${springfox.version}</version>
RehanRaza0e3740a2020-08-03 15:56:03 +020089 </dependency>
90 <dependency>
elinuxhenrikfa658f62020-11-05 12:37:43 +010091 <groupId>io.springfox</groupId>
92 <artifactId>springfox-spi</artifactId>
93 <version>${springfox.version}</version>
RehanRaza0e3740a2020-08-03 15:56:03 +020094 </dependency>
95 <dependency>
elinuxhenrikfa658f62020-11-05 12:37:43 +010096 <groupId>io.springfox</groupId>
97 <artifactId>springfox-core</artifactId>
98 <version>${springfox.version}</version>
99 </dependency>
100 <dependency>
101 <groupId>org.aspectj</groupId>
102 <artifactId>aspectjweaver</artifactId>
103 </dependency>
104 <dependency>
elinuxhenrikfa658f62020-11-05 12:37:43 +0100105 <groupId>org.apache.tomcat.embed</groupId>
106 <artifactId>tomcat-embed-core</artifactId>
107 </dependency>
108 <dependency>
elinuxhenrikfa658f62020-11-05 12:37:43 +0100109 <groupId>com.google.guava</groupId>
110 <artifactId>guava</artifactId>
JohnKeeneyc9778a72022-11-01 18:49:15 +0000111 <version>${guava.version}</version>
RehanRaza0e3740a2020-08-03 15:56:03 +0200112 </dependency>
113 <dependency>
PatrikBuhr3f3a4d72022-05-30 14:22:46 +0200114 <groupId>com.google.code.gson</groupId>
RehanRaza0e3740a2020-08-03 15:56:03 +0200115 <artifactId>gson</artifactId>
PatrikBuhr3f3a4d72022-05-30 14:22:46 +0200116 <version>${gson.version}</version>
RehanRaza0e3740a2020-08-03 15:56:03 +0200117 </dependency>
118 <dependency>
119 <groupId>org.json</groupId>
120 <artifactId>json</artifactId>
121 <version>${json.version}</version>
122 </dependency>
123 <dependency>
RehanRaza0e3740a2020-08-03 15:56:03 +0200124 <groupId>org.projectlombok</groupId>
125 <artifactId>lombok</artifactId>
126 <scope>provided</scope>
127 </dependency>
RehanRaza0e3740a2020-08-03 15:56:03 +0200128 <!-- Actuator dependencies -->
129 <dependency>
130 <groupId>org.springframework.boot</groupId>
131 <artifactId>spring-boot-starter-actuator</artifactId>
elinuxhenrikfa658f62020-11-05 12:37:43 +0100132 <scope>runtime</scope>
RehanRaza0e3740a2020-08-03 15:56:03 +0200133 </dependency>
halil.cakal8eadcb62022-09-29 09:47:09 +0100134 <dependency>
135 <groupId>io.micrometer</groupId>
136 <artifactId>micrometer-registry-prometheus</artifactId>
137 </dependency>
138 <dependency>
139 <groupId>org.springframework.boot</groupId>
140 <artifactId>spring-boot-starter-aop</artifactId>
141 </dependency>
PatrikBuhre3693cf2022-10-14 11:38:22 +0200142 <dependency>
143 <groupId>software.amazon.awssdk</groupId>
144 <artifactId>s3</artifactId>
145 <version>${software.amazon.awssdk.version}</version>
146 </dependency>
RehanRaza0e3740a2020-08-03 15:56:03 +0200147 <!--REQUIRED TO GENERATE DOCUMENTATION -->
148 <dependency>
149 <groupId>io.springfox</groupId>
150 <artifactId>springfox-swagger2</artifactId>
151 <version>${springfox.version}</version>
152 </dependency>
153 <dependency>
154 <groupId>io.springfox</groupId>
155 <artifactId>springfox-swagger-ui</artifactId>
156 <version>${springfox.version}</version>
elinuxhenrikfa658f62020-11-05 12:37:43 +0100157 <scope>runtime</scope>
158 </dependency>
159 <!-- For development help -->
160 <dependency>
161 <groupId>org.springframework.boot</groupId>
162 <artifactId>spring-boot-devtools</artifactId>
163 <optional>true</optional>
164 <scope>runtime</scope>
165 </dependency>
166 <dependency>
167 <groupId>org.springframework.boot</groupId>
168 <artifactId>spring-boot-configuration-processor</artifactId>
169 <optional>true</optional>
170 <scope>runtime</scope>
RehanRaza0e3740a2020-08-03 15:56:03 +0200171 </dependency>
Singal, Kapil (ks220y)7788a0b2020-09-03 16:24:57 -0400172 <!-- TEST -->
RehanRaza0e3740a2020-08-03 15:56:03 +0200173 <dependency>
PatrikBuhr4faa67e2022-07-06 11:57:20 +0200174 <groupId>org.springdoc</groupId>
175 <artifactId>springdoc-openapi-ui</artifactId>
176 <version>1.6.6</version>
177 <scope>test</scope>
178 </dependency>
179 <dependency>
RehanRaza0e3740a2020-08-03 15:56:03 +0200180 <groupId>org.springframework.boot</groupId>
elinuxhenrikfa658f62020-11-05 12:37:43 +0100181 <artifactId>spring-boot-test</artifactId>
182 <scope>test</scope>
183 </dependency>
184 <dependency>
185 <groupId>org.springframework.boot</groupId>
RehanRaza0e3740a2020-08-03 15:56:03 +0200186 <artifactId>spring-boot-starter-test</artifactId>
187 <scope>test</scope>
188 </dependency>
189 <dependency>
190 <groupId>org.awaitility</groupId>
191 <artifactId>awaitility</artifactId>
192 <scope>test</scope>
193 </dependency>
194 <dependency>
195 <groupId>io.projectreactor</groupId>
196 <artifactId>reactor-test</artifactId>
197 <scope>test</scope>
198 </dependency>
199 <dependency>
200 <groupId>org.junit.jupiter</groupId>
201 <artifactId>junit-jupiter-engine</artifactId>
202 <scope>test</scope>
203 </dependency>
204 <dependency>
205 <groupId>org.mockito</groupId>
206 <artifactId>mockito-junit-jupiter</artifactId>
207 <scope>test</scope>
208 </dependency>
209 <dependency>
210 <groupId>org.mockito</groupId>
211 <artifactId>mockito-core</artifactId>
212 <scope>test</scope>
213 </dependency>
214 <dependency>
215 <groupId>com.squareup.okhttp3</groupId>
216 <artifactId>mockwebserver</artifactId>
217 <scope>test</scope>
218 </dependency>
elinuxhenrik50b658d2020-11-11 14:11:37 +0100219 <dependency>
220 <groupId>commons-io</groupId>
221 <artifactId>commons-io</artifactId>
222 <version>${commons-io.version}</version>
223 <scope>test</scope>
224 </dependency>
PatrikBuhrd279ef72021-09-21 14:47:59 +0200225 <dependency>
226 <groupId>com.github.erosb</groupId>
227 <artifactId>everit-json-schema</artifactId>
PatrikBuhr62c25962022-03-25 15:39:06 +0100228 <version>1.14.0</version>
PatrikBuhrd279ef72021-09-21 14:47:59 +0200229 </dependency>
RehanRaza0e3740a2020-08-03 15:56:03 +0200230 </dependencies>
231 <build>
232 <plugins>
233 <plugin>
Dan Timoneybf5e4cd2022-12-01 17:02:22 -0500234 <groupId>org.codehaus.gmaven</groupId>
235 <artifactId>groovy-maven-plugin</artifactId>
Dan Timoneyefdb5b02020-11-02 11:00:33 -0500236 <executions>
237 <execution>
238 <phase>validate</phase>
239 <goals>
240 <goal>execute</goal>
241 </goals>
242 <configuration>
243 <source>${basedir}/TagVersion.groovy</source>
244 </configuration>
245 </execution>
246 </executions>
247 </plugin>
248 <plugin>
RehanRaza0e3740a2020-08-03 15:56:03 +0200249 <groupId>org.springframework.boot</groupId>
250 <artifactId>spring-boot-maven-plugin</artifactId>
251 </plugin>
Singal, Kapil (ks220y)7788a0b2020-09-03 16:24:57 -0400252 <plugin>
RehanRaza0e3740a2020-08-03 15:56:03 +0200253 <groupId>net.revelc.code.formatter</groupId>
254 <artifactId>formatter-maven-plugin</artifactId>
255 <version>${formatter-maven-plugin.version}</version>
256 <configuration>
Singal, Kapil (ks220y)7788a0b2020-09-03 16:24:57 -0400257 <lineEnding>LF</lineEnding>
RehanRaza0e3740a2020-08-03 15:56:03 +0200258 <configFile>${project.basedir}/eclipse-formatter.xml</configFile>
259 </configuration>
260 <!-- https://code.revelc.net/formatter-maven-plugin/ use mvn formatter:format
261 spotless:apply process-sources -->
262 </plugin>
263 <plugin>
264 <groupId>com.diffplug.spotless</groupId>
265 <artifactId>spotless-maven-plugin</artifactId>
266 <version>${spotless-maven-plugin.version}</version>
267 <configuration>
Singal, Kapil (ks220y)7788a0b2020-09-03 16:24:57 -0400268 <lineEndings>UNIX</lineEndings>
RehanRaza0e3740a2020-08-03 15:56:03 +0200269 <java>
Singal, Kapil (ks220y)7788a0b2020-09-03 16:24:57 -0400270 <removeUnusedImports/>
RehanRaza0e3740a2020-08-03 15:56:03 +0200271 <importOrder>
272 <order>com,java,javax,org</order>
273 </importOrder>
274 </java>
275 </configuration>
276 <!-- https://github.com/diffplug/spotless/tree/master/plugin-maven use
277 mvn spotless:apply to rewrite source files use mvn spotless:check to validate
278 source files -->
279 </plugin>
280 <plugin>
281 <groupId>org.apache.maven.plugins</groupId>
282 <artifactId>maven-surefire-plugin</artifactId>
elinuxhenrik9c3a6bd2020-08-26 14:04:17 +0200283 <version>${surefire-maven-plugin.version}</version>
RehanRaza0e3740a2020-08-03 15:56:03 +0200284 <configuration>
285 <skipTests>false</skipTests>
286 </configuration>
287 </plugin>
288 <plugin>
289 <artifactId>maven-failsafe-plugin</artifactId>
290 </plugin>
291 <plugin>
292 <groupId>org.codehaus.mojo</groupId>
293 <artifactId>build-helper-maven-plugin</artifactId>
294 <executions>
295 <execution>
296 <id>add-source</id>
297 <phase>generate-sources</phase>
298 <goals>
299 <goal>add-source</goal>
300 </goals>
301 <configuration>
302 <sources>
303 <source>${project.build.directory}/generated-sources/annotations/</source>
304 </sources>
305 </configuration>
306 </execution>
307 </executions>
308 </plugin>
309 <plugin>
310 <groupId>org.jacoco</groupId>
311 <artifactId>jacoco-maven-plugin</artifactId>
312 <version>${jacoco-maven-plugin.version}</version>
313 <executions>
314 <execution>
315 <id>default-prepare-agent</id>
316 <goals>
317 <goal>prepare-agent</goal>
318 </goals>
319 </execution>
320 <execution>
321 <id>default-report</id>
322 <phase>prepare-package</phase>
323 <goals>
324 <goal>report</goal>
325 </goals>
326 </execution>
327 </executions>
328 </plugin>
329 <plugin>
halil.cakalb4ed3332023-01-20 12:14:08 +0000330 <groupId>org.openapitools</groupId>
331 <artifactId>openapi-generator-maven-plugin</artifactId>
332 <version>6.0.0</version>
elinuxhenrikf28594d2020-12-07 14:54:19 +0100333 <executions>
334 <execution>
halil.cakalb4ed3332023-01-20 12:14:08 +0000335 <id>html2</id>
elinuxhenrikf28594d2020-12-07 14:54:19 +0100336 <phase>test</phase>
337 <goals>
338 <goal>generate</goal>
339 </goals>
340 <configuration>
341 <inputSpec>${project.basedir}/api/pms-api.json</inputSpec>
halil.cakalb4ed3332023-01-20 12:14:08 +0000342 <generatorName>html2</generatorName>
343 <verbose>false</verbose>
elinuxhenrikf28594d2020-12-07 14:54:19 +0100344 <output>${project.basedir}/api</output>
halil.cakalb4ed3332023-01-20 12:14:08 +0000345 <skipOperationExample>false</skipOperationExample>
346 <strictSpec>false</strictSpec>
elinuxhenrikf28594d2020-12-07 14:54:19 +0100347 <configOptions>
halil.cakalb4ed3332023-01-20 12:14:08 +0000348 <appDescription>The O-RAN Non-RT RIC Policy Management Service provides a REST API for managing O-RAN A1 Policies.</appDescription>
349 <appName>ONAP CCSDK A1 Policy Management Service</appName>
350 <infoUrl>https://wiki.onap.org/display/DW/O-RAN+A1+Policies+in+ONAP</infoUrl>
351 <licenseInfo>Copyright (C) 2020-2022 Nordix Foundation. Licensed under the Apache License.</licenseInfo>
352 <licenseUrl>http://www.apache.org/licenses/LICENSE-2.0</licenseUrl>
elinuxhenrikf28594d2020-12-07 14:54:19 +0100353 <outputFile>pms-api.yaml</outputFile>
354 </configOptions>
355 </configuration>
356 </execution>
357 </executions>
358 </plugin>
359 <plugin>
PatrikBuhr1122b012021-01-20 12:21:52 +0100360 <artifactId>maven-resources-plugin</artifactId>
361 <executions>
362 <execution>
363 <id>copy-resource-one</id>
364 <phase>install</phase>
365 <goals>
366 <goal>copy-resources</goal>
367 </goals>
368 <configuration>
369 <outputDirectory>${project.basedir}/../docs/offeredapis/swagger</outputDirectory>
370 <resources>
371 <resource>
372 <directory>${project.basedir}/api</directory>
373 <includes>
374 <include>pms-api.*</include>
halil.cakalb4ed3332023-01-20 12:14:08 +0000375 <include>index.html</include>
PatrikBuhr1122b012021-01-20 12:21:52 +0100376 </includes>
377 </resource>
378 </resources>
379 </configuration>
380 </execution>
381 </executions>
382 </plugin>
383 <plugin>
RehanRaza0e3740a2020-08-03 15:56:03 +0200384 <groupId>io.fabric8</groupId>
385 <artifactId>docker-maven-plugin</artifactId>
386 <version>${docker-maven-plugin}</version>
387 <inherited>false</inherited>
388 <executions>
389 <execution>
390 <id>generate-policy-management-service-image</id>
391 <phase>package</phase>
392 <goals>
393 <goal>build</goal>
394 </goals>
395 <configuration>
396 <images>
397 <image>
398 <name>onap/ccsdk-oran-a1policymanagementservice:${project.version}</name>
399 <build>
400 <cleanup>try</cleanup>
401 <contextDir>${basedir}</contextDir>
402 <dockerFile>Dockerfile</dockerFile>
403 <args>
404 <JAR>${project.build.finalName}.jar</JAR>
405 </args>
406 <tags>
407 <tag>${project.version}</tag>
408 </tags>
409 </build>
410 </image>
411 </images>
412 </configuration>
413 </execution>
414 <execution>
415 <id>push-policy-management-service-image</id>
416 <goals>
417 <goal>build</goal>
418 <goal>push</goal>
419 </goals>
420 <configuration>
421 <images>
422 <image>
423 <name>onap/ccsdk-oran-a1policymanagementservice:${project.version}</name>
424 <build>
425 <contextDir>${basedir}</contextDir>
426 <dockerFile>Dockerfile</dockerFile>
427 <args>
428 <JAR>${project.build.finalName}.jar</JAR>
429 </args>
430 <tags>
Dan Timoneyefdb5b02020-11-02 11:00:33 -0500431 <tag>${project.docker.latestminortag.version}</tag>
432 <tag>${project.docker.latestfulltag.version}</tag>
433 <tag>${project.docker.latesttagtimestamp.version}</tag>
RehanRaza0e3740a2020-08-03 15:56:03 +0200434 </tags>
435 </build>
436 </image>
437 </images>
438 </configuration>
439 </execution>
440 </executions>
441 </plugin>
442 </plugins>
443 </build>
PatrikBuhraee11102023-01-16 15:27:10 +0100444</project>