blob: fbfec8d2fd558e778bab74a0f9e80a693233ffa2 [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>
29 <version>2.2.7.RELEASE</version>
30 <relativePath />
31 </parent>
32 <groupId>org.o-ran-sc.nonrtric</groupId>
PatrikBuhrebf32112020-09-16 13:17:29 +020033 <artifactId>enrichment-coordinator-service</artifactId>
PatrikBuhrd77be452020-09-21 14:30:29 +020034 <version>1.0.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>
PatrikBuhrd1d08542020-09-11 16:50:37 +020059 <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.boot</groupId>
81 <artifactId>spring-boot-starter-aop</artifactId>
82 </dependency>
83 <dependency>
84 <groupId>org.springframework.boot</groupId>
85 <artifactId>spring-boot-devtools</artifactId>
86 <optional>true</optional>
87 </dependency>
88 <dependency>
89 <groupId>org.springframework</groupId>
90 <artifactId>spring-webflux</artifactId>
91 </dependency>
92 <dependency>
93 <groupId>io.swagger.core.v3</groupId>
94 <artifactId>swagger-jaxrs2</artifactId>
95 <version>${swagger.version}</version>
96 </dependency>
97 <dependency>
98 <groupId>io.swagger.core.v3</groupId>
99 <artifactId>swagger-jaxrs2-servlet-initializer</artifactId>
100 <version>${swagger.version}</version>
101 </dependency>
102 <dependency>
103 <groupId>javax.xml.bind</groupId>
104 <artifactId>jaxb-api</artifactId>
105 </dependency>
106 <dependency>
107 <groupId>org.immutables</groupId>
108 <artifactId>value</artifactId>
109 <version>${immutable.version}</version>
110 <scope>provided</scope>
111 </dependency>
112 <dependency>
113 <groupId>org.immutables</groupId>
114 <artifactId>gson</artifactId>
115 <version>${immutable.version}</version>
116 </dependency>
117 <dependency>
118 <groupId>org.json</groupId>
119 <artifactId>json</artifactId>
120 <version>${json.version}</version>
121 </dependency>
122 <dependency>
123 <groupId>commons-net</groupId>
124 <artifactId>commons-net</artifactId>
125 <version>${commons-net.version}</version>
126 </dependency>
127 <dependency>
128 <groupId>org.springframework.boot</groupId>
129 <artifactId>spring-boot-configuration-processor</artifactId>
130 <optional>true</optional>
131 </dependency>
132 <dependency>
133 <groupId>org.onap.dcaegen2.services.sdk.rest.services</groupId>
134 <artifactId>cbs-client</artifactId>
135 <version>${sdk.version}</version>
136 </dependency>
137 <dependency>
138 <groupId>org.projectlombok</groupId>
139 <artifactId>lombok</artifactId>
140 <scope>provided</scope>
141 </dependency>
142 <dependency>
143 <groupId>org.onap.dmaap.messagerouter.dmaapclient</groupId>
144 <artifactId>dmaapClient</artifactId>
145 <version>${version.dmaap}</version>
146 </dependency>
147 <dependency>
148 <groupId>javax.ws.rs</groupId>
149 <artifactId>javax.ws.rs-api</artifactId>
150 <version>${javax.ws.rs-api.version}</version>
151 </dependency>
152 <dependency>
153 <groupId>org.glassfish.jersey.inject</groupId>
154 <artifactId>jersey-hk2</artifactId>
155 </dependency>
PatrikBuhr57b7c522020-09-18 15:13:03 +0200156 <!-- https://mvnrepository.com/artifact/com.github.erosb/everit-json-schema -->
157 <dependency>
158 <groupId>com.github.erosb</groupId>
159 <artifactId>everit-json-schema</artifactId>
160 <version>1.12.1</version>
161 </dependency>
PatrikBuhrd1d08542020-09-11 16:50:37 +0200162 <!-- Actuator dependencies -->
163 <dependency>
164 <groupId>org.springframework.boot</groupId>
165 <artifactId>spring-boot-starter-actuator</artifactId>
166 </dependency>
167 <!--REQUIRED TO GENERATE DOCUMENTATION -->
168 <dependency>
169 <groupId>io.springfox</groupId>
170 <artifactId>springfox-swagger2</artifactId>
171 <version>${springfox.version}</version>
172 </dependency>
173 <dependency>
174 <groupId>io.springfox</groupId>
175 <artifactId>springfox-swagger-ui</artifactId>
176 <version>${springfox.version}</version>
177 </dependency>
178 <!-- TEST -->
179 <dependency>
180 <groupId>org.springframework.boot</groupId>
181 <artifactId>spring-boot-starter-test</artifactId>
182 <scope>test</scope>
183 </dependency>
184 <dependency>
185 <groupId>org.awaitility</groupId>
186 <artifactId>awaitility</artifactId>
187 <scope>test</scope>
188 </dependency>
189 <dependency>
190 <groupId>io.projectreactor</groupId>
191 <artifactId>reactor-test</artifactId>
192 <scope>test</scope>
193 </dependency>
194 <dependency>
195 <groupId>org.junit.jupiter</groupId>
196 <artifactId>junit-jupiter-engine</artifactId>
197 <scope>test</scope>
198 </dependency>
199 <dependency>
200 <groupId>org.mockito</groupId>
201 <artifactId>mockito-junit-jupiter</artifactId>
202 <scope>test</scope>
203 </dependency>
204 <dependency>
205 <groupId>org.mockito</groupId>
206 <artifactId>mockito-core</artifactId>
207 <scope>test</scope>
208 </dependency>
209 <dependency>
210 <groupId>com.squareup.okhttp3</groupId>
211 <artifactId>mockwebserver</artifactId>
212 <scope>test</scope>
213 </dependency>
214 </dependencies>
215 <build>
216 <plugins>
217 <plugin>
218 <groupId>org.springframework.boot</groupId>
219 <artifactId>spring-boot-maven-plugin</artifactId>
220 </plugin>
221 <plugin>
222 <groupId>net.revelc.code.formatter</groupId>
223 <artifactId>formatter-maven-plugin</artifactId>
224 <version>${formatter-maven-plugin.version}</version>
225 <configuration>
226 <configFile>${project.basedir}/eclipse-formatter.xml</configFile>
227 </configuration>
228 <!-- https://code.revelc.net/formatter-maven-plugin/ use mvn formatter:format
229 spotless:apply process-sources -->
230 </plugin>
231 <plugin>
232 <groupId>com.diffplug.spotless</groupId>
233 <artifactId>spotless-maven-plugin</artifactId>
234 <version>${spotless-maven-plugin.version}</version>
235 <configuration>
236 <java>
237 <removeUnusedImports />
238 <importOrder>
239 <order>com,java,javax,org</order>
240 </importOrder>
241 </java>
242 </configuration>
243 <!-- https://github.com/diffplug/spotless/tree/master/plugin-maven use
244 mvn spotless:apply to rewrite source files use mvn spotless:check to validate
245 source files -->
246 </plugin>
247 <plugin>
248 <groupId>org.apache.maven.plugins</groupId>
249 <artifactId>maven-surefire-plugin</artifactId>
250 <configuration>
251 <skipTests>false</skipTests>
252 </configuration>
253 </plugin>
254 <plugin>
255 <artifactId>maven-failsafe-plugin</artifactId>
256 </plugin>
257 <plugin>
258 <groupId>org.codehaus.mojo</groupId>
259 <artifactId>build-helper-maven-plugin</artifactId>
260 <executions>
261 <execution>
262 <id>add-source</id>
263 <phase>generate-sources</phase>
264 <goals>
265 <goal>add-source</goal>
266 </goals>
267 <configuration>
268 <sources>
269 <source>${project.build.directory}/generated-sources/annotations/</source>
270 </sources>
271 </configuration>
272 </execution>
273 </executions>
274 </plugin>
275 <plugin>
276 <groupId>org.jacoco</groupId>
277 <artifactId>jacoco-maven-plugin</artifactId>
278 <version>${jacoco-maven-plugin.version}</version>
279 <executions>
280 <execution>
281 <id>default-prepare-agent</id>
282 <goals>
283 <goal>prepare-agent</goal>
284 </goals>
285 </execution>
286 <execution>
287 <id>default-report</id>
288 <phase>prepare-package</phase>
289 <goals>
290 <goal>report</goal>
291 </goals>
292 </execution>
293 </executions>
294 </plugin>
295 <plugin>
296 <groupId>io.fabric8</groupId>
297 <artifactId>docker-maven-plugin</artifactId>
298 <version>${docker-maven-plugin}</version>
299 <inherited>false</inherited>
300 <executions>
301 <execution>
PatrikBuhrebf32112020-09-16 13:17:29 +0200302 <id>generate-enrichment-coordinator-service-image</id>
PatrikBuhrd1d08542020-09-11 16:50:37 +0200303 <phase>package</phase>
304 <goals>
305 <goal>build</goal>
306 </goals>
307 <configuration>
308 <pullRegistry>${env.CONTAINER_PULL_REGISTRY}</pullRegistry>
309 <images>
310 <image>
PatrikBuhrebf32112020-09-16 13:17:29 +0200311 <name>o-ran-sc/nonrtric-enrichment-coordinator-service:${project.version}</name>
PatrikBuhrd1d08542020-09-11 16:50:37 +0200312 <build>
313 <cleanup>try</cleanup>
314 <contextDir>${basedir}</contextDir>
315 <dockerFile>Dockerfile</dockerFile>
316 <args>
317 <JAR>${project.build.finalName}.jar</JAR>
318 </args>
319 <tags>
320 <tag>${project.version}</tag>
321 </tags>
322 </build>
323 </image>
324 </images>
325 </configuration>
326 </execution>
327 <execution>
PatrikBuhrebf32112020-09-16 13:17:29 +0200328 <id>push-enrichment-coordinator-service-image</id>
PatrikBuhrd1d08542020-09-11 16:50:37 +0200329 <goals>
330 <goal>build</goal>
331 <goal>push</goal>
332 </goals>
333 <configuration>
334 <pullRegistry>${env.CONTAINER_PULL_REGISTRY}</pullRegistry>
335 <pushRegistry>${env.CONTAINER_PUSH_REGISTRY}</pushRegistry>
336 <images>
337 <image>
PatrikBuhrebf32112020-09-16 13:17:29 +0200338 <name>o-ran-sc/nonrtric-enrichment-coordinator-service:${project.version}</name>
PatrikBuhrd1d08542020-09-11 16:50:37 +0200339 <build>
340 <contextDir>${basedir}</contextDir>
341 <dockerFile>Dockerfile</dockerFile>
342 <args>
343 <JAR>${project.build.finalName}.jar</JAR>
344 </args>
345 <tags>
346 <tag>${project.version}</tag>
347 <tag>latest</tag>
348 </tags>
349 </build>
350 </image>
351 </images>
352 </configuration>
353 </execution>
354 </executions>
355 </plugin>
356 <!-- support sonar in multi-module project -->
357 <plugin>
358 <groupId>org.sonarsource.scanner.maven</groupId>
359 <artifactId>sonar-maven-plugin</artifactId>
360 <version>${sonar-maven-plugin.version}</version>
361 </plugin>
PatrikBuhrd1d08542020-09-11 16:50:37 +0200362 </plugins>
363 </build>
364 <issueManagement>
365 <system>JIRA</system>
366 <url>https://jira.o-ran-sc.org/</url>
367 </issueManagement>
368</project>