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.1-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-ssl</module>
56 <module>hv-collector-test-utils</module>
57 <module>hv-collector-utils</module>
58 <module>hv-collector-ves-message-generator</module>
59 <module>hv-collector-xnf-simulator</module>
64 <kotlin.version>1.2.70</kotlin.version>
65 <arrow.version>0.7.3</arrow.version>
66 <maven-compiler-plugin.version>3.7.0</maven-compiler-plugin.version>
67 <build-helper-maven-plugin.version>1.7</build-helper-maven-plugin.version>
68 <jacoco.version>0.8.2</jacoco.version>
69 <jacoco.minimum.coverage>60</jacoco.minimum.coverage>
71 <!-- Protocol buffers -->
72 <protobuf.version>3.5.1</protobuf.version>
73 <protoc-jar-maven-plugin.version>3.5.1.1</protoc-jar-maven-plugin.version>
74 <protobuf-generated-files.directory>${project.build.directory}/generated-sources/proto/main/java/
75 </protobuf-generated-files.directory>
77 <!-- Testing and code analysis -->
78 <junit-platform.version>1.2.0-RC1</junit-platform.version>
79 <junit-jupiter.version>5.2.0-RC1</junit-jupiter.version>
80 <spek.version>1.1.5</spek.version>
81 <maven-surefire-plugin.version>2.22.0</maven-surefire-plugin.version>
82 <failIfMissingUnitTests>false</failIfMissingUnitTests>
83 <failIfMissingComponentTests>false</failIfMissingComponentTests>
84 <skipAnalysis>true</skipAnalysis>
87 <skipDocker>false</skipDocker>
88 <skipDockerPush>true</skipDockerPush>
89 <maven.build.timestamp.format>yyyyMMdd'T'HHmmss</maven.build.timestamp.format>
90 <docker-image.registry>${onap.nexus.dockerregistry.daily}</docker-image.registry>
91 <docker-image.namespace>onap</docker-image.namespace>
92 <docker-image.name>${project.groupId}.${project.artifactId}</docker-image.name>
93 <docker-image.latest>1.0-SNAPSHOT</docker-image.latest>
99 <sourceDirectory>${project.basedir}/src/main/kotlin</sourceDirectory>
100 <testSourceDirectory>${project.basedir}/src/test/kotlin</testSourceDirectory>
103 <directory>${project.basedir}/src/main/resources</directory>
109 <groupId>org.apache.maven.plugins</groupId>
110 <artifactId>maven-resources-plugin</artifactId>
111 <version>3.1.0</version>
113 <encoding>UTF-8</encoding>
117 <groupId>org.apache.maven.plugins</groupId>
118 <artifactId>maven-deploy-plugin</artifactId>
124 <artifactId>kotlin-maven-plugin</artifactId>
125 <groupId>org.jetbrains.kotlin</groupId>
126 <version>${kotlin.version}</version>
128 <jvmTarget>1.8</jvmTarget>
129 <experimentalCoroutines>enable</experimentalCoroutines>
139 <source>${project.build.sourceDirectory}</source>
140 <source>${project.build.directory}/generated-sources/annotations</source>
145 <id>test-compile</id>
147 <goal>test-compile</goal>
151 <source>${project.build.testSourceDirectory}</source>
158 <groupId>com.github.os72</groupId>
159 <artifactId>protoc-jar-maven-plugin</artifactId>
160 <version>${protoc-jar-maven-plugin.version}</version>
163 <groupId>org.codehaus.mojo</groupId>
164 <artifactId>build-helper-maven-plugin</artifactId>
165 <version>${build-helper-maven-plugin.version}</version>
169 <phase>generate-sources</phase>
171 <goal>add-source</goal>
175 <source>${protobuf-generated-files.directory}</source>
182 <groupId>org.apache.maven.plugins</groupId>
183 <artifactId>maven-compiler-plugin</artifactId>
184 <version>${maven-compiler-plugin.version}</version>
188 <encoding>UTF-8</encoding>
189 <showWarnings>true</showWarnings>
190 <showDeprecation>true</showDeprecation>
191 <failOnWarning>false</failOnWarning>
195 <groupId>org.ow2.asm</groupId>
196 <artifactId>asm</artifactId>
197 <version>6.1.1</version> <!-- Use newer version of ASM -->
202 Due to a memory leak in Surefire 2.20 and issues running on Java 9, the junit-platform-surefire-provider
203 currently only works with Surefire 2.19.1.
204 For updates see https://junit.org/junit5/docs/current/user-guide/#running-tests-build-maven
207 <artifactId>maven-surefire-plugin</artifactId>
208 <groupId>org.apache.maven.plugins</groupId>
209 <version>${maven-surefire-plugin.version}</version>
211 <failIfNoTests>${failIfMissingUnitTests}</failIfNoTests>
212 <forkCount>1</forkCount>
214 <include>**/*Test.*</include>
219 <groupId>org.apache.commons</groupId>
220 <artifactId>commons-lang3</artifactId>
221 <version>3.7</version>
224 <groupId>org.junit.platform</groupId>
225 <artifactId>junit-platform-surefire-provider</artifactId>
226 <version>${junit-platform.version}</version>
227 <scope>runtime</scope>
230 <groupId>org.jetbrains.spek</groupId>
231 <artifactId>spek-junit-platform-engine</artifactId>
232 <version>${spek.version}</version>
233 <scope>runtime</scope>
238 <groupId>org.apache.maven.plugins</groupId>
239 <artifactId>maven-failsafe-plugin</artifactId>
240 <version>2.22.0</version>
242 <failIfNoTests>${failIfMissingComponentTests}</failIfNoTests>
243 <forkCount>1</forkCount>
245 <include>**/*Specification.*</include>
250 <groupId>org.apache.commons</groupId>
251 <artifactId>commons-lang3</artifactId>
252 <version>3.7</version>
255 <groupId>org.junit.platform</groupId>
256 <artifactId>junit-platform-surefire-provider</artifactId>
257 <version>${junit-platform.version}</version>
258 <scope>runtime</scope>
261 <groupId>org.jetbrains.spek</groupId>
262 <artifactId>spek-junit-platform-engine</artifactId>
263 <version>${spek.version}</version>
264 <scope>runtime</scope>
269 <groupId>org.codehaus.mojo</groupId>
270 <artifactId>exec-maven-plugin</artifactId>
271 <version>1.6.0</version>
277 <artifactId>maven-checkstyle-plugin</artifactId>
278 <version>2.17</version>
281 <groupId>org.onap.oparent</groupId>
282 <artifactId>checkstyle</artifactId>
283 <version>1.1.1</version>
288 <!-- To override oparent configuration different id must be used
289 We need to override it to include .kt files in check. -->
290 <id>check-license-kotlin</id>
294 <phase>process-sources</phase>
296 <configLocation>onap-checkstyle/check-license.xml</configLocation>
297 <includeResources>false</includeResources>
298 <includeTestSourceDirectory>true</includeTestSourceDirectory>
299 <includeTestResources>false</includeTestResources>
300 <includes>**\/*.kt</includes>
301 <consoleOutput>true</consoleOutput>
302 <!--<failOnViolation>false</failOnViolation>-->
308 <groupId>org.apache.maven.plugins</groupId>
309 <artifactId>maven-antrun-plugin</artifactId>
310 <version>1.8</version>
313 <!-- This can be run separately with mvn antrun:run@detekt -->
315 <phase>verify</phase>
320 <target name="detekt" unless="${skipAnalysis}">
321 <java taskname="detekt" dir="${basedir}" fork="true" failonerror="true" classname="io.gitlab.arturbosch.detekt.cli.Main" classpathref="maven.plugin.classpath">
322 <arg value="--input"/>
323 <arg value="${basedir}/src/main/kotlin"/>
324 <arg value="--config-resource"/>
325 <arg value="onap-detekt-config.yml"/>
326 <arg value="--filters"/>
327 <arg value=".*/target/.*,.*/resources/.*"/>
328 <arg value="--output"/>
329 <arg value="${basedir}/target/reports"/>
330 <arg value="--output-name"/>
331 <arg value="detekt-report"/>
332 <arg value="--baseline"/>
333 <arg value="${basedir}/target/reports/baseline.xml"/>
341 <groupId>io.gitlab.arturbosch.detekt</groupId>
342 <artifactId>detekt-cli</artifactId>
343 <version>1.0.0.RC7</version>
346 <groupId>${project.groupId}</groupId>
347 <artifactId>hv-collector-analysis</artifactId>
348 <version>1.0.1-SNAPSHOT</version>
355 <groupId>kr.motd.maven</groupId>
356 <artifactId>os-maven-plugin</artifactId>
357 <version>1.6.0</version>
364 <id>docker-proxy</id>
367 <name>docker.http_proxy</name>
371 <!-- set build args as defined in https://dmp.fabric8.io/#build-buildargs -->
372 <docker.buildArg.http_proxy>${docker.http_proxy}</docker.buildArg.http_proxy>
373 <docker.buildArg.https_proxy>${docker.http_proxy}</docker.buildArg.https_proxy>
381 <name>!skipDocker</name>
385 <os.detected.name>linux</os.detected.name>
386 <os.detected.arch>x86_64</os.detected.arch>
387 <os.detected.classifier>${os.detected.name}-${os.detected.arch}</os.detected.classifier>
393 <groupId>org.apache.maven.plugins</groupId>
394 <artifactId>maven-dependency-plugin</artifactId>
395 <version>3.1.1</version>
398 <id>docker-copy-internal-deps</id>
399 <phase>package</phase>
401 <goal>copy-dependencies</goal>
404 <outputDirectory>${project.build.directory}/libs/internal</outputDirectory>
405 <includeGroupIds>${project.parent.groupId}</includeGroupIds>
406 <includeScope>runtime</includeScope>
410 <id>docker-copy-external-deps</id>
411 <phase>package</phase>
413 <goal>copy-dependencies</goal>
416 <outputDirectory>${project.build.directory}/libs/external</outputDirectory>
417 <excludeGroupIds>${project.parent.groupId}</excludeGroupIds>
418 <includeScope>runtime</includeScope>
424 <groupId>io.fabric8</groupId>
425 <artifactId>docker-maven-plugin</artifactId>
426 <version>0.26.0</version>
429 <id>docker-build-image</id>
430 <phase>package</phase>
436 <id>docker-push-image</id>
437 <phase>deploy</phase>
444 <skipPush>${skipDockerPush}</skipPush>
445 <verbose>true</verbose>
446 <imagePullPolicy>IfNotPresent</imagePullPolicy>
449 <alias>${project.artifactId}</alias>
450 <name>${docker-image.namespace}/${docker-image.name}
452 <registry>${docker-image.registry}</registry>
454 <dockerFileDir>${project.basedir}</dockerFileDir>
456 <tag>${project.version}-${maven.build.timestamp}Z</tag>
457 <tag>${project.version}</tag>
458 <tag>${docker-image.latest}</tag>
466 <groupId>io.fabric8</groupId>
467 <artifactId>run-java-sh</artifactId>
468 <version>1.2.2</version>
480 <id>arturbosch-code-analysis</id>
481 <name>arturbosch-code-analysis (for detekt)</name>
482 <url>https://dl.bintray.com/arturbosch/code-analysis/</url>
483 <layout>default</layout>
485 <enabled>true</enabled>
486 <updatePolicy>never</updatePolicy>
489 <enabled>false</enabled>
490 <updatePolicy>never</updatePolicy>
493 </pluginRepositories>
497 <id>40_openecomp-release</id>
498 <name>40_openecomp-release</name>
499 <url>https://nexus.onap.org/content/repositories/releases/</url>
501 <enabled>true</enabled>
502 <updatePolicy>daily</updatePolicy>
505 <enabled>false</enabled>
510 <dependencyManagement>
513 <groupId>com.google.guava</groupId>
514 <artifactId>guava</artifactId>
518 <groupId>com.google.code.findbugs</groupId>
519 <artifactId>jsr305</artifactId>
524 <groupId>org.jetbrains.kotlin</groupId>
525 <artifactId>kotlin-stdlib-jdk8</artifactId>
526 <version>${kotlin.version}</version>
529 <groupId>org.jetbrains.kotlin</groupId>
530 <artifactId>kotlin-reflect</artifactId>
531 <version>${kotlin.version}</version>
534 <groupId>org.jetbrains.kotlinx</groupId>
535 <artifactId>kotlinx-coroutines-core</artifactId>
536 <version>0.25.0</version>
539 <groupId>io.arrow-kt</groupId>
540 <artifactId>arrow-core</artifactId>
541 <version>${arrow.version}</version>
544 <groupId>org.jetbrains.kotlin</groupId>
545 <artifactId>kotlin-stdlib</artifactId>
548 <groupId>org.jetbrains.kotlin</groupId>
549 <artifactId>kotlin-stdlib-jdk7</artifactId>
554 <groupId>io.arrow-kt</groupId>
555 <artifactId>arrow-syntax</artifactId>
556 <version>${arrow.version}</version>
559 <groupId>io.arrow-kt</groupId>
560 <artifactId>arrow-instances-core</artifactId>
561 <version>${arrow.version}</version>
564 <groupId>io.arrow-kt</groupId>
565 <artifactId>arrow-instances-data</artifactId>
566 <version>${arrow.version}</version>
569 <groupId>io.arrow-kt</groupId>
570 <artifactId>arrow-effects</artifactId>
571 <version>${arrow.version}</version>
574 <groupId>io.arrow-kt</groupId>
575 <artifactId>arrow-effects-reactor</artifactId>
576 <version>${arrow.version}</version>
579 <groupId>ch.qos.logback</groupId>
580 <artifactId>logback-classic</artifactId>
581 <version>1.3.0-alpha4</version>
582 <scope>runtime</scope>
585 <groupId>org.slf4j</groupId>
586 <artifactId>slf4j-api</artifactId>
587 <version>1.8.0-beta1</version>
590 <groupId>io.projectreactor</groupId>
591 <artifactId>reactor-bom</artifactId>
592 <!-- remember to update netty native bindings versions -->
593 <version>Bismuth-SR11</version>
595 <scope>import</scope>
599 Disable native extensions (ssl and epoll) on production for now.
600 Might be reintroduced if performance tests prove there is some performance issue.
603 <groupId>io.netty</groupId>
604 <artifactId>netty-tcnative-boringssl-static</artifactId>
605 <version>2.0.15.Final</version>
606 <scope>runtime</scope>
607 <classifier>${os.detected.classifier}</classifier>
611 <groupId>io.netty</groupId>
612 <artifactId>netty-transport-native-epoll</artifactId>
613 <version>4.1.29.Final</version>
614 <classifier>${os.detected.classifier}</classifier>
618 <groupId>com.google.protobuf</groupId>
619 <artifactId>protobuf-java</artifactId>
620 <version>${protobuf.version}</version>
623 <groupId>com.google.protobuf</groupId>
624 <artifactId>protobuf-java-util</artifactId>
625 <version>${protobuf.version}</version>
628 <groupId>commons-cli</groupId>
629 <artifactId>commons-cli</artifactId>
630 <version>1.4</version>
633 <groupId>javax.json</groupId>
634 <artifactId>javax.json-api</artifactId>
635 <version>1.1.2</version>
638 <groupId>org.glassfish</groupId>
639 <artifactId>javax.json</artifactId>
640 <version>1.1.2</version>
643 <!-- To override ratpack transitive dependency which creates security vulnerability
644 This issue will be resolved with ratpack 1.6.0 release -->
645 <groupId>com.fasterxml.jackson.core</groupId>
646 <artifactId>jackson-databind</artifactId>
647 <version>2.9.6</version>
650 <groupId>io.ratpack</groupId>
651 <artifactId>ratpack-core</artifactId>
652 <version>1.5.4</version>
655 <groupId>io.micrometer</groupId>
656 <artifactId>micrometer-registry-jmx</artifactId>
657 <version>1.0.5</version>
660 <!-- Test dependencies -->
663 <groupId>org.jetbrains.spek</groupId>
664 <artifactId>spek-api</artifactId>
665 <version>${spek.version}</version>
669 <groupId>org.jetbrains.spek</groupId>
670 <artifactId>spek-junit-platform-engine</artifactId>
671 <version>${spek.version}</version>
675 <groupId>org.assertj</groupId>
676 <artifactId>assertj-core</artifactId>
677 <version>3.9.1</version>
681 <groupId>com.nhaarman</groupId>
682 <artifactId>mockito-kotlin</artifactId>
683 <version>1.5.0</version>
687 <groupId>org.mockito</groupId>
688 <artifactId>mockito-core</artifactId>
693 <groupId>org.mockito</groupId>
694 <artifactId>mockito-core</artifactId>
695 <version>2.18.3</version>
699 <groupId>org.jetbrains.kotlin</groupId>
700 <artifactId>kotlin-test</artifactId>
701 <version>${kotlin.version}</version>
705 <groupId>io.projectreactor</groupId>
706 <artifactId>reactor-test</artifactId>
707 <version>3.1.7.RELEASE</version>
711 </dependencyManagement>