1 <?xml version="1.0" encoding="UTF-8"?>
3 * ========================LICENSE_START=================================
6 * Copyright (C) 2023 Nordix Foundation. All rights reserved.
7 * Copyright (C) 2023 OpenInfra Foundation Europe. All rights reserved.
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>pmproducer</artifactId>
35 <version>1.2.0-SNAPSHOT</version>
36 <name>NONRTRIC RAN PM Producer</name>
37 <description>Filtering and distribution of PM data to rApps subscribers (O-RAN SC NONRTRIC)</description>
40 <name>The Apache Software License, Version 2.0</name>
41 <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
46 <id>onap-releases</id>
47 <name>onap-releases</name>
48 <url>https://nexus.onap.org/content/repositories/releases/</url>
52 <java.version>17</java.version>
53 <gson.version>2.9.0</gson.version>
54 <json.version>20230227</json.version>
55 <mockito.version>4.8.1</mockito.version>
56 <maven-compiler-plugin.version>3.8.0</maven-compiler-plugin.version>
57 <formatter-maven-plugin.version>2.12.2</formatter-maven-plugin.version>
58 <spotless-maven-plugin.version>1.24.3</spotless-maven-plugin.version>
59 <swagger-codegen-maven-plugin.version>3.0.11</swagger-codegen-maven-plugin.version>
60 <docker-maven-plugin>0.30.0</docker-maven-plugin>
61 <sonar-maven-plugin.version>3.7.0.1746</sonar-maven-plugin.version>
62 <jacoco-maven-plugin.version>0.8.10</jacoco-maven-plugin.version>
63 <springdoc.version>2.0.2</springdoc.version>
64 <springdoc.openapi-ui.version>1.6.14</springdoc.openapi-ui.version>
65 <exec.skip>true</exec.skip>
70 <groupId>org.springdoc</groupId>
71 <artifactId>springdoc-openapi-starter-webmvc-ui</artifactId>
72 <version>${springdoc.version}</version>
75 <groupId>org.springdoc</groupId>
76 <artifactId>springdoc-openapi-ui</artifactId>
77 <version>${springdoc.openapi-ui.version}</version>
80 <groupId>org.springframework.boot</groupId>
81 <artifactId>spring-boot-starter-web</artifactId>
84 <groupId>org.springframework.boot</groupId>
85 <artifactId>spring-boot-starter-thymeleaf</artifactId>
88 <groupId>org.springframework.boot</groupId>
89 <artifactId>spring-boot-starter-webflux</artifactId>
92 <groupId>org.springframework</groupId>
93 <artifactId>spring-webflux</artifactId>
96 <groupId>com.google.code.gson</groupId>
97 <artifactId>gson</artifactId>
100 <groupId>org.projectlombok</groupId>
101 <artifactId>lombok</artifactId>
102 <scope>provided</scope>
104 <!-- Actuator dependencies -->
106 <groupId>org.springframework.boot</groupId>
107 <artifactId>spring-boot-starter-actuator</artifactId>
109 <!-- For development help -->
111 <groupId>org.springframework.boot</groupId>
112 <artifactId>spring-boot-devtools</artifactId>
113 <optional>true</optional>
116 <groupId>org.springframework.boot</groupId>
117 <artifactId>spring-boot-configuration-processor</artifactId>
118 <optional>true</optional>
121 <!-- https://mvnrepository.com/artifact/com.github.erosb/everit-json-schema -->
123 <groupId>com.github.erosb</groupId>
124 <artifactId>everit-json-schema</artifactId>
125 <version>1.12.1</version>
129 <groupId>com.schibsted.spt.data</groupId>
130 <artifactId>jslt</artifactId>
131 <version>0.1.11</version>
134 <groupId>com.jayway.jsonpath</groupId>
135 <artifactId>json-path</artifactId>
136 <version>2.7.0</version>
139 <groupId>org.springframework.boot</groupId>
140 <artifactId>spring-boot-starter-test</artifactId>
144 <groupId>org.awaitility</groupId>
145 <artifactId>awaitility</artifactId>
149 <groupId>io.projectreactor</groupId>
150 <artifactId>reactor-test</artifactId>
154 <groupId>org.junit.jupiter</groupId>
155 <artifactId>junit-jupiter-engine</artifactId>
159 <groupId>org.mockito</groupId>
160 <artifactId>mockito-junit-jupiter</artifactId>
161 <version>${mockito.version}</version>
165 <groupId>org.mockito</groupId>
166 <artifactId>mockito-core</artifactId>
167 <version>${mockito.version}</version>
171 <groupId>org.mockito</groupId>
172 <artifactId>mockito-inline</artifactId>
173 <version>${mockito.version}</version>
177 <groupId>io.projectreactor.kafka</groupId>
178 <artifactId>reactor-kafka</artifactId>
179 <version>1.3.13</version>
182 <groupId>com.google.guava</groupId>
183 <artifactId>guava</artifactId>
184 <version>32.0.0-jre</version>
187 <groupId>software.amazon.awssdk</groupId>
188 <artifactId>s3</artifactId>
189 <version>2.17.292</version>
195 <groupId>org.springframework.boot</groupId>
196 <artifactId>spring-boot-maven-plugin</artifactId>
199 <groupId>net.revelc.code.formatter</groupId>
200 <artifactId>formatter-maven-plugin</artifactId>
201 <version>${formatter-maven-plugin.version}</version>
203 <configFile>${project.basedir}/eclipse-formatter.xml</configFile>
205 <!-- https://code.revelc.net/formatter-maven-plugin/ use mvn formatter:format
206 spotless:apply process-sources -->
209 <groupId>com.diffplug.spotless</groupId>
210 <artifactId>spotless-maven-plugin</artifactId>
211 <version>${spotless-maven-plugin.version}</version>
214 <removeUnusedImports />
216 <order>com,java,javax,org</order>
220 <!-- https://github.com/diffplug/spotless/tree/master/plugin-maven use
221 mvn spotless:apply to rewrite source files use mvn spotless:check to validate
225 <groupId>org.apache.maven.plugins</groupId>
226 <artifactId>maven-surefire-plugin</artifactId>
228 <skipTests>false</skipTests>
232 <artifactId>maven-failsafe-plugin</artifactId>
235 <groupId>org.codehaus.mojo</groupId>
236 <artifactId>build-helper-maven-plugin</artifactId>
240 <phase>generate-sources</phase>
242 <goal>add-source</goal>
246 <source>${project.build.directory}/generated-sources/annotations/</source>
253 <groupId>org.jacoco</groupId>
254 <artifactId>jacoco-maven-plugin</artifactId>
255 <version>${jacoco-maven-plugin.version}</version>
258 <id>default-prepare-agent</id>
260 <goal>prepare-agent</goal>
264 <id>default-report</id>
265 <phase>prepare-package</phase>
273 <groupId>io.swagger.codegen.v3</groupId>
274 <artifactId>swagger-codegen-maven-plugin</artifactId>
275 <version>${swagger-codegen-maven-plugin.version}</version>
280 <goal>generate</goal>
283 <inputSpec>${project.basedir}/api/api.json</inputSpec>
284 <language>openapi-yaml</language>
285 <output>${project.basedir}/api</output>
287 <outputFile>api.yaml</outputFile>
294 <groupId>io.fabric8</groupId>
295 <artifactId>docker-maven-plugin</artifactId>
296 <version>${docker-maven-plugin}</version>
297 <inherited>false</inherited>
300 <id>generate-nonrtric-plt-pmproducer-image</id>
301 <phase>package</phase>
306 <pullRegistry>${env.CONTAINER_PULL_REGISTRY}</pullRegistry>
309 <name>o-ran-sc/nonrtric-plt-pmproducer:${project.version}</name>
311 <cleanup>try</cleanup>
312 <contextDir>${basedir}</contextDir>
313 <dockerFile>Dockerfile</dockerFile>
315 <JAR>${project.build.finalName}.jar</JAR>
318 <tag>${project.version}</tag>
326 <id>push-nonrtric-plt-pmproducer-image</id>
332 <pullRegistry>${env.CONTAINER_PULL_REGISTRY}</pullRegistry>
333 <pushRegistry>${env.CONTAINER_PUSH_REGISTRY}</pushRegistry>
336 <name>o-ran-sc/nonrtric-plt-pmproducer:${project.version}</name>
338 <contextDir>${basedir}</contextDir>
339 <dockerFile>Dockerfile</dockerFile>
341 <JAR>${project.build.finalName}.jar</JAR>
344 <tag>${project.version}</tag>
354 <!-- support sonar in multi-module project -->
356 <groupId>org.sonarsource.scanner.maven</groupId>
357 <artifactId>sonar-maven-plugin</artifactId>
358 <version>${sonar-maven-plugin.version}</version>
363 <system>JIRA</system>
364 <url>https://jira.o-ran-sc.org/</url>