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