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