1 <?xml version="1.0" encoding="UTF-8"?>
3 ~ ============LICENSE_START=======================================================
4 ~ dcaegen2-collectors-veshv
5 ~ ================================================================================
6 ~ Copyright (C) 2018 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" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
23 <modelVersion>4.0.0</modelVersion>
27 <name>The Apache Software License, Version 2.0</name>
28 <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
33 <groupId>org.onap.oparent</groupId>
34 <artifactId>oparent</artifactId>
35 <version>1.2.0</version>
39 <groupId>org.onap.dcaegen2.collectors.hv-ves</groupId>
40 <artifactId>ves-hv-collector</artifactId>
41 <version>1.0.0-SNAPSHOT</version>
42 <name>dcaegen2-collectors-veshv</name>
43 <description>VES HighVolume Collector</description>
44 <packaging>pom</packaging>
47 <module>hv-collector-analysis</module>
48 <module>hv-collector-core</module>
49 <module>hv-collector-coverage</module>
50 <module>hv-collector-ct</module>
51 <module>hv-collector-dcae-app-simulator</module>
52 <module>hv-collector-domain</module>
53 <module>hv-collector-health-check</module>
54 <module>hv-collector-main</module>
55 <module>hv-collector-test-utils</module>
56 <module>hv-collector-utils</module>
57 <module>hv-collector-ves-message-generator</module>
58 <module>hv-collector-xnf-simulator</module>
62 <kotlin.version>1.2.70</kotlin.version>
63 <arrow.version>0.7.3</arrow.version>
64 <maven-compiler-plugin.version>3.7.0</maven-compiler-plugin.version>
65 <build-helper-maven-plugin.version>1.7</build-helper-maven-plugin.version>
66 <jacoco.version>0.8.2</jacoco.version>
67 <jacoco.minimum.coverage>66</jacoco.minimum.coverage>
69 <!-- Protocol buffers -->
70 <protobuf.version>3.5.1</protobuf.version>
71 <protoc-jar-maven-plugin.version>3.5.1.1</protoc-jar-maven-plugin.version>
72 <protobuf-generated-files.directory>${project.build.directory}/generated-sources/proto/main/java/
73 </protobuf-generated-files.directory>
75 <!-- Testing and code analysis -->
76 <junit-platform.version>1.2.0-RC1</junit-platform.version>
77 <junit-jupiter.version>5.2.0-RC1</junit-jupiter.version>
78 <spek.version>1.1.5</spek.version>
79 <maven-surefire-plugin.version>2.22.0</maven-surefire-plugin.version>
80 <failIfMissingUnitTests>false</failIfMissingUnitTests>
81 <failIfMissingComponentTests>false</failIfMissingComponentTests>
82 <skipAnalysis>true</skipAnalysis>
85 <skipDocker>false</skipDocker>
86 <skipDockerPush>true</skipDockerPush>
87 <maven.build.timestamp.format>yyyyMMdd'T'HHmmss</maven.build.timestamp.format>
88 <docker-image.registry>${onap.nexus.dockerregistry.daily}</docker-image.registry>
89 <docker-image.namespace>onap</docker-image.namespace>
90 <docker-image.name>${project.groupId}.${project.artifactId}</docker-image.name>
96 <sourceDirectory>${project.basedir}/src/main/kotlin</sourceDirectory>
97 <testSourceDirectory>${project.basedir}/src/test/kotlin</testSourceDirectory>
100 <directory>${project.basedir}/src/main/resources</directory>
106 <groupId>org.apache.maven.plugins</groupId>
107 <artifactId>maven-resources-plugin</artifactId>
108 <version>3.1.0</version>
110 <encoding>UTF-8</encoding>
114 <groupId>org.apache.maven.plugins</groupId>
115 <artifactId>maven-deploy-plugin</artifactId>
121 <artifactId>kotlin-maven-plugin</artifactId>
122 <groupId>org.jetbrains.kotlin</groupId>
123 <version>${kotlin.version}</version>
125 <jvmTarget>1.8</jvmTarget>
126 <experimentalCoroutines>enable</experimentalCoroutines>
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>com.github.os72</groupId>
156 <artifactId>protoc-jar-maven-plugin</artifactId>
157 <version>${protoc-jar-maven-plugin.version}</version>
160 <groupId>org.codehaus.mojo</groupId>
161 <artifactId>build-helper-maven-plugin</artifactId>
162 <version>${build-helper-maven-plugin.version}</version>
166 <phase>generate-sources</phase>
168 <goal>add-source</goal>
172 <source>${protobuf-generated-files.directory}</source>
179 <groupId>org.apache.maven.plugins</groupId>
180 <artifactId>maven-compiler-plugin</artifactId>
181 <version>${maven-compiler-plugin.version}</version>
185 <encoding>UTF-8</encoding>
186 <showWarnings>true</showWarnings>
187 <showDeprecation>true</showDeprecation>
188 <failOnWarning>false</failOnWarning>
192 <groupId>org.ow2.asm</groupId>
193 <artifactId>asm</artifactId>
194 <version>6.1.1</version> <!-- Use newer version of ASM -->
199 Due to a memory leak in Surefire 2.20 and issues running on Java 9, the junit-platform-surefire-provider
200 currently only works with Surefire 2.19.1.
201 For updates see https://junit.org/junit5/docs/current/user-guide/#running-tests-build-maven
204 <artifactId>maven-surefire-plugin</artifactId>
205 <groupId>org.apache.maven.plugins</groupId>
206 <version>${maven-surefire-plugin.version}</version>
208 <failIfNoTests>${failIfMissingUnitTests}</failIfNoTests>
209 <forkCount>1</forkCount>
211 <include>**/*Test.*</include>
216 <groupId>org.apache.commons</groupId>
217 <artifactId>commons-lang3</artifactId>
218 <version>3.7</version>
221 <groupId>org.junit.platform</groupId>
222 <artifactId>junit-platform-surefire-provider</artifactId>
223 <version>${junit-platform.version}</version>
224 <scope>runtime</scope>
227 <groupId>org.jetbrains.spek</groupId>
228 <artifactId>spek-junit-platform-engine</artifactId>
229 <version>${spek.version}</version>
230 <scope>runtime</scope>
235 <groupId>org.apache.maven.plugins</groupId>
236 <artifactId>maven-failsafe-plugin</artifactId>
237 <version>2.22.0</version>
239 <failIfNoTests>${failIfMissingComponentTests}</failIfNoTests>
240 <forkCount>1</forkCount>
242 <include>**/*Specification.*</include>
247 <groupId>org.apache.commons</groupId>
248 <artifactId>commons-lang3</artifactId>
249 <version>3.7</version>
252 <groupId>org.junit.platform</groupId>
253 <artifactId>junit-platform-surefire-provider</artifactId>
254 <version>${junit-platform.version}</version>
255 <scope>runtime</scope>
258 <groupId>org.jetbrains.spek</groupId>
259 <artifactId>spek-junit-platform-engine</artifactId>
260 <version>${spek.version}</version>
261 <scope>runtime</scope>
266 <groupId>org.codehaus.mojo</groupId>
267 <artifactId>exec-maven-plugin</artifactId>
268 <version>1.6.0</version>
274 <artifactId>maven-checkstyle-plugin</artifactId>
275 <version>2.17</version>
278 <groupId>org.onap.oparent</groupId>
279 <artifactId>checkstyle</artifactId>
280 <version>1.1.1</version>
285 <!-- To override oparent configuration different id must be used
286 We need to override it to include .kt files in check. -->
287 <id>check-license-kotlin</id>
291 <phase>process-sources</phase>
293 <configLocation>onap-checkstyle/check-license.xml</configLocation>
294 <includeResources>false</includeResources>
295 <includeTestSourceDirectory>true</includeTestSourceDirectory>
296 <includeTestResources>false</includeTestResources>
297 <includes>**\/*.kt</includes>
298 <consoleOutput>true</consoleOutput>
299 <!--<failOnViolation>false</failOnViolation>-->
305 <groupId>org.apache.maven.plugins</groupId>
306 <artifactId>maven-antrun-plugin</artifactId>
307 <version>1.8</version>
310 <!-- This can be run separately with mvn antrun:run@detekt -->
312 <phase>verify</phase>
317 <target name="detekt" unless="${skipAnalysis}">
318 <java taskname="detekt" dir="${basedir}" fork="true" failonerror="true" classname="io.gitlab.arturbosch.detekt.cli.Main" classpathref="maven.plugin.classpath">
319 <arg value="--input"/>
320 <arg value="${basedir}/src/main/kotlin"/>
321 <arg value="--config-resource"/>
322 <arg value="onap-detekt-config.yml"/>
323 <arg value="--filters"/>
324 <arg value=".*/target/.*,.*/resources/.*"/>
325 <arg value="--output"/>
326 <arg value="${basedir}/target/reports"/>
327 <arg value="--output-name"/>
328 <arg value="detekt-report"/>
329 <arg value="--baseline"/>
330 <arg value="${basedir}/target/reports/baseline.xml"/>
338 <groupId>io.gitlab.arturbosch.detekt</groupId>
339 <artifactId>detekt-cli</artifactId>
340 <version>1.0.0.RC7</version>
343 <groupId>${project.groupId}</groupId>
344 <artifactId>hv-collector-analysis</artifactId>
345 <version>1.0.0-SNAPSHOT</version>
352 <groupId>kr.motd.maven</groupId>
353 <artifactId>os-maven-plugin</artifactId>
354 <version>1.6.0</version>
361 <id>docker-proxy</id>
364 <name>docker.http_proxy</name>
368 <!-- set build args as defined in https://dmp.fabric8.io/#build-buildargs -->
369 <docker.buildArg.http_proxy>${docker.http_proxy}</docker.buildArg.http_proxy>
370 <docker.buildArg.https_proxy>${docker.http_proxy}</docker.buildArg.https_proxy>
378 <name>!skipDocker</name>
382 <os.detected.name>linux</os.detected.name>
383 <os.detected.arch>x86_64</os.detected.arch>
384 <os.detected.classifier>${os.detected.name}-${os.detected.arch}</os.detected.classifier>
390 <groupId>org.apache.maven.plugins</groupId>
391 <artifactId>maven-dependency-plugin</artifactId>
392 <version>3.1.1</version>
395 <id>docker-copy-internal-deps</id>
396 <phase>package</phase>
398 <goal>copy-dependencies</goal>
401 <outputDirectory>${project.build.directory}/libs/internal</outputDirectory>
402 <includeGroupIds>${project.parent.groupId}</includeGroupIds>
403 <includeScope>runtime</includeScope>
407 <id>docker-copy-external-deps</id>
408 <phase>package</phase>
410 <goal>copy-dependencies</goal>
413 <outputDirectory>${project.build.directory}/libs/external</outputDirectory>
414 <excludeGroupIds>${project.parent.groupId}</excludeGroupIds>
415 <includeScope>runtime</includeScope>
421 <groupId>io.fabric8</groupId>
422 <artifactId>docker-maven-plugin</artifactId>
423 <version>0.26.0</version>
426 <id>docker-build-image</id>
427 <phase>package</phase>
433 <id>docker-push-image</id>
434 <phase>deploy</phase>
441 <skipPush>${skipDockerPush}</skipPush>
442 <verbose>true</verbose>
443 <imagePullPolicy>IfNotPresent</imagePullPolicy>
446 <alias>${project.artifactId}</alias>
447 <name>${docker-image.namespace}/${docker-image.name}
449 <registry>${docker-image.registry}</registry>
451 <dockerFileDir>${project.basedir}</dockerFileDir>
453 <tag>${project.version}-${maven.build.timestamp}Z</tag>
454 <tag>${project.version}</tag>
463 <groupId>io.fabric8</groupId>
464 <artifactId>run-java-sh</artifactId>
465 <version>1.2.2</version>
477 <id>arturbosch-code-analysis</id>
478 <name>arturbosch-code-analysis (for detekt)</name>
479 <url>https://dl.bintray.com/arturbosch/code-analysis/</url>
480 <layout>default</layout>
482 <enabled>true</enabled>
483 <updatePolicy>never</updatePolicy>
486 <enabled>false</enabled>
487 <updatePolicy>never</updatePolicy>
490 </pluginRepositories>
494 <id>40_openecomp-release</id>
495 <name>40_openecomp-release</name>
496 <url>https://nexus.onap.org/content/repositories/releases/</url>
498 <enabled>true</enabled>
499 <updatePolicy>daily</updatePolicy>
502 <enabled>false</enabled>
507 <dependencyManagement>
510 <groupId>com.google.guava</groupId>
511 <artifactId>guava</artifactId>
515 <groupId>com.google.code.findbugs</groupId>
516 <artifactId>jsr305</artifactId>
521 <groupId>org.jetbrains.kotlin</groupId>
522 <artifactId>kotlin-stdlib-jdk8</artifactId>
523 <version>${kotlin.version}</version>
526 <groupId>org.jetbrains.kotlin</groupId>
527 <artifactId>kotlin-reflect</artifactId>
528 <version>${kotlin.version}</version>
531 <groupId>org.jetbrains.kotlinx</groupId>
532 <artifactId>kotlinx-coroutines-core</artifactId>
533 <version>0.25.0</version>
536 <groupId>io.arrow-kt</groupId>
537 <artifactId>arrow-core</artifactId>
538 <version>${arrow.version}</version>
541 <groupId>org.jetbrains.kotlin</groupId>
542 <artifactId>kotlin-stdlib</artifactId>
545 <groupId>org.jetbrains.kotlin</groupId>
546 <artifactId>kotlin-stdlib-jdk7</artifactId>
551 <groupId>io.arrow-kt</groupId>
552 <artifactId>arrow-syntax</artifactId>
553 <version>${arrow.version}</version>
556 <groupId>io.arrow-kt</groupId>
557 <artifactId>arrow-instances-core</artifactId>
558 <version>${arrow.version}</version>
561 <groupId>io.arrow-kt</groupId>
562 <artifactId>arrow-instances-data</artifactId>
563 <version>${arrow.version}</version>
566 <groupId>io.arrow-kt</groupId>
567 <artifactId>arrow-effects</artifactId>
568 <version>${arrow.version}</version>
571 <groupId>io.arrow-kt</groupId>
572 <artifactId>arrow-effects-reactor</artifactId>
573 <version>${arrow.version}</version>
576 <groupId>ch.qos.logback</groupId>
577 <artifactId>logback-classic</artifactId>
578 <version>1.3.0-alpha4</version>
579 <scope>runtime</scope>
582 <groupId>org.slf4j</groupId>
583 <artifactId>slf4j-api</artifactId>
584 <version>1.8.0-beta1</version>
587 <groupId>io.projectreactor</groupId>
588 <artifactId>reactor-bom</artifactId>
589 <version>Bismuth-SR10</version>
591 <scope>import</scope>
594 <groupId>io.netty</groupId>
595 <artifactId>netty-tcnative-boringssl-static</artifactId>
596 <version>2.0.8.Final</version>
597 <classifier>${os.detected.classifier}</classifier>
600 <groupId>com.google.protobuf</groupId>
601 <artifactId>protobuf-java</artifactId>
602 <version>${protobuf.version}</version>
605 <groupId>com.google.protobuf</groupId>
606 <artifactId>protobuf-java-util</artifactId>
607 <version>${protobuf.version}</version>
610 <groupId>commons-cli</groupId>
611 <artifactId>commons-cli</artifactId>
612 <version>1.4</version>
615 <groupId>javax.json</groupId>
616 <artifactId>javax.json-api</artifactId>
617 <version>1.1.2</version>
620 <groupId>org.glassfish</groupId>
621 <artifactId>javax.json</artifactId>
622 <version>1.1.2</version>
625 <!-- To override ratpack transitive dependency which creates security vulnerability
626 This issue will be resolved with ratpack 1.6.0 release -->
627 <groupId>com.fasterxml.jackson.core</groupId>
628 <artifactId>jackson-databind</artifactId>
629 <version>2.9.6</version>
632 <groupId>io.ratpack</groupId>
633 <artifactId>ratpack-core</artifactId>
634 <version>1.5.4</version>
637 <groupId>io.micrometer</groupId>
638 <artifactId>micrometer-registry-jmx</artifactId>
639 <version>1.0.5</version>
642 <!-- Test dependencies -->
645 <groupId>org.jetbrains.spek</groupId>
646 <artifactId>spek-api</artifactId>
647 <version>${spek.version}</version>
651 <groupId>org.jetbrains.spek</groupId>
652 <artifactId>spek-junit-platform-engine</artifactId>
653 <version>${spek.version}</version>
657 <groupId>org.assertj</groupId>
658 <artifactId>assertj-core</artifactId>
659 <version>3.9.1</version>
663 <groupId>com.nhaarman</groupId>
664 <artifactId>mockito-kotlin</artifactId>
665 <version>1.5.0</version>
669 <groupId>org.mockito</groupId>
670 <artifactId>mockito-core</artifactId>
675 <groupId>org.mockito</groupId>
676 <artifactId>mockito-core</artifactId>
677 <version>2.18.3</version>
681 <groupId>org.jetbrains.kotlin</groupId>
682 <artifactId>kotlin-test</artifactId>
683 <version>${kotlin.version}</version>
687 <groupId>io.projectreactor</groupId>
688 <artifactId>reactor-test</artifactId>
689 <version>3.1.7.RELEASE</version>
693 </dependencyManagement>