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