Update log_dir in maven-release file
[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-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>2.7.7</version>
30         <relativePath />
31     </parent>
32     <groupId>org.o-ran-sc.nonrtric.plt</groupId>
33     <artifactId>a1policymanagementservice</artifactId>
34     <version>2.5.2-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         <swagger.version>2.2.8</swagger.version>
52         <json.version>20220924</json.version>
53         <maven-compiler-plugin.version>3.10.0</maven-compiler-plugin.version>
54         <formatter-maven-plugin.version>2.13.0</formatter-maven-plugin.version>
55         <spotless-maven-plugin.version>2.30.0</spotless-maven-plugin.version>
56         <docker-maven-plugin>0.30.0</docker-maven-plugin>
57         <javax.ws.rs-api.version>2.1.1</javax.ws.rs-api.version>
58         <sonar-maven-plugin.version>3.7.0.1746</sonar-maven-plugin.version>
59         <jacoco-maven-plugin.version>0.8.8</jacoco-maven-plugin.version>
60         <exec-maven-plugin.version>3.1.0</exec-maven-plugin.version>
61         <software.amazon.awssdk.version>2.19.17</software.amazon.awssdk.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.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.boot</groupId>
97             <artifactId>spring-boot-starter-validation</artifactId>
98         </dependency>
99         <dependency>
100             <groupId>org.springframework</groupId>
101             <artifactId>spring-webflux</artifactId>
102         </dependency>
103         <dependency>
104             <groupId>io.swagger.core.v3</groupId>
105             <artifactId>swagger-jaxrs2</artifactId>
106             <version>${swagger.version}</version>
107         </dependency>
108         <dependency>
109             <groupId>io.swagger.core.v3</groupId>
110             <artifactId>swagger-jaxrs2-servlet-initializer</artifactId>
111             <version>${swagger.version}</version>
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.14</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.14.1</version>
205         </dependency>
206         <dependency>
207             <groupId>software.amazon.awssdk</groupId>
208             <artifactId>s3</artifactId>
209             <version>${software.amazon.awssdk.version}</version>
210         </dependency>
211         <dependency>
212             <groupId>io.micrometer</groupId>
213             <artifactId>micrometer-registry-prometheus</artifactId>
214         </dependency>
215     </dependencies>
216     <build>
217         <plugins>
218             <plugin>
219                 <groupId>org.springframework.boot</groupId>
220                 <artifactId>spring-boot-maven-plugin</artifactId>
221             </plugin>
222             <plugin>
223                 <groupId>org.apache.maven.plugins</groupId>
224                 <artifactId>maven-surefire-plugin</artifactId>
225                 <configuration>
226                     <skipTests>false</skipTests>
227                 </configuration>
228             </plugin>
229             <plugin>
230                 <artifactId>maven-failsafe-plugin</artifactId>
231             </plugin>
232             <plugin>
233                 <groupId>org.codehaus.mojo</groupId>
234                 <artifactId>build-helper-maven-plugin</artifactId>
235                 <executions>
236                     <execution>
237                         <id>add-source</id>
238                         <phase>generate-sources</phase>
239                         <goals>
240                             <goal>add-source</goal>
241                         </goals>
242                         <configuration>
243                             <sources>
244                                 <source>${project.build.directory}/generated-sources/annotations/</source>
245                             </sources>
246                         </configuration>
247                     </execution>
248                 </executions>
249             </plugin>
250             <plugin>
251                 <groupId>org.jacoco</groupId>
252                 <artifactId>jacoco-maven-plugin</artifactId>
253                 <version>${jacoco-maven-plugin.version}</version>
254                 <executions>
255                     <execution>
256                         <id>default-prepare-agent</id>
257                         <goals>
258                             <goal>prepare-agent</goal>
259                         </goals>
260                     </execution>
261                     <execution>
262                         <id>default-report</id>
263                         <phase>prepare-package</phase>
264                         <goals>
265                             <goal>report</goal>
266                         </goals>
267                     </execution>
268                 </executions>
269             </plugin>
270             <plugin>
271                 <groupId>io.fabric8</groupId>
272                 <artifactId>docker-maven-plugin</artifactId>
273                 <version>${docker-maven-plugin}</version>
274                 <inherited>false</inherited>
275                 <executions>
276                     <execution>
277                         <id>generate-a1policymanagementservice-image</id>
278                         <phase>package</phase>
279                         <goals>
280                             <goal>build</goal>
281                         </goals>
282                         <configuration>
283                             <pullRegistry>${env.CONTAINER_PULL_REGISTRY}</pullRegistry>
284                             <images>
285                                 <image>
286                                     <name>o-ran-sc/nonrtric-plt-a1policymanagementservice:${project.version}</name>
287                                     <build>
288                                         <cleanup>try</cleanup>
289                                         <contextDir>${basedir}</contextDir>
290                                         <dockerFile>Dockerfile</dockerFile>
291                                         <args>
292                                             <JAR>${project.build.finalName}.jar</JAR>
293                                         </args>
294                                         <tags>
295                                             <tag>${project.version}</tag>
296                                         </tags>
297                                     </build>
298                                 </image>
299                             </images>
300                         </configuration>
301                     </execution>
302                     <execution>
303                         <id>push-a1policymanagementservice-image</id>
304                         <goals>
305                             <goal>build</goal>
306                             <goal>push</goal>
307                         </goals>
308                         <configuration>
309                             <pullRegistry>${env.CONTAINER_PULL_REGISTRY}</pullRegistry>
310                             <pushRegistry>${env.CONTAINER_PUSH_REGISTRY}</pushRegistry>
311                             <images>
312                                 <image>
313                                     <name>o-ran-sc/nonrtric-plt-a1policymanagementservice:${project.version}</name>
314                                     <build>
315                                         <contextDir>${basedir}</contextDir>
316                                         <dockerFile>Dockerfile</dockerFile>
317                                         <args>
318                                             <JAR>${project.build.finalName}.jar</JAR>
319                                         </args>
320                                         <tags>
321                                             <tag>${project.version}</tag>
322                                             <tag>latest</tag>
323                                         </tags>
324                                     </build>
325                                 </image>
326                             </images>
327                         </configuration>
328                     </execution>
329                 </executions>
330             </plugin>
331             <!-- support sonar in multi-module project -->
332             <plugin>
333                 <groupId>org.sonarsource.scanner.maven</groupId>
334                 <artifactId>sonar-maven-plugin</artifactId>
335                 <version>${sonar-maven-plugin.version}</version>
336             </plugin>
337             <plugin>
338                 <groupId>org.codehaus.mojo</groupId>
339                 <artifactId>exec-maven-plugin</artifactId>
340                 <version>${exec-maven-plugin.version}</version>
341                 <executions>
342                     <execution>
343                         <id>git submodule update</id>
344                         <phase>initialize</phase>
345                         <configuration>
346                             <executable>git</executable>
347                             <arguments>
348                                 <argument>submodule</argument>
349                                 <argument>update</argument>
350                                 <argument>--init</argument>
351                                 <argument>--recursive</argument>
352                             </arguments>
353                         </configuration>
354                         <goals>
355                             <goal>exec</goal>
356                         </goals>
357                     </execution>
358                     <execution>
359                         <id>copy configuration</id>
360                         <phase>initialize</phase>
361                         <configuration>
362                             <executable>cp</executable>
363                             <arguments>
364                                 <argument>-r</argument>
365                                 <argument>onap/oran/a1-policy-management/config</argument>
366                                 <argument>.</argument>
367                             </arguments>
368                         </configuration>
369                         <goals>
370                             <goal>exec</goal>
371                         </goals>
372                     </execution>
373                 </executions>
374             </plugin>
375         </plugins>
376     </build>
377     <issueManagement>
378         <system>JIRA</system>
379         <url>https://jira.o-ran-sc.org/</url>
380     </issueManagement>
381 </project>