Merge "Docs: Update Release notes after H maintenance release"
[nonrtric/plt/ranpm.git] / pmproducer / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3 * ========================LICENSE_START=================================
4 * O-RAN-SC
5 * %%
6 * Copyright (C) 2023 Nordix Foundation
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 <project
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>
26     <parent>
27         <groupId>org.springframework.boot</groupId>
28         <artifactId>spring-boot-starter-parent</artifactId>
29         <version>3.0.4</version>
30         <relativePath />
31     </parent>
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>
37     <licenses>
38         <license>
39             <name>The Apache Software License, Version 2.0</name>
40             <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
41         </license>
42     </licenses>
43     <repositories>
44         <repository>
45             <id>onap-releases</id>
46             <name>onap-releases</name>
47             <url>https://nexus.onap.org/content/repositories/releases/</url>
48         </repository>
49     </repositories>
50     <properties>
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>
64     </properties>
65     <dependencies>
66         <dependency>
67             <groupId>org.springdoc</groupId>
68             <artifactId>springdoc-openapi-starter-webmvc-ui</artifactId>
69             <version>${springdoc.version}</version>
70         </dependency>
71         <dependency>
72             <groupId>org.springdoc</groupId>
73             <artifactId>springdoc-openapi-ui</artifactId>
74             <version>${springdoc.openapi-ui.version}</version>
75         </dependency>
76         <dependency>
77             <groupId>org.springframework.boot</groupId>
78             <artifactId>spring-boot-starter-web</artifactId>
79         </dependency>
80         <dependency>
81             <groupId>org.springframework.boot</groupId>
82             <artifactId>spring-boot-starter-thymeleaf</artifactId>
83         </dependency>
84         <dependency>
85             <groupId>org.springframework.boot</groupId>
86             <artifactId>spring-boot-starter-webflux</artifactId>
87         </dependency>
88         <dependency>
89             <groupId>org.springframework</groupId>
90             <artifactId>spring-webflux</artifactId>
91         </dependency>
92         <dependency>
93             <groupId>com.google.code.gson</groupId>
94             <artifactId>gson</artifactId>
95         </dependency>
96         <dependency>
97             <groupId>org.projectlombok</groupId>
98             <artifactId>lombok</artifactId>
99             <scope>provided</scope>
100         </dependency>
101         <!-- Actuator dependencies -->
102         <dependency>
103             <groupId>org.springframework.boot</groupId>
104             <artifactId>spring-boot-starter-actuator</artifactId>
105         </dependency>
106         <!-- For development help -->
107         <dependency>
108             <groupId>org.springframework.boot</groupId>
109             <artifactId>spring-boot-devtools</artifactId>
110             <optional>true</optional>
111         </dependency>
112         <dependency>
113             <groupId>org.springframework.boot</groupId>
114             <artifactId>spring-boot-configuration-processor</artifactId>
115             <optional>true</optional>
116         </dependency>
117         <!-- TEST -->
118         <!-- https://mvnrepository.com/artifact/com.github.erosb/everit-json-schema -->
119         <dependency>
120             <groupId>com.github.erosb</groupId>
121             <artifactId>everit-json-schema</artifactId>
122             <version>1.12.1</version>
123             <scope>test</scope>
124         </dependency>
125         <dependency>
126             <groupId>com.schibsted.spt.data</groupId>
127             <artifactId>jslt</artifactId>
128             <version>0.1.11</version>
129         </dependency>
130         <dependency>
131             <groupId>com.jayway.jsonpath</groupId>
132             <artifactId>json-path</artifactId>
133             <version>2.7.0</version>
134         </dependency>
135         <dependency>
136             <groupId>org.springframework.boot</groupId>
137             <artifactId>spring-boot-starter-test</artifactId>
138             <scope>test</scope>
139         </dependency>
140         <dependency>
141             <groupId>org.awaitility</groupId>
142             <artifactId>awaitility</artifactId>
143             <scope>test</scope>
144         </dependency>
145         <dependency>
146             <groupId>io.projectreactor</groupId>
147             <artifactId>reactor-test</artifactId>
148             <scope>test</scope>
149         </dependency>
150         <dependency>
151             <groupId>org.junit.jupiter</groupId>
152             <artifactId>junit-jupiter-engine</artifactId>
153             <scope>test</scope>
154         </dependency>
155         <dependency>
156             <groupId>org.mockito</groupId>
157             <artifactId>mockito-junit-jupiter</artifactId>
158             <scope>test</scope>
159         </dependency>
160         <dependency>
161             <groupId>org.mockito</groupId>
162             <artifactId>mockito-core</artifactId>
163             <scope>test</scope>
164         </dependency>
165         <dependency>
166             <groupId>io.projectreactor.kafka</groupId>
167             <artifactId>reactor-kafka</artifactId>
168             <version>1.3.13</version>
169         </dependency>
170         <dependency>
171             <groupId>com.google.guava</groupId>
172             <artifactId>guava</artifactId>
173             <version>31.0.1-jre</version>
174         </dependency>
175         <dependency>
176             <groupId>software.amazon.awssdk</groupId>
177             <artifactId>s3</artifactId>
178             <version>2.17.292</version>
179         </dependency>
180     </dependencies>
181     <build>
182         <plugins>
183             <plugin>
184                 <groupId>org.springframework.boot</groupId>
185                 <artifactId>spring-boot-maven-plugin</artifactId>
186             </plugin>
187             <plugin>
188                 <groupId>net.revelc.code.formatter</groupId>
189                 <artifactId>formatter-maven-plugin</artifactId>
190                 <version>${formatter-maven-plugin.version}</version>
191                 <configuration>
192                     <configFile>${project.basedir}/eclipse-formatter.xml</configFile>
193                 </configuration>
194                 <!-- https://code.revelc.net/formatter-maven-plugin/ use mvn formatter:format
195                                         spotless:apply process-sources -->
196             </plugin>
197             <plugin>
198                 <groupId>com.diffplug.spotless</groupId>
199                 <artifactId>spotless-maven-plugin</artifactId>
200                 <version>${spotless-maven-plugin.version}</version>
201                 <configuration>
202                     <java>
203                         <removeUnusedImports />
204                         <importOrder>
205                             <order>com,java,javax,org</order>
206                         </importOrder>
207                     </java>
208                 </configuration>
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
211                                         source files -->
212             </plugin>
213             <plugin>
214                 <groupId>org.apache.maven.plugins</groupId>
215                 <artifactId>maven-surefire-plugin</artifactId>
216                 <configuration>
217                     <skipTests>false</skipTests>
218                 </configuration>
219             </plugin>
220             <plugin>
221                 <artifactId>maven-failsafe-plugin</artifactId>
222             </plugin>
223             <plugin>
224                 <groupId>org.codehaus.mojo</groupId>
225                 <artifactId>build-helper-maven-plugin</artifactId>
226                 <executions>
227                     <execution>
228                         <id>add-source</id>
229                         <phase>generate-sources</phase>
230                         <goals>
231                             <goal>add-source</goal>
232                         </goals>
233                         <configuration>
234                             <sources>
235                                 <source>${project.build.directory}/generated-sources/annotations/</source>
236                             </sources>
237                         </configuration>
238                     </execution>
239                 </executions>
240             </plugin>
241             <plugin>
242                 <groupId>org.jacoco</groupId>
243                 <artifactId>jacoco-maven-plugin</artifactId>
244                 <version>${jacoco-maven-plugin.version}</version>
245                 <executions>
246                     <execution>
247                         <id>default-prepare-agent</id>
248                         <goals>
249                             <goal>prepare-agent</goal>
250                         </goals>
251                     </execution>
252                     <execution>
253                         <id>default-report</id>
254                         <phase>prepare-package</phase>
255                         <goals>
256                             <goal>report</goal>
257                         </goals>
258                     </execution>
259                 </executions>
260             </plugin>
261             <plugin>
262                 <groupId>io.swagger.codegen.v3</groupId>
263                 <artifactId>swagger-codegen-maven-plugin</artifactId>
264                 <version>${swagger-codegen-maven-plugin.version}</version>
265                 <executions>
266                     <execution>
267                         <phase>test</phase>
268                         <goals>
269                             <goal>generate</goal>
270                         </goals>
271                         <configuration>
272                             <inputSpec>${project.basedir}/api/api.json</inputSpec>
273                             <language>openapi-yaml</language>
274                             <output>${project.basedir}/api</output>
275                             <configOptions>
276                                 <outputFile>api.yaml</outputFile>
277                             </configOptions>
278                         </configuration>
279                     </execution>
280                 </executions>
281             </plugin>
282             <plugin>
283                 <groupId>io.fabric8</groupId>
284                 <artifactId>docker-maven-plugin</artifactId>
285                 <version>${docker-maven-plugin}</version>
286                 <inherited>false</inherited>
287                 <executions>
288                     <execution>
289                         <id>generate-nonrtric-plt-pmproducer-image</id>
290                         <phase>package</phase>
291                         <goals>
292                             <goal>build</goal>
293                         </goals>
294                         <configuration>
295                             <pullRegistry>${env.CONTAINER_PULL_REGISTRY}</pullRegistry>
296                             <images>
297                                 <image>
298                                     <name>o-ran-sc/nonrtric-plt-pmproducer:${project.version}</name>
299                                     <build>
300                                         <cleanup>try</cleanup>
301                                         <contextDir>${basedir}</contextDir>
302                                         <dockerFile>Dockerfile</dockerFile>
303                                         <args>
304                                             <JAR>${project.build.finalName}.jar</JAR>
305                                         </args>
306                                         <tags>
307                                             <tag>${project.version}</tag>
308                                         </tags>
309                                     </build>
310                                 </image>
311                             </images>
312                         </configuration>
313                     </execution>
314                     <execution>
315                         <id>push-nonrtric-plt-pmproducer-image</id>
316                         <goals>
317                             <goal>build</goal>
318                             <goal>push</goal>
319                         </goals>
320                         <configuration>
321                             <pullRegistry>${env.CONTAINER_PULL_REGISTRY}</pullRegistry>
322                             <pushRegistry>${env.CONTAINER_PUSH_REGISTRY}</pushRegistry>
323                             <images>
324                                 <image>
325                                     <name>o-ran-sc/nonrtric-plt-pmproducer:${project.version}</name>
326                                     <build>
327                                         <contextDir>${basedir}</contextDir>
328                                         <dockerFile>Dockerfile</dockerFile>
329                                         <args>
330                                             <JAR>${project.build.finalName}.jar</JAR>
331                                         </args>
332                                         <tags>
333                                             <tag>${project.version}</tag>
334                                             <tag>latest</tag>
335                                         </tags>
336                                     </build>
337                                 </image>
338                             </images>
339                         </configuration>
340                     </execution>
341                 </executions>
342             </plugin>
343             <!-- support sonar in multi-module project -->
344             <plugin>
345                 <groupId>org.sonarsource.scanner.maven</groupId>
346                 <artifactId>sonar-maven-plugin</artifactId>
347                 <version>${sonar-maven-plugin.version}</version>
348             </plugin>
349         </plugins>
350     </build>
351     <issueManagement>
352         <system>JIRA</system>
353         <url>https://jira.o-ran-sc.org/</url>
354     </issueManagement>
355 </project>