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