1 <?xml version="1.0" encoding="UTF-8"?>
3 * ========================LICENSE_START=================================
6 * Copyright (C) 2019-2023: Nordix Foundation
7 * Copyright (C) 2023-2024: OpenInfra Foundation Europe
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
13 * http://www.apache.org/licenses/LICENSE-2.0
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===================================
23 xmlns="http://maven.apache.org/POM/4.0.0"
24 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
25 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
26 <modelVersion>4.0.0</modelVersion>
28 <groupId>org.springframework.boot</groupId>
29 <artifactId>spring-boot-starter-parent</artifactId>
30 <version>3.2.0</version>
33 <groupId>org.o-ran-sc.nonrtric.plt</groupId>
34 <artifactId>a1policymanagementservice</artifactId>
35 <version>2.8.0-SNAPSHOT</version>
38 <name>The Apache Software License, Version 2.0</name>
39 <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
44 <id>onap-releases</id>
45 <name>onap-releases</name>
46 <url>https://nexus.onap.org/content/repositories/releases/</url>
50 <java.version>17</java.version>
51 <json.version>20231013</json.version>
52 <maven-compiler-plugin.version>3.10.0</maven-compiler-plugin.version>
53 <formatter-maven-plugin.version>2.13.0</formatter-maven-plugin.version>
54 <spotless-maven-plugin.version>2.30.0</spotless-maven-plugin.version>
55 <docker-maven-plugin>0.43.0</docker-maven-plugin>
56 <sonar-maven-plugin.version>3.7.0.1746</sonar-maven-plugin.version>
57 <jacoco-maven-plugin.version>0.8.8</jacoco-maven-plugin.version>
58 <exec-maven-plugin.version>3.1.0</exec-maven-plugin.version>
59 <software.amazon.awssdk.version>2.19.17</software.amazon.awssdk.version>
60 <springdoc.version>2.0.2</springdoc.version>
61 <springdoc.openapi-ui.version>1.6.14</springdoc.openapi-ui.version>
62 <surefire-maven-plugin.version>3.0.0-M8</surefire-maven-plugin.version>
63 <surefire-report-plugin.version>3.0.0-M8</surefire-report-plugin.version>
67 <groupId>commons-io</groupId>
68 <artifactId>commons-io</artifactId>
69 <version>2.14.0</version>
72 <groupId>com.google.guava</groupId>
73 <artifactId>guava</artifactId>
74 <version>32.0.1-jre</version>
77 <groupId>org.springframework.boot</groupId>
78 <artifactId>spring-boot-starter-web</artifactId>
81 <groupId>org.springframework.boot</groupId>
82 <artifactId>spring-boot-starter-thymeleaf</artifactId>
85 <groupId>org.springframework.boot</groupId>
86 <artifactId>spring-boot-starter-webflux</artifactId>
89 <groupId>org.springframework.boot</groupId>
90 <artifactId>spring-boot-starter-aop</artifactId>
93 <groupId>org.springframework.boot</groupId>
94 <artifactId>spring-boot-devtools</artifactId>
95 <optional>true</optional>
98 <groupId>org.springframework.boot</groupId>
99 <artifactId>spring-boot-starter-validation</artifactId>
102 <groupId>org.springframework</groupId>
103 <artifactId>spring-webflux</artifactId>
106 <groupId>com.google.code.gson</groupId>
107 <artifactId>gson</artifactId>
110 <groupId>org.json</groupId>
111 <artifactId>json</artifactId>
112 <version>${json.version}</version>
115 <groupId>org.springframework.boot</groupId>
116 <artifactId>spring-boot-configuration-processor</artifactId>
117 <optional>true</optional>
120 <groupId>org.projectlombok</groupId>
121 <artifactId>lombok</artifactId>
122 <scope>provided</scope>
125 <groupId>org.glassfish.jersey.inject</groupId>
126 <artifactId>jersey-hk2</artifactId>
128 <!-- Actuator dependencies -->
130 <groupId>org.springframework.boot</groupId>
131 <artifactId>spring-boot-starter-actuator</artifactId>
134 TO GENERATE DOCUMENTATION -->
136 <groupId>org.springdoc</groupId>
137 <artifactId>springdoc-openapi-starter-webmvc-ui</artifactId>
138 <version>${springdoc.version}</version>
141 <groupId>org.springdoc</groupId>
142 <artifactId>springdoc-openapi-ui</artifactId>
143 <version>${springdoc.openapi-ui.version}</version>
147 <groupId>org.springframework.boot</groupId>
148 <artifactId>spring-boot-test</artifactId>
152 <groupId>org.springframework.boot</groupId>
153 <artifactId>spring-boot-starter-test</artifactId>
157 <groupId>org.awaitility</groupId>
158 <artifactId>awaitility</artifactId>
162 <groupId>io.projectreactor</groupId>
163 <artifactId>reactor-test</artifactId>
167 <groupId>org.junit.jupiter</groupId>
168 <artifactId>junit-jupiter-engine</artifactId>
172 <groupId>org.mockito</groupId>
173 <artifactId>mockito-junit-jupiter</artifactId>
177 <groupId>org.mockito</groupId>
178 <artifactId>mockito-core</artifactId>
182 <groupId>com.squareup.okhttp3</groupId>
183 <artifactId>mockwebserver</artifactId>
187 <groupId>com.github.erosb</groupId>
188 <artifactId>everit-json-schema</artifactId>
189 <version>1.14.1</version>
192 <groupId>software.amazon.awssdk</groupId>
193 <artifactId>s3</artifactId>
194 <version>${software.amazon.awssdk.version}</version>
197 <groupId>io.micrometer</groupId>
198 <artifactId>micrometer-registry-prometheus</artifactId>
204 <groupId>org.springframework.boot</groupId>
205 <artifactId>spring-boot-maven-plugin</artifactId>
208 <groupId>org.apache.maven.plugins</groupId>
209 <artifactId>maven-surefire-plugin</artifactId>
210 <version>${surefire-maven-plugin.version}</version>
212 <skipTests>false</skipTests>
216 <artifactId>maven-failsafe-plugin</artifactId>
219 <groupId>org.codehaus.mojo</groupId>
220 <artifactId>build-helper-maven-plugin</artifactId>
223 <id>add-additional-source-dirs</id>
224 <phase>generate-sources</phase>
226 <goal>add-source</goal>
230 <source>${project.build.directory}/generated-sources/annotations/</source>
231 <source>${project.basedir}/add-src/main/java</source>
232 <source>${project.basedir}/add-src/main/resources</source>
237 <id>add-additional-testsource-dirs</id>
238 <phase>generate-sources</phase>
240 <goal>add-test-source</goal>
244 <source>${project.basedir}/add-src/test/java</source>
245 <source>${project.basedir}/add-src/test/resources</source>
252 <groupId>org.jacoco</groupId>
253 <artifactId>jacoco-maven-plugin</artifactId>
254 <version>${jacoco-maven-plugin.version}</version>
257 <id>default-prepare-agent</id>
259 <goal>prepare-agent</goal>
263 <id>default-report</id>
264 <phase>prepare-package</phase>
272 <groupId>io.fabric8</groupId>
273 <artifactId>docker-maven-plugin</artifactId>
274 <version>${docker-maven-plugin}</version>
275 <inherited>false</inherited>
278 <id>generate-a1policymanagementservice-image</id>
279 <phase>package</phase>
284 <pullRegistry>${env.CONTAINER_PULL_REGISTRY}</pullRegistry>
288 o-ran-sc/nonrtric-plt-a1policymanagementservice:${project.version}</name>
290 <cleanup>try</cleanup>
291 <contextDir>${basedir}</contextDir>
292 <dockerFile>Dockerfile</dockerFile>
293 <filter>false</filter>
295 <JAR>${project.build.finalName}.jar</JAR>
298 <tag>${project.version}</tag>
306 <id>push-a1policymanagementservice-image</id>
312 <pullRegistry>${env.CONTAINER_PULL_REGISTRY}</pullRegistry>
313 <pushRegistry>${env.CONTAINER_PUSH_REGISTRY}</pushRegistry>
317 o-ran-sc/nonrtric-plt-a1policymanagementservice:${project.version}</name>
319 <contextDir>${basedir}</contextDir>
320 <dockerFile>Dockerfile</dockerFile>
321 <filter>false</filter>
323 <JAR>${project.build.finalName}.jar</JAR>
326 <tag>${project.version}</tag>
336 <!-- support sonar in multi-module project -->
338 <groupId>org.sonarsource.scanner.maven</groupId>
339 <artifactId>sonar-maven-plugin</artifactId>
340 <version>${sonar-maven-plugin.version}</version>
343 <groupId>org.codehaus.mojo</groupId>
344 <artifactId>exec-maven-plugin</artifactId>
345 <version>${exec-maven-plugin.version}</version>
348 <id>git submodule update</id>
349 <phase>initialize</phase>
351 <executable>git</executable>
353 <argument>submodule</argument>
354 <argument>update</argument>
355 <argument>--init</argument>
356 <argument>--recursive</argument>
364 <id>copy configuration</id>
365 <phase>initialize</phase>
367 <executable>cp</executable>
369 <argument>-r</argument>
370 <argument>onap/oran/a1-policy-management/config</argument>
371 <argument>.</argument>
383 <system>JIRA</system>
384 <url>https://jira.o-ran-sc.org/</url>
389 <groupId>org.apache.maven.plugins</groupId>
390 <artifactId>maven-surefire-report-plugin</artifactId>
391 <version>${surefire-report-plugin.version}</version>