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