1 <?xml version="1.0" encoding="UTF-8"?>
3 * ========================LICENSE_START=================================
6 * Copyright (C) 2023 Nordix Foundation
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
12 * http://www.apache.org/licenses/LICENSE-2.0
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===================================
22 xmlns="http://maven.apache.org/POM/4.0.0"
23 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
24 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
25 <modelVersion>4.0.0</modelVersion>
27 <groupId>org.springframework.boot</groupId>
28 <artifactId>spring-boot-starter-parent</artifactId>
29 <version>3.0.4</version>
32 <groupId>org.o-ran-sc.nonrtric.plt</groupId>
33 <artifactId>pmproducer</artifactId>
34 <version>1.1.0-SNAPSHOT</version>
35 <name>NONRTRIC RAN PM Producer</name>
36 <description>Filtering and distribution of PM data to rApps subscribers (O-RAN SC NONRTRIC)</description>
39 <name>The Apache Software License, Version 2.0</name>
40 <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
45 <id>onap-releases</id>
46 <name>onap-releases</name>
47 <url>https://nexus.onap.org/content/repositories/releases/</url>
51 <java.version>17</java.version>
52 <gson.version>2.9.0</gson.version>
53 <json.version>20211205</json.version>
54 <maven-compiler-plugin.version>3.8.0</maven-compiler-plugin.version>
55 <formatter-maven-plugin.version>2.12.2</formatter-maven-plugin.version>
56 <spotless-maven-plugin.version>1.24.3</spotless-maven-plugin.version>
57 <swagger-codegen-maven-plugin.version>3.0.11</swagger-codegen-maven-plugin.version>
58 <docker-maven-plugin>0.30.0</docker-maven-plugin>
59 <sonar-maven-plugin.version>3.7.0.1746</sonar-maven-plugin.version>
60 <jacoco-maven-plugin.version>0.8.8</jacoco-maven-plugin.version>
61 <springdoc.version>2.0.2</springdoc.version>
62 <springdoc.openapi-ui.version>1.6.14</springdoc.openapi-ui.version>
63 <exec.skip>true</exec.skip>
67 <groupId>org.springdoc</groupId>
68 <artifactId>springdoc-openapi-starter-webmvc-ui</artifactId>
69 <version>${springdoc.version}</version>
72 <groupId>org.springdoc</groupId>
73 <artifactId>springdoc-openapi-ui</artifactId>
74 <version>${springdoc.openapi-ui.version}</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</groupId>
90 <artifactId>spring-webflux</artifactId>
93 <groupId>com.google.code.gson</groupId>
94 <artifactId>gson</artifactId>
97 <groupId>org.projectlombok</groupId>
98 <artifactId>lombok</artifactId>
99 <scope>provided</scope>
101 <!-- Actuator dependencies -->
103 <groupId>org.springframework.boot</groupId>
104 <artifactId>spring-boot-starter-actuator</artifactId>
106 <!-- For development help -->
108 <groupId>org.springframework.boot</groupId>
109 <artifactId>spring-boot-devtools</artifactId>
110 <optional>true</optional>
113 <groupId>org.springframework.boot</groupId>
114 <artifactId>spring-boot-configuration-processor</artifactId>
115 <optional>true</optional>
118 <!-- https://mvnrepository.com/artifact/com.github.erosb/everit-json-schema -->
120 <groupId>com.github.erosb</groupId>
121 <artifactId>everit-json-schema</artifactId>
122 <version>1.12.1</version>
126 <groupId>com.schibsted.spt.data</groupId>
127 <artifactId>jslt</artifactId>
128 <version>0.1.11</version>
131 <groupId>com.jayway.jsonpath</groupId>
132 <artifactId>json-path</artifactId>
133 <version>2.7.0</version>
136 <groupId>org.springframework.boot</groupId>
137 <artifactId>spring-boot-starter-test</artifactId>
141 <groupId>org.awaitility</groupId>
142 <artifactId>awaitility</artifactId>
146 <groupId>io.projectreactor</groupId>
147 <artifactId>reactor-test</artifactId>
151 <groupId>org.junit.jupiter</groupId>
152 <artifactId>junit-jupiter-engine</artifactId>
156 <groupId>org.mockito</groupId>
157 <artifactId>mockito-junit-jupiter</artifactId>
161 <groupId>org.mockito</groupId>
162 <artifactId>mockito-core</artifactId>
166 <groupId>io.projectreactor.kafka</groupId>
167 <artifactId>reactor-kafka</artifactId>
168 <version>1.3.13</version>
171 <groupId>com.google.guava</groupId>
172 <artifactId>guava</artifactId>
173 <version>31.0.1-jre</version>
176 <groupId>software.amazon.awssdk</groupId>
177 <artifactId>s3</artifactId>
178 <version>2.17.292</version>
184 <groupId>org.springframework.boot</groupId>
185 <artifactId>spring-boot-maven-plugin</artifactId>
188 <groupId>net.revelc.code.formatter</groupId>
189 <artifactId>formatter-maven-plugin</artifactId>
190 <version>${formatter-maven-plugin.version}</version>
192 <configFile>${project.basedir}/eclipse-formatter.xml</configFile>
194 <!-- https://code.revelc.net/formatter-maven-plugin/ use mvn formatter:format
195 spotless:apply process-sources -->
198 <groupId>com.diffplug.spotless</groupId>
199 <artifactId>spotless-maven-plugin</artifactId>
200 <version>${spotless-maven-plugin.version}</version>
203 <removeUnusedImports />
205 <order>com,java,javax,org</order>
209 <!-- https://github.com/diffplug/spotless/tree/master/plugin-maven use
210 mvn spotless:apply to rewrite source files use mvn spotless:check to validate
214 <groupId>org.apache.maven.plugins</groupId>
215 <artifactId>maven-surefire-plugin</artifactId>
217 <skipTests>false</skipTests>
221 <artifactId>maven-failsafe-plugin</artifactId>
224 <groupId>org.codehaus.mojo</groupId>
225 <artifactId>build-helper-maven-plugin</artifactId>
229 <phase>generate-sources</phase>
231 <goal>add-source</goal>
235 <source>${project.build.directory}/generated-sources/annotations/</source>
242 <groupId>org.jacoco</groupId>
243 <artifactId>jacoco-maven-plugin</artifactId>
244 <version>${jacoco-maven-plugin.version}</version>
247 <id>default-prepare-agent</id>
249 <goal>prepare-agent</goal>
253 <id>default-report</id>
254 <phase>prepare-package</phase>
262 <groupId>io.swagger.codegen.v3</groupId>
263 <artifactId>swagger-codegen-maven-plugin</artifactId>
264 <version>${swagger-codegen-maven-plugin.version}</version>
269 <goal>generate</goal>
272 <inputSpec>${project.basedir}/api/api.json</inputSpec>
273 <language>openapi-yaml</language>
274 <output>${project.basedir}/api</output>
276 <outputFile>api.yaml</outputFile>
283 <groupId>io.fabric8</groupId>
284 <artifactId>docker-maven-plugin</artifactId>
285 <version>${docker-maven-plugin}</version>
286 <inherited>false</inherited>
289 <id>generate-nonrtric-plt-pmproducer-image</id>
290 <phase>package</phase>
295 <pullRegistry>${env.CONTAINER_PULL_REGISTRY}</pullRegistry>
298 <name>o-ran-sc/nonrtric-plt-pmproducer:${project.version}</name>
300 <cleanup>try</cleanup>
301 <contextDir>${basedir}</contextDir>
302 <dockerFile>Dockerfile</dockerFile>
304 <JAR>${project.build.finalName}.jar</JAR>
307 <tag>${project.version}</tag>
315 <id>push-nonrtric-plt-pmproducer-image</id>
321 <pullRegistry>${env.CONTAINER_PULL_REGISTRY}</pullRegistry>
322 <pushRegistry>${env.CONTAINER_PUSH_REGISTRY}</pushRegistry>
325 <name>o-ran-sc/nonrtric-plt-pmproducer:${project.version}</name>
327 <contextDir>${basedir}</contextDir>
328 <dockerFile>Dockerfile</dockerFile>
330 <JAR>${project.build.finalName}.jar</JAR>
333 <tag>${project.version}</tag>
343 <!-- support sonar in multi-module project -->
345 <groupId>org.sonarsource.scanner.maven</groupId>
346 <artifactId>sonar-maven-plugin</artifactId>
347 <version>${sonar-maven-plugin.version}</version>
352 <system>JIRA</system>
353 <url>https://jira.o-ran-sc.org/</url>