blob: 2a653150e0e755f94ae4ba0415134f42afdd2343 [file] [log] [blame]
PatrikBuhrd1d08542020-09-11 16:50:37 +02001<?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>
PatrikBuhr2fca44b2020-09-23 14:25:25 +020029 <version>2.3.4.RELEASE</version>
PatrikBuhrd1d08542020-09-11 16:50:37 +020030 <relativePath />
31 </parent>
32 <groupId>org.o-ran-sc.nonrtric</groupId>
PatrikBuhrebf32112020-09-16 13:17:29 +020033 <artifactId>enrichment-coordinator-service</artifactId>
elinuxhenrik32157222020-12-03 15:56:17 +010034 <version>1.1.0-SNAPSHOT</version>
PatrikBuhrd1d08542020-09-11 16:50:37 +020035 <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>
PatrikBuhrebf32112020-09-16 13:17:29 +020057 <formatter-maven-plugin.version>2.12.2</formatter-maven-plugin.version>
58 <spotless-maven-plugin.version>1.24.3</spotless-maven-plugin.version>
elinuxhenrik7a09fbb2020-12-04 16:51:19 +010059 <swagger-codegen-maven-plugin.version>3.0.11</swagger-codegen-maven-plugin.version>
PatrikBuhrd1d08542020-09-11 16:50:37 +020060 <docker-maven-plugin>0.30.0</docker-maven-plugin>
61 <version.dmaap>1.1.11</version.dmaap>
62 <javax.ws.rs-api.version>2.1.1</javax.ws.rs-api.version>
63 <sonar-maven-plugin.version>3.7.0.1746</sonar-maven-plugin.version>
64 <jacoco-maven-plugin.version>0.8.5</jacoco-maven-plugin.version>
65 <exec.skip>true</exec.skip>
66 </properties>
67 <dependencies>
68 <dependency>
69 <groupId>org.springframework.boot</groupId>
70 <artifactId>spring-boot-starter-web</artifactId>
71 </dependency>
72 <dependency>
73 <groupId>org.springframework.boot</groupId>
74 <artifactId>spring-boot-starter-thymeleaf</artifactId>
75 </dependency>
76 <dependency>
77 <groupId>org.springframework.boot</groupId>
78 <artifactId>spring-boot-starter-webflux</artifactId>
79 </dependency>
80 <dependency>
PatrikBuhrd1d08542020-09-11 16:50:37 +020081 <groupId>org.springframework</groupId>
82 <artifactId>spring-webflux</artifactId>
83 </dependency>
84 <dependency>
85 <groupId>io.swagger.core.v3</groupId>
86 <artifactId>swagger-jaxrs2</artifactId>
87 <version>${swagger.version}</version>
88 </dependency>
89 <dependency>
90 <groupId>io.swagger.core.v3</groupId>
91 <artifactId>swagger-jaxrs2-servlet-initializer</artifactId>
92 <version>${swagger.version}</version>
93 </dependency>
94 <dependency>
95 <groupId>javax.xml.bind</groupId>
96 <artifactId>jaxb-api</artifactId>
97 </dependency>
98 <dependency>
99 <groupId>org.immutables</groupId>
100 <artifactId>value</artifactId>
101 <version>${immutable.version}</version>
102 <scope>provided</scope>
103 </dependency>
104 <dependency>
105 <groupId>org.immutables</groupId>
106 <artifactId>gson</artifactId>
107 <version>${immutable.version}</version>
108 </dependency>
109 <dependency>
110 <groupId>org.json</groupId>
111 <artifactId>json</artifactId>
112 <version>${json.version}</version>
113 </dependency>
114 <dependency>
115 <groupId>commons-net</groupId>
116 <artifactId>commons-net</artifactId>
117 <version>${commons-net.version}</version>
118 </dependency>
119 <dependency>
PatrikBuhrd1d08542020-09-11 16:50:37 +0200120 <groupId>org.onap.dcaegen2.services.sdk.rest.services</groupId>
121 <artifactId>cbs-client</artifactId>
122 <version>${sdk.version}</version>
123 </dependency>
124 <dependency>
125 <groupId>org.projectlombok</groupId>
126 <artifactId>lombok</artifactId>
127 <scope>provided</scope>
128 </dependency>
129 <dependency>
PatrikBuhrd1d08542020-09-11 16:50:37 +0200130 <groupId>javax.ws.rs</groupId>
131 <artifactId>javax.ws.rs-api</artifactId>
132 <version>${javax.ws.rs-api.version}</version>
133 </dependency>
PatrikBuhr57b7c522020-09-18 15:13:03 +0200134 <!-- https://mvnrepository.com/artifact/com.github.erosb/everit-json-schema -->
135 <dependency>
136 <groupId>com.github.erosb</groupId>
137 <artifactId>everit-json-schema</artifactId>
138 <version>1.12.1</version>
139 </dependency>
PatrikBuhrd1d08542020-09-11 16:50:37 +0200140 <!-- Actuator dependencies -->
141 <dependency>
142 <groupId>org.springframework.boot</groupId>
143 <artifactId>spring-boot-starter-actuator</artifactId>
144 </dependency>
145 <!--REQUIRED TO GENERATE DOCUMENTATION -->
146 <dependency>
147 <groupId>io.springfox</groupId>
148 <artifactId>springfox-swagger2</artifactId>
149 <version>${springfox.version}</version>
150 </dependency>
151 <dependency>
152 <groupId>io.springfox</groupId>
153 <artifactId>springfox-swagger-ui</artifactId>
154 <version>${springfox.version}</version>
155 </dependency>
elinuxhenrik2a427712020-09-30 15:10:16 +0200156 <!-- For development help -->
157 <dependency>
158 <groupId>org.springframework.boot</groupId>
159 <artifactId>spring-boot-devtools</artifactId>
160 <optional>true</optional>
161 </dependency>
162 <dependency>
163 <groupId>org.springframework.boot</groupId>
164 <artifactId>spring-boot-configuration-processor</artifactId>
165 <optional>true</optional>
166 </dependency>
PatrikBuhrd1d08542020-09-11 16:50:37 +0200167 <!-- TEST -->
168 <dependency>
169 <groupId>org.springframework.boot</groupId>
170 <artifactId>spring-boot-starter-test</artifactId>
171 <scope>test</scope>
172 </dependency>
173 <dependency>
174 <groupId>org.awaitility</groupId>
175 <artifactId>awaitility</artifactId>
176 <scope>test</scope>
177 </dependency>
178 <dependency>
179 <groupId>io.projectreactor</groupId>
180 <artifactId>reactor-test</artifactId>
181 <scope>test</scope>
182 </dependency>
183 <dependency>
184 <groupId>org.junit.jupiter</groupId>
185 <artifactId>junit-jupiter-engine</artifactId>
186 <scope>test</scope>
187 </dependency>
188 <dependency>
189 <groupId>org.mockito</groupId>
190 <artifactId>mockito-junit-jupiter</artifactId>
191 <scope>test</scope>
192 </dependency>
193 <dependency>
194 <groupId>org.mockito</groupId>
195 <artifactId>mockito-core</artifactId>
196 <scope>test</scope>
197 </dependency>
198 <dependency>
199 <groupId>com.squareup.okhttp3</groupId>
200 <artifactId>mockwebserver</artifactId>
201 <scope>test</scope>
202 </dependency>
203 </dependencies>
204 <build>
205 <plugins>
206 <plugin>
207 <groupId>org.springframework.boot</groupId>
208 <artifactId>spring-boot-maven-plugin</artifactId>
209 </plugin>
210 <plugin>
211 <groupId>net.revelc.code.formatter</groupId>
212 <artifactId>formatter-maven-plugin</artifactId>
213 <version>${formatter-maven-plugin.version}</version>
214 <configuration>
215 <configFile>${project.basedir}/eclipse-formatter.xml</configFile>
216 </configuration>
217 <!-- https://code.revelc.net/formatter-maven-plugin/ use mvn formatter:format
218 spotless:apply process-sources -->
219 </plugin>
220 <plugin>
221 <groupId>com.diffplug.spotless</groupId>
222 <artifactId>spotless-maven-plugin</artifactId>
223 <version>${spotless-maven-plugin.version}</version>
224 <configuration>
225 <java>
226 <removeUnusedImports />
227 <importOrder>
228 <order>com,java,javax,org</order>
229 </importOrder>
230 </java>
231 </configuration>
232 <!-- https://github.com/diffplug/spotless/tree/master/plugin-maven use
233 mvn spotless:apply to rewrite source files use mvn spotless:check to validate
234 source files -->
235 </plugin>
236 <plugin>
237 <groupId>org.apache.maven.plugins</groupId>
238 <artifactId>maven-surefire-plugin</artifactId>
239 <configuration>
240 <skipTests>false</skipTests>
241 </configuration>
242 </plugin>
243 <plugin>
244 <artifactId>maven-failsafe-plugin</artifactId>
245 </plugin>
246 <plugin>
247 <groupId>org.codehaus.mojo</groupId>
248 <artifactId>build-helper-maven-plugin</artifactId>
249 <executions>
250 <execution>
251 <id>add-source</id>
252 <phase>generate-sources</phase>
253 <goals>
254 <goal>add-source</goal>
255 </goals>
256 <configuration>
257 <sources>
258 <source>${project.build.directory}/generated-sources/annotations/</source>
259 </sources>
260 </configuration>
261 </execution>
262 </executions>
263 </plugin>
264 <plugin>
265 <groupId>org.jacoco</groupId>
266 <artifactId>jacoco-maven-plugin</artifactId>
267 <version>${jacoco-maven-plugin.version}</version>
268 <executions>
269 <execution>
270 <id>default-prepare-agent</id>
271 <goals>
272 <goal>prepare-agent</goal>
273 </goals>
274 </execution>
275 <execution>
276 <id>default-report</id>
277 <phase>prepare-package</phase>
278 <goals>
279 <goal>report</goal>
280 </goals>
281 </execution>
282 </executions>
283 </plugin>
284 <plugin>
elinuxhenrik7a09fbb2020-12-04 16:51:19 +0100285 <groupId>io.swagger.codegen.v3</groupId>
286 <artifactId>swagger-codegen-maven-plugin</artifactId>
287 <version>${swagger-codegen-maven-plugin.version}</version>
288 <executions>
289 <execution>
290 <phase>test</phase>
291 <goals>
292 <goal>generate</goal>
293 </goals>
294 <configuration>
295 <inputSpec>${project.basedir}/api/ecs-api.json</inputSpec>
296 <language>openapi-yaml</language>
297 <output>${project.basedir}/api</output>
298 <configOptions>
299 <outputFile>ecs-api.yaml</outputFile>
300 </configOptions>
301 </configuration>
302 </execution>
303 </executions>
304 </plugin>
305 <plugin>
PatrikBuhrd1d08542020-09-11 16:50:37 +0200306 <groupId>io.fabric8</groupId>
307 <artifactId>docker-maven-plugin</artifactId>
308 <version>${docker-maven-plugin}</version>
309 <inherited>false</inherited>
310 <executions>
311 <execution>
PatrikBuhrebf32112020-09-16 13:17:29 +0200312 <id>generate-enrichment-coordinator-service-image</id>
PatrikBuhrd1d08542020-09-11 16:50:37 +0200313 <phase>package</phase>
314 <goals>
315 <goal>build</goal>
316 </goals>
317 <configuration>
318 <pullRegistry>${env.CONTAINER_PULL_REGISTRY}</pullRegistry>
319 <images>
320 <image>
PatrikBuhrebf32112020-09-16 13:17:29 +0200321 <name>o-ran-sc/nonrtric-enrichment-coordinator-service:${project.version}</name>
PatrikBuhrd1d08542020-09-11 16:50:37 +0200322 <build>
323 <cleanup>try</cleanup>
324 <contextDir>${basedir}</contextDir>
325 <dockerFile>Dockerfile</dockerFile>
326 <args>
327 <JAR>${project.build.finalName}.jar</JAR>
328 </args>
329 <tags>
330 <tag>${project.version}</tag>
331 </tags>
332 </build>
333 </image>
334 </images>
335 </configuration>
336 </execution>
337 <execution>
PatrikBuhrebf32112020-09-16 13:17:29 +0200338 <id>push-enrichment-coordinator-service-image</id>
PatrikBuhrd1d08542020-09-11 16:50:37 +0200339 <goals>
340 <goal>build</goal>
341 <goal>push</goal>
342 </goals>
343 <configuration>
344 <pullRegistry>${env.CONTAINER_PULL_REGISTRY}</pullRegistry>
345 <pushRegistry>${env.CONTAINER_PUSH_REGISTRY}</pushRegistry>
346 <images>
347 <image>
PatrikBuhrebf32112020-09-16 13:17:29 +0200348 <name>o-ran-sc/nonrtric-enrichment-coordinator-service:${project.version}</name>
PatrikBuhrd1d08542020-09-11 16:50:37 +0200349 <build>
350 <contextDir>${basedir}</contextDir>
351 <dockerFile>Dockerfile</dockerFile>
352 <args>
353 <JAR>${project.build.finalName}.jar</JAR>
354 </args>
355 <tags>
356 <tag>${project.version}</tag>
357 <tag>latest</tag>
358 </tags>
359 </build>
360 </image>
361 </images>
362 </configuration>
363 </execution>
364 </executions>
365 </plugin>
366 <!-- support sonar in multi-module project -->
367 <plugin>
368 <groupId>org.sonarsource.scanner.maven</groupId>
369 <artifactId>sonar-maven-plugin</artifactId>
370 <version>${sonar-maven-plugin.version}</version>
371 </plugin>
PatrikBuhrd1d08542020-09-11 16:50:37 +0200372 </plugins>
373 </build>
374 <issueManagement>
375 <system>JIRA</system>
376 <url>https://jira.o-ran-sc.org/</url>
377 </issueManagement>
378</project>