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