1 <?xml version="1.0" encoding="UTF-8"?>
3 ~ ============LICENSE_START=======================================================
4 ~ dcaegen2-collectors-veshv
5 ~ ================================================================================
6 ~ Copyright (C) 2018-2019 NOKIA
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
12 ~ http://www.apache.org/licenses/LICENSE-2.0
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=========================================================
21 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
22 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
24 <modelVersion>4.0.0</modelVersion>
28 <name>The Apache Software License, Version 2.0</name>
29 <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
34 <groupId>org.onap.oparent</groupId>
35 <artifactId>oparent</artifactId>
36 <version>3.0.0</version>
40 <groupId>org.onap.dcaegen2.collectors.hv-ves</groupId>
41 <artifactId>ves-hv-collector</artifactId>
42 <version>1.5.0-SNAPSHOT</version>
43 <name>dcaegen2-collectors-veshv</name>
44 <description>VES HighVolume Collector</description>
45 <packaging>pom</packaging>
48 <module>build</module>
49 <module>sources</module>
53 <coroutines.version>1.3.0-M2</coroutines.version>
54 <kotlin.version>1.3.31</kotlin.version>
55 <arrow.version>0.9.0</arrow.version>
56 <maven-compiler-plugin.version>3.7.0</maven-compiler-plugin.version>
57 <build-helper-maven-plugin.version>1.7</build-helper-maven-plugin.version>
58 <jacoco.version>0.8.3</jacoco.version>
59 <detekt.version>1.0.0-RC14</detekt.version>
60 <sdk.version>1.3.4</sdk.version>
62 <!-- Protocol buffers -->
63 <protobuf.version>3.6.1</protobuf.version>
65 <!-- Testing and code analysis -->
66 <junit-platform.version>1.2.0-RC1</junit-platform.version>
67 <junit-jupiter.version>5.2.0-RC1</junit-jupiter.version>
68 <spek.version>1.1.5</spek.version>
69 <gson.version>2.8.5</gson.version>
70 <maven-surefire-plugin.version>2.22.0</maven-surefire-plugin.version>
71 <failIfMissingUnitTests>false</failIfMissingUnitTests>
72 <failIfMissingComponentTests>false</failIfMissingComponentTests>
73 <skipAnalysis>true</skipAnalysis>
74 <jacoco.minimum.coverage>60</jacoco.minimum.coverage>
75 <skipEnforcer>true</skipEnforcer>
76 <!--Specify path to load jacoco xml report, as Sonar can't load Kotlin coverage from binary report. -->
77 <sonar.coverage.jacoco.xmlReportPaths>
78 ${project.basedir}/../../build/hv-collector-coverage/target/site/jacoco-aggregate/jacoco.xml
79 </sonar.coverage.jacoco.xmlReportPaths>
82 <skipDocker>false</skipDocker>
83 <skipDockerPush>true</skipDockerPush>
84 <maven.build.timestamp.format>yyyyMMdd'T'HHmmss</maven.build.timestamp.format>
85 <docker-image.registry>${onap.nexus.dockerregistry.daily}</docker-image.registry>
86 <docker-image.namespace>onap</docker-image.namespace>
87 <docker-image.name>${project.groupId}.${project.artifactId}</docker-image.name>
88 <docker-image.latest>1.2-SNAPSHOT</docker-image.latest>
93 <sourceDirectory>${project.basedir}/src/main/kotlin</sourceDirectory>
94 <testSourceDirectory>${project.basedir}/src/test/kotlin</testSourceDirectory>
97 <directory>${project.basedir}/src/main/resources</directory>
103 <groupId>org.apache.maven.plugins</groupId>
104 <artifactId>maven-resources-plugin</artifactId>
105 <version>3.1.0</version>
107 <encoding>UTF-8</encoding>
111 <groupId>org.apache.maven.plugins</groupId>
112 <artifactId>maven-deploy-plugin</artifactId>
115 <groupId>org.apache.maven.plugins</groupId>
116 <artifactId>maven-enforcer-plugin</artifactId>
118 <skip>${skipEnforcer}</skip>
122 <artifactId>kotlin-maven-plugin</artifactId>
123 <groupId>org.jetbrains.kotlin</groupId>
124 <version>${kotlin.version}</version>
126 <jvmTarget>11</jvmTarget>
136 <source>${project.build.sourceDirectory}</source>
137 <source>${project.build.directory}/generated-sources/annotations</source>
142 <id>test-compile</id>
144 <goal>test-compile</goal>
148 <source>${project.build.testSourceDirectory}</source>
155 <groupId>org.apache.maven.plugins</groupId>
156 <artifactId>maven-compiler-plugin</artifactId>
157 <version>${maven-compiler-plugin.version}</version>
161 <encoding>UTF-8</encoding>
162 <showWarnings>true</showWarnings>
163 <showDeprecation>true</showDeprecation>
164 <failOnWarning>false</failOnWarning>
168 <groupId>org.ow2.asm</groupId>
169 <artifactId>asm</artifactId>
170 <version>6.1.1</version> <!-- Use newer version of ASM -->
175 Due to a memory leak in Surefire 2.20 and issues running on Java 9, the junit-platform-surefire-provider
176 currently only works with Surefire 2.19.1.
177 For updates see https://junit.org/junit5/docs/current/user-guide/#running-tests-build-maven
180 <artifactId>maven-surefire-plugin</artifactId>
181 <groupId>org.apache.maven.plugins</groupId>
182 <version>${maven-surefire-plugin.version}</version>
184 <failIfNoTests>${failIfMissingUnitTests}</failIfNoTests>
185 <forkCount>1</forkCount>
187 <include>**/*Test.*</include>
192 <groupId>org.apache.commons</groupId>
193 <artifactId>commons-lang3</artifactId>
194 <version>3.7</version>
197 <groupId>org.junit.platform</groupId>
198 <artifactId>junit-platform-surefire-provider</artifactId>
199 <version>${junit-platform.version}</version>
200 <scope>runtime</scope>
203 <groupId>org.jetbrains.spek</groupId>
204 <artifactId>spek-junit-platform-engine</artifactId>
205 <version>${spek.version}</version>
206 <scope>runtime</scope>
211 <groupId>org.apache.maven.plugins</groupId>
212 <artifactId>maven-failsafe-plugin</artifactId>
213 <version>2.22.0</version>
215 <failIfNoTests>${failIfMissingComponentTests}</failIfNoTests>
216 <forkCount>1</forkCount>
218 <include>**/*Specification.*</include>
223 <groupId>org.apache.commons</groupId>
224 <artifactId>commons-lang3</artifactId>
225 <version>3.7</version>
228 <groupId>org.junit.platform</groupId>
229 <artifactId>junit-platform-surefire-provider</artifactId>
230 <version>${junit-platform.version}</version>
231 <scope>runtime</scope>
234 <groupId>org.jetbrains.spek</groupId>
235 <artifactId>spek-junit-platform-engine</artifactId>
236 <version>${spek.version}</version>
237 <scope>runtime</scope>
242 <groupId>org.codehaus.mojo</groupId>
243 <artifactId>exec-maven-plugin</artifactId>
244 <version>1.6.0</version>
250 <groupId>kr.motd.maven</groupId>
251 <artifactId>os-maven-plugin</artifactId>
252 <version>1.6.0</version>
259 <id>docker-proxy</id>
262 <name>docker.http_proxy</name>
266 <!-- set build args as defined in https://dmp.fabric8.io/#build-buildargs -->
267 <docker.buildArg.http_proxy>${docker.http_proxy}</docker.buildArg.http_proxy>
268 <docker.buildArg.https_proxy>${docker.http_proxy}</docker.buildArg.https_proxy>
276 <name>!skipDocker</name>
280 <os.detected.name>linux</os.detected.name>
281 <os.detected.arch>x86_64</os.detected.arch>
282 <os.detected.classifier>${os.detected.name}-${os.detected.arch}</os.detected.classifier>
288 <groupId>org.apache.maven.plugins</groupId>
289 <artifactId>maven-dependency-plugin</artifactId>
290 <version>3.1.1</version>
293 <id>docker-copy-internal-deps</id>
294 <phase>package</phase>
296 <goal>copy-dependencies</goal>
299 <outputDirectory>${project.build.directory}/libs/internal</outputDirectory>
300 <includeGroupIds>${project.parent.groupId}</includeGroupIds>
301 <includeScope>runtime</includeScope>
305 <id>docker-copy-external-deps</id>
306 <phase>package</phase>
308 <goal>copy-dependencies</goal>
311 <outputDirectory>${project.build.directory}/libs/external</outputDirectory>
312 <excludeGroupIds>${project.parent.groupId}</excludeGroupIds>
313 <includeScope>runtime</includeScope>
319 <groupId>io.fabric8</groupId>
320 <artifactId>docker-maven-plugin</artifactId>
321 <version>0.30.0</version>
324 <id>docker-build-image</id>
325 <phase>package</phase>
331 <id>docker-push-image</id>
332 <phase>deploy</phase>
339 <skipPush>${skipDockerPush}</skipPush>
340 <verbose>true</verbose>
341 <imagePullPolicy>IfNotPresent</imagePullPolicy>
344 <alias>${project.artifactId}</alias>
345 <name>${docker-image.namespace}/${docker-image.name}
347 <registry>${docker-image.registry}</registry>
349 <dockerFileDir>${project.basedir}</dockerFileDir>
351 <tag>${project.version}-${maven.build.timestamp}Z</tag>
352 <tag>${project.version}</tag>
353 <tag>${docker-image.latest}</tag>
368 <id>arturbosch-code-analysis</id>
369 <name>arturbosch-code-analysis (for detekt)</name>
370 <url>https://dl.bintray.com/arturbosch/code-analysis/</url>
371 <layout>default</layout>
373 <enabled>true</enabled>
374 <updatePolicy>never</updatePolicy>
377 <enabled>false</enabled>
378 <updatePolicy>never</updatePolicy>
381 </pluginRepositories>
385 <id>40_openecomp-release</id>
386 <name>40_openecomp-release</name>
387 <url>https://nexus.onap.org/content/repositories/releases/</url>
389 <enabled>true</enabled>
390 <updatePolicy>daily</updatePolicy>
393 <enabled>false</enabled>
398 <dependencyManagement>
401 <groupId>com.google.guava</groupId>
402 <artifactId>guava</artifactId>
403 <version>27.0.1-jre</version>
406 <groupId>com.google.code.findbugs</groupId>
407 <artifactId>jsr305</artifactId>
412 <groupId>org.jetbrains.kotlin</groupId>
413 <artifactId>kotlin-bom</artifactId>
414 <version>${kotlin.version}</version>
416 <scope>import</scope>
419 <groupId>org.jetbrains.kotlin</groupId>
420 <artifactId>kotlin-compiler-embeddable</artifactId>
421 <version>${kotlin.version}</version>
424 <groupId>org.jetbrains.kotlin</groupId>
425 <artifactId>kotlin-scripting-compiler-embeddable</artifactId>
426 <version>${kotlin.version}</version>
429 <groupId>org.jetbrains.kotlin</groupId>
430 <artifactId>kotlin-script-util</artifactId>
431 <version>${kotlin.version}</version>
432 <scope>runtime</scope>
435 <groupId>org.jetbrains.kotlinx</groupId>
436 <artifactId>kotlinx-coroutines-core</artifactId>
437 <version>${coroutines.version}</version>
440 <groupId>com.google.code.gson</groupId>
441 <artifactId>gson</artifactId>
442 <version>${gson.version}</version>
445 <groupId>io.arrow-kt</groupId>
446 <artifactId>arrow-core-data</artifactId>
447 <version>${arrow.version}</version>
450 <groupId>io.arrow-kt</groupId>
451 <artifactId>arrow-core-extensions</artifactId>
452 <version>${arrow.version}</version>
455 <groupId>io.arrow-kt</groupId>
456 <artifactId>arrow-extras-data</artifactId>
457 <version>${arrow.version}</version>
460 <groupId>io.arrow-kt</groupId>
461 <artifactId>arrow-syntax</artifactId>
462 <version>${arrow.version}</version>
465 <groupId>io.arrow-kt</groupId>
466 <artifactId>arrow-typeclasses</artifactId>
467 <version>${arrow.version}</version>
470 <groupId>ch.qos.logback</groupId>
471 <artifactId>logback-classic</artifactId>
472 <version>1.3.0-alpha4</version>
473 <scope>runtime</scope>
476 <groupId>org.slf4j</groupId>
477 <artifactId>slf4j-api</artifactId>
478 <version>1.8.0-beta1</version>
481 <groupId>io.projectreactor.netty</groupId>
482 <artifactId>reactor-netty</artifactId>
483 <version>0.9.5.RELEASE</version>
486 <groupId>io.projectreactor</groupId>
487 <artifactId>reactor-bom</artifactId>
488 <!-- remember to update netty native bindings versions -->
489 <version>Dysprosium-SR1</version>
491 <scope>import</scope>
493 <!-- Due to security reasons, override transitive kafka-clients dependency version (2.0.0 -> 2.3.1) -->
495 <groupId>org.apache.kafka</groupId>
496 <artifactId>kafka-clients</artifactId>
497 <version>2.3.1</version>
500 Disable native extension (epoll) on production for now.
501 Might be reintroduced if performance tests prove there is some performance issue.
505 <groupId>io.netty</groupId>
506 <artifactId>netty-transport-native-epoll</artifactId>
507 <version>4.1.29.Final</version>
508 <classifier>${os.detected.classifier}</classifier>
512 <groupId>com.google.protobuf</groupId>
513 <artifactId>protobuf-java-util</artifactId>
514 <version>${protobuf.version}</version>
517 <groupId>com.google.guava</groupId>
518 <artifactId>guava</artifactId>
523 <groupId>commons-cli</groupId>
524 <artifactId>commons-cli</artifactId>
525 <version>1.4</version>
528 <groupId>javax.json</groupId>
529 <artifactId>javax.json-api</artifactId>
530 <version>1.1.2</version>
533 <groupId>org.glassfish</groupId>
534 <artifactId>javax.json</artifactId>
535 <version>1.1.2</version>
538 <groupId>io.micrometer</groupId>
539 <artifactId>micrometer-registry-prometheus</artifactId>
540 <version>1.1.5</version>
543 <groupId>org.onap.dcaegen2.services.sdk</groupId>
544 <artifactId>hvvesclient-producer-impl</artifactId>
545 <version>${sdk.version}</version>
546 <scope>runtime</scope>
549 <groupId>org.onap.dcaegen2.services.sdk</groupId>
550 <artifactId>hvvesclient-producer-api</artifactId>
551 <version>${sdk.version}</version>
554 <groupId>org.onap.dcaegen2.services.sdk</groupId>
555 <artifactId>hvvesclient-protobuf</artifactId>
556 <version>${sdk.version}</version>
559 <groupId>org.onap.dcaegen2.services.sdk.security</groupId>
560 <artifactId>ssl</artifactId>
561 <version>${sdk.version}</version>
564 <groupId>org.onap.dcaegen2.services.sdk.rest.services</groupId>
565 <artifactId>cbs-client</artifactId>
566 <version>${sdk.version}</version>
569 <!-- Test dependencies -->
572 <groupId>org.jetbrains.spek</groupId>
573 <artifactId>spek-api</artifactId>
574 <version>${spek.version}</version>
578 <groupId>org.jetbrains.spek</groupId>
579 <artifactId>spek-junit-platform-engine</artifactId>
580 <version>${spek.version}</version>
584 <groupId>org.assertj</groupId>
585 <artifactId>assertj-core</artifactId>
586 <version>3.9.1</version>
590 <groupId>com.nhaarman.mockitokotlin2</groupId>
591 <artifactId>mockito-kotlin</artifactId>
592 <version>2.1.0</version>
596 <groupId>org.jetbrains.kotlin</groupId>
597 <artifactId>kotlin-test</artifactId>
598 <version>${kotlin.version}</version>
602 <groupId>io.projectreactor</groupId>
603 <artifactId>reactor-test</artifactId>
604 <version>3.1.7.RELEASE</version>
608 <groupId>org.jetbrains.kotlinx</groupId>
609 <artifactId>kotlinx-coroutines-test</artifactId>
610 <version>${coroutines.version}</version>
614 </dependencyManagement>