1 <?xml version="1.0" encoding="UTF-8"?>
3 ~ ============LICENSE_START=======================================================
4 ~ dcaegen2-collectors-veshv
5 ~ ================================================================================
6 ~ Copyright (C) 2018-2021 NOKIA
7 ~ Copyright (C) 2022 Nordix Foundation
8 ~ ================================================================================
9 ~ Licensed under the Apache License, Version 2.0 (the "License");
10 ~ you may not use this file except in compliance with the License.
11 ~ You may obtain a copy of the License at
13 ~ http://www.apache.org/licenses/LICENSE-2.0
15 ~ Unless required by applicable law or agreed to in writing, software
16 ~ distributed under the License is distributed on an "AS IS" BASIS,
17 ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18 ~ See the License for the specific language governing permissions and
19 ~ limitations under the License.
20 ~ ============LICENSE_END=========================================================
22 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
23 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
25 <modelVersion>4.0.0</modelVersion>
29 <name>The Apache Software License, Version 2.0</name>
30 <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
35 <groupId>org.onap.oparent</groupId>
36 <artifactId>oparent</artifactId>
37 <version>3.0.0</version>
41 <groupId>org.onap.dcaegen2.collectors.hv-ves</groupId>
42 <artifactId>ves-hv-collector</artifactId>
43 <version>${revision}</version>
44 <name>dcaegen2-collectors-veshv</name>
45 <description>VES HighVolume Collector</description>
46 <packaging>pom</packaging>
49 <module>build</module>
50 <module>sources</module>
54 <revision>1.10.0-SNAPSHOT</revision>
55 <maven-resources-plugin.version>3.2.0</maven-resources-plugin.version>
56 <asm.version>9.1</asm.version>
57 <commons-lang3.version>3.12.0</commons-lang3.version>
58 <maven-failsafe-plugin.version>2.22.2</maven-failsafe-plugin.version>
59 <maven-surefire-plugin.version>2.22.2</maven-surefire-plugin.version>
60 <exec-maven-plugin.version>3.0.0</exec-maven-plugin.version>
61 <os-maven-plugin.version>1.7.0</os-maven-plugin.version>
62 <maven-dependency-plugin.version>3.1.2</maven-dependency-plugin.version>
63 <docker-maven-plugin.version>0.34.1</docker-maven-plugin.version>
64 <guava.version>30.1.1-jre</guava.version>
65 <logback-classic.version>1.3.0-alpha4</logback-classic.version>
66 <slf4j-api.version>2.0.0-alpha1</slf4j-api.version>
67 <reactor-bom.version>2020.0.5</reactor-bom.version>
68 <kafka-clients.version>2.7.0</kafka-clients.version>
69 <commons-cli.version>1.4</commons-cli.version>
70 <javax.json-api.version>1.1.4</javax.json-api.version>
71 <javax.json.version>1.1.4</javax.json.version>
72 <micrometer-registry-prometheus.version>1.6.5</micrometer-registry-prometheus.version>
73 <assertj-core.version>3.19.0</assertj-core.version>
74 <mockito-kotlin.version>2.2.0</mockito-kotlin.version>
75 <coroutines.version>1.4.2</coroutines.version>
76 <kotlin.version>1.4.10</kotlin.version>
77 <arrow.version>0.9.0</arrow.version>
78 <maven-compiler-plugin.version>3.8.1</maven-compiler-plugin.version>
79 <build-helper-maven-plugin.version>3.2.0</build-helper-maven-plugin.version>
80 <jacoco.version>0.8.3</jacoco.version>
81 <detekt.version>1.15.0</detekt.version>
82 <sdk.version>1.8.7</sdk.version>
84 <!-- Protocol buffers -->
85 <protobuf.version>4.0.0-rc-2</protobuf.version>
87 <!-- Testing and code analysis -->
88 <junit-platform.version>1.2.0</junit-platform.version>
89 <junit-jupiter.version>5.8.0-M1</junit-jupiter.version>
90 <spek.version>1.1.5</spek.version>
91 <gson.version>2.8.6</gson.version>
93 <failIfMissingUnitTests>false</failIfMissingUnitTests>
94 <failIfMissingComponentTests>false</failIfMissingComponentTests>
95 <skipAnalysis>true</skipAnalysis>
96 <jacoco.minimum.coverage>60</jacoco.minimum.coverage>
97 <skipEnforcer>true</skipEnforcer>
98 <!--Specify path to load jacoco xml report, as Sonar can't load Kotlin coverage from binary report. -->
99 <sonar.coverage.jacoco.xmlReportPaths>
100 ${project.basedir}/../../build/hv-collector-coverage/target/site/jacoco-aggregate/jacoco.xml
101 </sonar.coverage.jacoco.xmlReportPaths>
104 <skipDocker>false</skipDocker>
105 <skipDockerPush>true</skipDockerPush>
106 <maven.build.timestamp.format>yyyyMMdd'T'HHmmss</maven.build.timestamp.format>
107 <docker-image.registry>${onap.nexus.dockerregistry.daily}</docker-image.registry>
108 <docker-image.namespace>onap</docker-image.namespace>
109 <docker-image.name>${project.groupId}.${project.artifactId}</docker-image.name>
110 <docker-image.latest>latest</docker-image.latest>
115 <sourceDirectory>${project.basedir}/src/main/kotlin</sourceDirectory>
116 <testSourceDirectory>${project.basedir}/src/test/kotlin</testSourceDirectory>
119 <directory>${project.basedir}/src/main/resources</directory>
125 <groupId>org.apache.maven.plugins</groupId>
126 <artifactId>maven-resources-plugin</artifactId>
127 <version>${maven-resources-plugin.version}</version>
129 <encoding>UTF-8</encoding>
133 <groupId>org.apache.maven.plugins</groupId>
134 <artifactId>maven-deploy-plugin</artifactId>
137 <groupId>org.apache.maven.plugins</groupId>
138 <artifactId>maven-enforcer-plugin</artifactId>
140 <skip>${skipEnforcer}</skip>
144 <artifactId>kotlin-maven-plugin</artifactId>
145 <groupId>org.jetbrains.kotlin</groupId>
146 <version>${kotlin.version}</version>
148 <jvmTarget>11</jvmTarget>
158 <source>${project.build.sourceDirectory}</source>
159 <source>${project.build.directory}/generated-sources/annotations</source>
164 <id>test-compile</id>
166 <goal>test-compile</goal>
170 <source>${project.build.testSourceDirectory}</source>
177 <groupId>org.apache.maven.plugins</groupId>
178 <artifactId>maven-compiler-plugin</artifactId>
179 <version>${maven-compiler-plugin.version}</version>
183 <encoding>UTF-8</encoding>
184 <showWarnings>true</showWarnings>
185 <showDeprecation>true</showDeprecation>
186 <failOnWarning>false</failOnWarning>
190 <groupId>org.ow2.asm</groupId>
191 <artifactId>asm</artifactId>
192 <version>${asm.version}</version> <!-- Use newer version of ASM -->
197 Due to a memory leak in Surefire 2.20 and issues running on Java 9, the junit-platform-surefire-provider
198 currently only works with Surefire 2.19.1.
199 For updates see https://junit.org/junit5/docs/current/user-guide/#running-tests-build-maven
202 <artifactId>maven-surefire-plugin</artifactId>
203 <groupId>org.apache.maven.plugins</groupId>
204 <version>${maven-surefire-plugin.version}</version>
206 <failIfNoTests>${failIfMissingUnitTests}</failIfNoTests>
207 <forkCount>1</forkCount>
209 <include>**/*Test.*</include>
214 <groupId>org.apache.commons</groupId>
215 <artifactId>commons-lang3</artifactId>
216 <version>${commons-lang3.version}</version>
219 <groupId>org.junit.platform</groupId>
220 <artifactId>junit-platform-surefire-provider</artifactId>
221 <version>${junit-platform.version}</version>
222 <scope>runtime</scope>
225 <groupId>org.jetbrains.spek</groupId>
226 <artifactId>spek-junit-platform-engine</artifactId>
227 <version>${spek.version}</version>
228 <scope>runtime</scope>
233 <groupId>org.apache.maven.plugins</groupId>
234 <artifactId>maven-failsafe-plugin</artifactId>
235 <version>${maven-failsafe-plugin.version}</version>
237 <failIfNoTests>${failIfMissingComponentTests}</failIfNoTests>
238 <forkCount>1</forkCount>
240 <include>**/*Specification.*</include>
245 <groupId>org.apache.commons</groupId>
246 <artifactId>commons-lang3</artifactId>
247 <version>${commons-lang3.version}</version>
250 <groupId>org.junit.platform</groupId>
251 <artifactId>junit-platform-surefire-provider</artifactId>
252 <version>${junit-platform.version}</version>
253 <scope>runtime</scope>
256 <groupId>org.jetbrains.spek</groupId>
257 <artifactId>spek-junit-platform-engine</artifactId>
258 <version>${spek.version}</version>
259 <scope>runtime</scope>
264 <groupId>org.codehaus.mojo</groupId>
265 <artifactId>exec-maven-plugin</artifactId>
266 <version>${exec-maven-plugin.version}</version>
272 <groupId>kr.motd.maven</groupId>
273 <artifactId>os-maven-plugin</artifactId>
274 <version>${os-maven-plugin.version}</version>
281 <id>docker-proxy</id>
284 <name>docker.http_proxy</name>
288 <!-- set build args as defined in https://dmp.fabric8.io/#build-buildargs -->
289 <docker.buildArg.http_proxy>${docker.http_proxy}</docker.buildArg.http_proxy>
290 <docker.buildArg.https_proxy>${docker.http_proxy}</docker.buildArg.https_proxy>
298 <name>!skipDocker</name>
302 <os.detected.name>linux</os.detected.name>
303 <os.detected.arch>x86_64</os.detected.arch>
304 <os.detected.classifier>${os.detected.name}-${os.detected.arch}</os.detected.classifier>
310 <groupId>org.apache.maven.plugins</groupId>
311 <artifactId>maven-dependency-plugin</artifactId>
312 <version>${maven-dependency-plugin.version}</version>
315 <id>docker-copy-internal-deps</id>
316 <phase>package</phase>
318 <goal>copy-dependencies</goal>
321 <outputDirectory>${project.build.directory}/libs/internal</outputDirectory>
322 <includeGroupIds>${project.parent.groupId}</includeGroupIds>
323 <includeScope>runtime</includeScope>
327 <id>docker-copy-external-deps</id>
328 <phase>package</phase>
330 <goal>copy-dependencies</goal>
333 <outputDirectory>${project.build.directory}/libs/external</outputDirectory>
334 <excludeGroupIds>${project.parent.groupId}</excludeGroupIds>
335 <includeScope>runtime</includeScope>
341 <groupId>io.fabric8</groupId>
342 <artifactId>docker-maven-plugin</artifactId>
343 <version>${docker-maven-plugin.version}</version>
346 <id>docker-build-image</id>
347 <phase>package</phase>
353 <id>docker-push-image</id>
354 <phase>deploy</phase>
361 <skipPush>${skipDockerPush}</skipPush>
362 <verbose>true</verbose>
363 <imagePullPolicy>IfNotPresent</imagePullPolicy>
366 <alias>${project.artifactId}</alias>
367 <name>${docker-image.namespace}/${docker-image.name}:${project.version}
369 <registry>${docker-image.registry}</registry>
371 <dockerFileDir>${project.basedir}</dockerFileDir>
373 <tag>${project.version}-${maven.build.timestamp}Z</tag>
374 <tag>${docker-image.latest}</tag>
389 <id>kotlinx-repository</id>
390 <name>kotlinx-repository</name>
391 <url>https://maven.pkg.jetbrains.space/public/p/kotlinx-html/maven</url>
393 <enabled>true</enabled>
394 <updatePolicy>never</updatePolicy>
397 <enabled>false</enabled>
398 <updatePolicy>never</updatePolicy>
401 </pluginRepositories>
405 <id>kotlinx-repository</id>
406 <name>kotlinx-repository</name>
407 <url>https://maven.pkg.jetbrains.space/public/p/kotlinx-html/maven/</url>
409 <enabled>true</enabled>
410 <updatePolicy>never</updatePolicy>
413 <enabled>false</enabled>
414 <updatePolicy>never</updatePolicy>
418 <id>40_openecomp-release</id>
419 <name>40_openecomp-release</name>
420 <url>https://nexus.onap.org/content/repositories/releases/</url>
422 <enabled>true</enabled>
423 <updatePolicy>daily</updatePolicy>
426 <enabled>false</enabled>
431 <dependencyManagement>
434 <groupId>com.google.guava</groupId>
435 <artifactId>guava</artifactId>
436 <version>${guava.version}</version>
439 <groupId>com.google.code.findbugs</groupId>
440 <artifactId>jsr305</artifactId>
445 <groupId>org.jetbrains.kotlin</groupId>
446 <artifactId>kotlin-bom</artifactId>
447 <version>${kotlin.version}</version>
449 <scope>import</scope>
452 <groupId>org.jetbrains.kotlin</groupId>
453 <artifactId>kotlin-compiler-embeddable</artifactId>
454 <version>${kotlin.version}</version>
457 <groupId>org.jetbrains.kotlin</groupId>
458 <artifactId>kotlin-scripting-compiler-embeddable</artifactId>
459 <version>${kotlin.version}</version>
462 <groupId>org.jetbrains.kotlin</groupId>
463 <artifactId>kotlin-script-util</artifactId>
464 <version>${kotlin.version}</version>
465 <scope>runtime</scope>
468 <groupId>org.jetbrains.kotlinx</groupId>
469 <artifactId>kotlinx-coroutines-core</artifactId>
470 <version>${coroutines.version}</version>
473 <groupId>com.google.code.gson</groupId>
474 <artifactId>gson</artifactId>
475 <version>${gson.version}</version>
478 <groupId>io.arrow-kt</groupId>
479 <artifactId>arrow-core-data</artifactId>
480 <version>${arrow.version}</version>
483 <groupId>io.arrow-kt</groupId>
484 <artifactId>arrow-core-extensions</artifactId>
485 <version>${arrow.version}</version>
488 <groupId>io.arrow-kt</groupId>
489 <artifactId>arrow-extras-data</artifactId>
490 <version>${arrow.version}</version>
493 <groupId>io.arrow-kt</groupId>
494 <artifactId>arrow-syntax</artifactId>
495 <version>${arrow.version}</version>
498 <groupId>io.arrow-kt</groupId>
499 <artifactId>arrow-typeclasses</artifactId>
500 <version>${arrow.version}</version>
503 <groupId>ch.qos.logback</groupId>
504 <artifactId>logback-classic</artifactId>
505 <version>${logback-classic.version}</version>
506 <scope>runtime</scope>
509 <groupId>org.slf4j</groupId>
510 <artifactId>slf4j-api</artifactId>
511 <version>${slf4j-api.version}</version>
514 <groupId>io.projectreactor</groupId>
515 <artifactId>reactor-bom</artifactId>
516 <!-- remember to update netty native bindings versions -->
517 <version>${reactor-bom.version}</version>
519 <scope>import</scope>
521 <!-- Due to security reasons, override transitive kafka-clients dependency version (2.0.0 -> 2.3.1) -->
523 <groupId>org.apache.kafka</groupId>
524 <artifactId>kafka-clients</artifactId>
525 <version>${kafka-clients.version}</version>
528 Disable native extension (epoll) on production for now.
529 Might be reintroduced if performance tests prove there is some performance issue.
533 <groupId>io.netty</groupId>
534 <artifactId>netty-transport-native-epoll</artifactId>
535 <version>4.1.29.Final</version>
536 <classifier>${os.detected.classifier}</classifier>
540 <groupId>com.google.protobuf</groupId>
541 <artifactId>protobuf-java-util</artifactId>
542 <version>${protobuf.version}</version>
545 <groupId>com.google.guava</groupId>
546 <artifactId>guava</artifactId>
551 <groupId>commons-cli</groupId>
552 <artifactId>commons-cli</artifactId>
553 <version>${commons-cli.version}</version>
556 <groupId>javax.json</groupId>
557 <artifactId>javax.json-api</artifactId>
558 <version>${javax.json-api.version}</version>
561 <groupId>org.glassfish</groupId>
562 <artifactId>javax.json</artifactId>
563 <version>${javax.json.version}</version>
566 <groupId>io.micrometer</groupId>
567 <artifactId>micrometer-registry-prometheus</artifactId>
568 <version>${micrometer-registry-prometheus.version}</version>
571 <groupId>org.onap.dcaegen2.services.sdk</groupId>
572 <artifactId>hvvesclient-producer-impl</artifactId>
573 <version>${sdk.version}</version>
574 <scope>runtime</scope>
577 <groupId>org.onap.dcaegen2.services.sdk</groupId>
578 <artifactId>hvvesclient-producer-api</artifactId>
579 <version>${sdk.version}</version>
582 <groupId>org.onap.dcaegen2.services.sdk</groupId>
583 <artifactId>hvvesclient-protobuf</artifactId>
584 <version>${sdk.version}</version>
587 <groupId>org.onap.dcaegen2.services.sdk.security</groupId>
588 <artifactId>ssl</artifactId>
589 <version>${sdk.version}</version>
592 <groupId>org.onap.dcaegen2.services.sdk.rest.services</groupId>
593 <artifactId>cbs-client</artifactId>
594 <version>${sdk.version}</version>
597 <!-- Test dependencies -->
600 <groupId>org.jetbrains.spek</groupId>
601 <artifactId>spek-api</artifactId>
602 <version>${spek.version}</version>
606 <groupId>org.jetbrains.spek</groupId>
607 <artifactId>spek-junit-platform-engine</artifactId>
608 <version>${spek.version}</version>
612 <groupId>org.assertj</groupId>
613 <artifactId>assertj-core</artifactId>
614 <version>${assertj-core.version}</version>
618 <groupId>com.nhaarman.mockitokotlin2</groupId>
619 <artifactId>mockito-kotlin</artifactId>
620 <version>${mockito-kotlin.version}</version>
624 <groupId>org.jetbrains.kotlin</groupId>
625 <artifactId>kotlin-test</artifactId>
626 <version>${kotlin.version}</version>
630 <groupId>org.jetbrains.kotlinx</groupId>
631 <artifactId>kotlinx-coroutines-test</artifactId>
632 <version>${coroutines.version}</version>
636 </dependencyManagement>