Update 3PPs
[nonrtric/plt/a1policymanagementservice.git] / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3 * ========================LICENSE_START=================================
4 * O-RAN-SC
5 * %%
6 * Copyright (C) 2019 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>2.6.11</version>
30         <relativePath />
31     </parent>
32     <groupId>org.o-ran-sc.nonrtric.plt</groupId>
33     <artifactId>a1policymanagementservice</artifactId>
34     <version>2.5.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>11</java.version>
50         <springfox.version>3.0.0</springfox.version>
51         <gson.version>2.9.0</gson.version>
52         <swagger.version>2.1.13</swagger.version>
53         <json.version>20220320</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.18.0</spotless-maven-plugin.version>
57         <docker-maven-plugin>0.30.0</docker-maven-plugin>
58         <javax.ws.rs-api.version>2.1.1</javax.ws.rs-api.version>
59         <sonar-maven-plugin.version>3.7.0.1746</sonar-maven-plugin.version>
60         <jacoco-maven-plugin.version>0.8.5</jacoco-maven-plugin.version>
61         <exec-maven-plugin.version>3.0.0</exec-maven-plugin.version>
62     </properties>
63     <dependencies>
64         <dependency>
65             <groupId>commons-io</groupId>
66             <artifactId>commons-io</artifactId>
67             <version>2.11.0</version>
68         </dependency>
69         <dependency>
70             <groupId>com.google.guava</groupId>
71             <artifactId>guava</artifactId>
72             <version>31.0.1-jre</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.boot</groupId>
88             <artifactId>spring-boot-starter-aop</artifactId>
89         </dependency>
90         <dependency>
91             <groupId>org.springframework.boot</groupId>
92             <artifactId>spring-boot-devtools</artifactId>
93             <optional>true</optional>
94         </dependency>
95         <dependency>
96             <groupId>org.springframework</groupId>
97             <artifactId>spring-webflux</artifactId>
98         </dependency>
99         <dependency>
100             <groupId>io.swagger.core.v3</groupId>
101             <artifactId>swagger-jaxrs2</artifactId>
102             <version>${swagger.version}</version>
103         </dependency>
104         <dependency>
105             <groupId>io.swagger.core.v3</groupId>
106             <artifactId>swagger-jaxrs2-servlet-initializer</artifactId>
107             <version>${swagger.version}</version>
108         </dependency>
109         <dependency>
110             <groupId>javax.xml.bind</groupId>
111             <artifactId>jaxb-api</artifactId>
112         </dependency>
113         <dependency>
114             <groupId>com.google.code.gson</groupId>
115             <artifactId>gson</artifactId>
116             <version>${gson.version}</version>
117         </dependency>
118         <dependency>
119             <groupId>org.json</groupId>
120             <artifactId>json</artifactId>
121             <version>${json.version}</version>
122         </dependency>
123         <dependency>
124             <groupId>org.springframework.boot</groupId>
125             <artifactId>spring-boot-configuration-processor</artifactId>
126             <optional>true</optional>
127         </dependency>
128         <dependency>
129             <groupId>org.projectlombok</groupId>
130             <artifactId>lombok</artifactId>
131             <scope>provided</scope>
132         </dependency>
133         <dependency>
134             <groupId>javax.ws.rs</groupId>
135             <artifactId>javax.ws.rs-api</artifactId>
136             <version>${javax.ws.rs-api.version}</version>
137         </dependency>
138         <dependency>
139             <groupId>org.glassfish.jersey.inject</groupId>
140             <artifactId>jersey-hk2</artifactId>
141         </dependency>
142         <!-- Actuator dependencies -->
143         <dependency>
144             <groupId>org.springframework.boot</groupId>
145             <artifactId>spring-boot-starter-actuator</artifactId>
146         </dependency>
147         <!--REQUIRED TO GENERATE DOCUMENTATION -->
148         <dependency>
149             <groupId>io.springfox</groupId>
150             <artifactId>springfox-swagger2</artifactId>
151             <version>${springfox.version}</version>
152         </dependency>
153         <dependency>
154             <groupId>io.springfox</groupId>
155             <artifactId>springfox-swagger-ui</artifactId>
156             <version>${springfox.version}</version>
157         </dependency>
158         <!-- TEST -->
159          <dependency>
160             <groupId>org.springdoc</groupId>
161             <artifactId>springdoc-openapi-ui</artifactId>
162             <version>1.6.6</version>
163             <scope>test</scope>
164         </dependency>
165         <dependency>
166             <groupId>org.springframework.boot</groupId>
167             <artifactId>spring-boot-starter-test</artifactId>
168             <scope>test</scope>
169         </dependency>
170         <dependency>
171             <groupId>org.awaitility</groupId>
172             <artifactId>awaitility</artifactId>
173             <scope>test</scope>
174         </dependency>
175         <dependency>
176             <groupId>io.projectreactor</groupId>
177             <artifactId>reactor-test</artifactId>
178             <scope>test</scope>
179         </dependency>
180         <dependency>
181             <groupId>org.junit.jupiter</groupId>
182             <artifactId>junit-jupiter-engine</artifactId>
183             <scope>test</scope>
184         </dependency>
185         <dependency>
186             <groupId>org.mockito</groupId>
187             <artifactId>mockito-junit-jupiter</artifactId>
188             <scope>test</scope>
189         </dependency>
190         <dependency>
191             <groupId>org.mockito</groupId>
192             <artifactId>mockito-core</artifactId>
193             <scope>test</scope>
194         </dependency>
195         <dependency>
196             <groupId>com.squareup.okhttp3</groupId>
197             <artifactId>mockwebserver</artifactId>
198             <scope>test</scope>
199         </dependency>
200         <!-- https://mvnrepository.com/artifact/com.github.erosb/everit-json-schema -->
201         <dependency>
202             <groupId>com.github.erosb</groupId>
203             <artifactId>everit-json-schema</artifactId>
204             <version>1.13.0</version>
205         </dependency>
206     </dependencies>
207     <build>
208         <plugins>
209             <plugin>
210                 <groupId>org.springframework.boot</groupId>
211                 <artifactId>spring-boot-maven-plugin</artifactId>
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.fabric8</groupId>
263                 <artifactId>docker-maven-plugin</artifactId>
264                 <version>${docker-maven-plugin}</version>
265                 <inherited>false</inherited>
266                 <executions>
267                     <execution>
268                         <id>generate-a1policymanagementservice-image</id>
269                         <phase>package</phase>
270                         <goals>
271                             <goal>build</goal>
272                         </goals>
273                         <configuration>
274                             <pullRegistry>${env.CONTAINER_PULL_REGISTRY}</pullRegistry>
275                             <images>
276                                 <image>
277                                     <name>o-ran-sc/nonrtric-plt-a1policymanagementservice:${project.version}</name>
278                                     <build>
279                                         <cleanup>try</cleanup>
280                                         <contextDir>${basedir}</contextDir>
281                                         <dockerFile>Dockerfile</dockerFile>
282                                         <args>
283                                             <JAR>${project.build.finalName}.jar</JAR>
284                                         </args>
285                                         <tags>
286                                             <tag>${project.version}</tag>
287                                         </tags>
288                                     </build>
289                                 </image>
290                             </images>
291                         </configuration>
292                     </execution>
293                     <execution>
294                         <id>push-a1policymanagementservice-image</id>
295                         <goals>
296                             <goal>build</goal>
297                             <goal>push</goal>
298                         </goals>
299                         <configuration>
300                             <pullRegistry>${env.CONTAINER_PULL_REGISTRY}</pullRegistry>
301                             <pushRegistry>${env.CONTAINER_PUSH_REGISTRY}</pushRegistry>
302                             <images>
303                                 <image>
304                                     <name>o-ran-sc/nonrtric-plt-a1policymanagementservice:${project.version}</name>
305                                     <build>
306                                         <contextDir>${basedir}</contextDir>
307                                         <dockerFile>Dockerfile</dockerFile>
308                                         <args>
309                                             <JAR>${project.build.finalName}.jar</JAR>
310                                         </args>
311                                         <tags>
312                                             <tag>${project.version}</tag>
313                                             <tag>latest</tag>
314                                         </tags>
315                                     </build>
316                                 </image>
317                             </images>
318                         </configuration>
319                     </execution>
320                 </executions>
321             </plugin>
322             <!-- support sonar in multi-module project -->
323             <plugin>
324                 <groupId>org.sonarsource.scanner.maven</groupId>
325                 <artifactId>sonar-maven-plugin</artifactId>
326                 <version>${sonar-maven-plugin.version}</version>
327             </plugin>
328             <plugin>
329                 <groupId>org.codehaus.mojo</groupId>
330                 <artifactId>exec-maven-plugin</artifactId>
331                 <version>${exec-maven-plugin.version}</version>
332                 <executions>
333                     <execution>
334                         <id>git submodule update</id>
335                         <phase>initialize</phase>
336                         <configuration>
337                             <executable>git</executable>
338                             <arguments>
339                                 <argument>submodule</argument>
340                                 <argument>update</argument>
341                                 <argument>--init</argument>
342                                 <argument>--recursive</argument>
343                             </arguments>
344                         </configuration>
345                         <goals>
346                             <goal>exec</goal>
347                         </goals>
348                     </execution>
349                     <execution>
350                         <id>copy configuration</id>
351                         <phase>initialize</phase>
352                         <configuration>
353                             <executable>cp</executable>
354                             <arguments>
355                                 <argument>-r</argument>
356                                 <argument>onap/oran/a1-policy-management/config</argument>
357                                 <argument>.</argument>
358                             </arguments>
359                         </configuration>
360                         <goals>
361                             <goal>exec</goal>
362                         </goals>
363                     </execution>
364                 </executions>
365             </plugin>
366         </plugins>
367     </build>
368     <issueManagement>
369         <system>JIRA</system>
370         <url>https://jira.o-ran-sc.org/</url>
371     </issueManagement>
372 </project>