Uplift from ONAP
[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.1-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         <software.amazon.awssdk.version>2.17.292</software.amazon.awssdk.version>
63     </properties>
64     <dependencies>
65         <dependency>
66             <groupId>commons-io</groupId>
67             <artifactId>commons-io</artifactId>
68             <version>2.11.0</version>
69         </dependency>
70         <dependency>
71             <groupId>com.google.guava</groupId>
72             <artifactId>guava</artifactId>
73             <version>31.0.1-jre</version>
74         </dependency>
75         <dependency>
76             <groupId>org.springframework.boot</groupId>
77             <artifactId>spring-boot-starter-web</artifactId>
78         </dependency>
79         <dependency>
80             <groupId>org.springframework.boot</groupId>
81             <artifactId>spring-boot-starter-thymeleaf</artifactId>
82         </dependency>
83         <dependency>
84             <groupId>org.springframework.boot</groupId>
85             <artifactId>spring-boot-starter-webflux</artifactId>
86         </dependency>
87         <dependency>
88             <groupId>org.springframework.boot</groupId>
89             <artifactId>spring-boot-starter-aop</artifactId>
90         </dependency>
91         <dependency>
92             <groupId>org.springframework.boot</groupId>
93             <artifactId>spring-boot-devtools</artifactId>
94             <optional>true</optional>
95         </dependency>
96         <dependency>
97             <groupId>org.springframework</groupId>
98             <artifactId>spring-webflux</artifactId>
99         </dependency>
100         <dependency>
101             <groupId>io.swagger.core.v3</groupId>
102             <artifactId>swagger-jaxrs2</artifactId>
103             <version>${swagger.version}</version>
104         </dependency>
105         <dependency>
106             <groupId>io.swagger.core.v3</groupId>
107             <artifactId>swagger-jaxrs2-servlet-initializer</artifactId>
108             <version>${swagger.version}</version>
109         </dependency>
110         <dependency>
111             <groupId>javax.xml.bind</groupId>
112             <artifactId>jaxb-api</artifactId>
113         </dependency>
114         <dependency>
115             <groupId>com.google.code.gson</groupId>
116             <artifactId>gson</artifactId>
117             <version>${gson.version}</version>
118         </dependency>
119         <dependency>
120             <groupId>org.json</groupId>
121             <artifactId>json</artifactId>
122             <version>${json.version}</version>
123         </dependency>
124         <dependency>
125             <groupId>org.springframework.boot</groupId>
126             <artifactId>spring-boot-configuration-processor</artifactId>
127             <optional>true</optional>
128         </dependency>
129         <dependency>
130             <groupId>org.projectlombok</groupId>
131             <artifactId>lombok</artifactId>
132             <scope>provided</scope>
133         </dependency>
134         <dependency>
135             <groupId>javax.ws.rs</groupId>
136             <artifactId>javax.ws.rs-api</artifactId>
137             <version>${javax.ws.rs-api.version}</version>
138         </dependency>
139         <dependency>
140             <groupId>org.glassfish.jersey.inject</groupId>
141             <artifactId>jersey-hk2</artifactId>
142         </dependency>
143         <!-- Actuator dependencies -->
144         <dependency>
145             <groupId>org.springframework.boot</groupId>
146             <artifactId>spring-boot-starter-actuator</artifactId>
147         </dependency>
148         <!--REQUIRED TO GENERATE DOCUMENTATION -->
149         <dependency>
150             <groupId>io.springfox</groupId>
151             <artifactId>springfox-swagger2</artifactId>
152             <version>${springfox.version}</version>
153         </dependency>
154         <dependency>
155             <groupId>io.springfox</groupId>
156             <artifactId>springfox-swagger-ui</artifactId>
157             <version>${springfox.version}</version>
158         </dependency>
159         <!-- TEST -->
160          <dependency>
161             <groupId>org.springdoc</groupId>
162             <artifactId>springdoc-openapi-ui</artifactId>
163             <version>1.6.6</version>
164             <scope>test</scope>
165         </dependency>
166         <dependency>
167             <groupId>org.springframework.boot</groupId>
168             <artifactId>spring-boot-starter-test</artifactId>
169             <scope>test</scope>
170         </dependency>
171         <dependency>
172             <groupId>org.awaitility</groupId>
173             <artifactId>awaitility</artifactId>
174             <scope>test</scope>
175         </dependency>
176         <dependency>
177             <groupId>io.projectreactor</groupId>
178             <artifactId>reactor-test</artifactId>
179             <scope>test</scope>
180         </dependency>
181         <dependency>
182             <groupId>org.junit.jupiter</groupId>
183             <artifactId>junit-jupiter-engine</artifactId>
184             <scope>test</scope>
185         </dependency>
186         <dependency>
187             <groupId>org.mockito</groupId>
188             <artifactId>mockito-junit-jupiter</artifactId>
189             <scope>test</scope>
190         </dependency>
191         <dependency>
192             <groupId>org.mockito</groupId>
193             <artifactId>mockito-core</artifactId>
194             <scope>test</scope>
195         </dependency>
196         <dependency>
197             <groupId>com.squareup.okhttp3</groupId>
198             <artifactId>mockwebserver</artifactId>
199             <scope>test</scope>
200         </dependency>
201         <!-- https://mvnrepository.com/artifact/com.github.erosb/everit-json-schema -->
202         <dependency>
203             <groupId>com.github.erosb</groupId>
204             <artifactId>everit-json-schema</artifactId>
205             <version>1.13.0</version>
206         </dependency>
207         <dependency>
208             <groupId>software.amazon.awssdk</groupId>
209             <artifactId>s3</artifactId>
210             <version>${software.amazon.awssdk.version}</version>
211         </dependency>
212         <dependency>
213             <groupId>io.micrometer</groupId>
214             <artifactId>micrometer-registry-prometheus</artifactId>
215         </dependency>
216     </dependencies>
217     <build>
218         <plugins>
219             <plugin>
220                 <groupId>org.springframework.boot</groupId>
221                 <artifactId>spring-boot-maven-plugin</artifactId>
222             </plugin>
223             <plugin>
224                 <groupId>org.apache.maven.plugins</groupId>
225                 <artifactId>maven-surefire-plugin</artifactId>
226                 <configuration>
227                     <skipTests>false</skipTests>
228                 </configuration>
229             </plugin>
230             <plugin>
231                 <artifactId>maven-failsafe-plugin</artifactId>
232             </plugin>
233             <plugin>
234                 <groupId>org.codehaus.mojo</groupId>
235                 <artifactId>build-helper-maven-plugin</artifactId>
236                 <executions>
237                     <execution>
238                         <id>add-source</id>
239                         <phase>generate-sources</phase>
240                         <goals>
241                             <goal>add-source</goal>
242                         </goals>
243                         <configuration>
244                             <sources>
245                                 <source>${project.build.directory}/generated-sources/annotations/</source>
246                             </sources>
247                         </configuration>
248                     </execution>
249                 </executions>
250             </plugin>
251             <plugin>
252                 <groupId>org.jacoco</groupId>
253                 <artifactId>jacoco-maven-plugin</artifactId>
254                 <version>${jacoco-maven-plugin.version}</version>
255                 <executions>
256                     <execution>
257                         <id>default-prepare-agent</id>
258                         <goals>
259                             <goal>prepare-agent</goal>
260                         </goals>
261                     </execution>
262                     <execution>
263                         <id>default-report</id>
264                         <phase>prepare-package</phase>
265                         <goals>
266                             <goal>report</goal>
267                         </goals>
268                     </execution>
269                 </executions>
270             </plugin>
271             <plugin>
272                 <groupId>io.fabric8</groupId>
273                 <artifactId>docker-maven-plugin</artifactId>
274                 <version>${docker-maven-plugin}</version>
275                 <inherited>false</inherited>
276                 <executions>
277                     <execution>
278                         <id>generate-a1policymanagementservice-image</id>
279                         <phase>package</phase>
280                         <goals>
281                             <goal>build</goal>
282                         </goals>
283                         <configuration>
284                             <pullRegistry>${env.CONTAINER_PULL_REGISTRY}</pullRegistry>
285                             <images>
286                                 <image>
287                                     <name>o-ran-sc/nonrtric-plt-a1policymanagementservice:${project.version}</name>
288                                     <build>
289                                         <cleanup>try</cleanup>
290                                         <contextDir>${basedir}</contextDir>
291                                         <dockerFile>Dockerfile</dockerFile>
292                                         <args>
293                                             <JAR>${project.build.finalName}.jar</JAR>
294                                         </args>
295                                         <tags>
296                                             <tag>${project.version}</tag>
297                                         </tags>
298                                     </build>
299                                 </image>
300                             </images>
301                         </configuration>
302                     </execution>
303                     <execution>
304                         <id>push-a1policymanagementservice-image</id>
305                         <goals>
306                             <goal>build</goal>
307                             <goal>push</goal>
308                         </goals>
309                         <configuration>
310                             <pullRegistry>${env.CONTAINER_PULL_REGISTRY}</pullRegistry>
311                             <pushRegistry>${env.CONTAINER_PUSH_REGISTRY}</pushRegistry>
312                             <images>
313                                 <image>
314                                     <name>o-ran-sc/nonrtric-plt-a1policymanagementservice:${project.version}</name>
315                                     <build>
316                                         <contextDir>${basedir}</contextDir>
317                                         <dockerFile>Dockerfile</dockerFile>
318                                         <args>
319                                             <JAR>${project.build.finalName}.jar</JAR>
320                                         </args>
321                                         <tags>
322                                             <tag>${project.version}</tag>
323                                             <tag>latest</tag>
324                                         </tags>
325                                     </build>
326                                 </image>
327                             </images>
328                         </configuration>
329                     </execution>
330                 </executions>
331             </plugin>
332             <!-- support sonar in multi-module project -->
333             <plugin>
334                 <groupId>org.sonarsource.scanner.maven</groupId>
335                 <artifactId>sonar-maven-plugin</artifactId>
336                 <version>${sonar-maven-plugin.version}</version>
337             </plugin>
338             <plugin>
339                 <groupId>org.codehaus.mojo</groupId>
340                 <artifactId>exec-maven-plugin</artifactId>
341                 <version>${exec-maven-plugin.version}</version>
342                 <executions>
343                     <execution>
344                         <id>git submodule update</id>
345                         <phase>initialize</phase>
346                         <configuration>
347                             <executable>git</executable>
348                             <arguments>
349                                 <argument>submodule</argument>
350                                 <argument>update</argument>
351                                 <argument>--init</argument>
352                                 <argument>--recursive</argument>
353                             </arguments>
354                         </configuration>
355                         <goals>
356                             <goal>exec</goal>
357                         </goals>
358                     </execution>
359                     <execution>
360                         <id>copy configuration</id>
361                         <phase>initialize</phase>
362                         <configuration>
363                             <executable>cp</executable>
364                             <arguments>
365                                 <argument>-r</argument>
366                                 <argument>onap/oran/a1-policy-management/config</argument>
367                                 <argument>.</argument>
368                             </arguments>
369                         </configuration>
370                         <goals>
371                             <goal>exec</goal>
372                         </goals>
373                     </execution>
374                 </executions>
375             </plugin>
376         </plugins>
377     </build>
378     <issueManagement>
379         <system>JIRA</system>
380         <url>https://jira.o-ran-sc.org/</url>
381     </issueManagement>
382 </project>