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.1</version>
39 <groupId>org.onap.dcaegen2.collectors.hv-ves</groupId>
40 <artifactId>ves-hv-collector</artifactId>
41 <version>1.1.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-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>
63 <kotlin.version>1.3.0</kotlin.version>
64 <arrow.version>0.8.0</arrow.version>
65 <maven-compiler-plugin.version>3.7.0</maven-compiler-plugin.version>
66 <build-helper-maven-plugin.version>1.7</build-helper-maven-plugin.version>
67 <jacoco.version>0.8.2</jacoco.version>
68 <jacoco.minimum.coverage>60</jacoco.minimum.coverage>
70 <!-- Protocol buffers -->
71 <protobuf.version>3.6.1</protobuf.version>
72 <protoc-jar-maven-plugin.version>3.6.0.1</protoc-jar-maven-plugin.version>
73 <protobuf-generated-files.directory>${project.build.directory}/generated-sources/proto/main/java/
74 </protobuf-generated-files.directory>
76 <!-- Testing and code analysis -->
77 <junit-platform.version>1.2.0-RC1</junit-platform.version>
78 <junit-jupiter.version>5.2.0-RC1</junit-jupiter.version>
79 <spek.version>1.1.5</spek.version>
80 <maven-surefire-plugin.version>2.22.0</maven-surefire-plugin.version>
81 <failIfMissingUnitTests>false</failIfMissingUnitTests>
82 <failIfMissingComponentTests>false</failIfMissingComponentTests>
83 <skipAnalysis>true</skipAnalysis>
86 <skipDocker>false</skipDocker>
87 <skipDockerPush>true</skipDockerPush>
88 <maven.build.timestamp.format>yyyyMMdd'T'HHmmss</maven.build.timestamp.format>
89 <docker-image.registry>${onap.nexus.dockerregistry.daily}</docker-image.registry>
90 <docker-image.namespace>onap</docker-image.namespace>
91 <docker-image.name>${project.groupId}.${project.artifactId}</docker-image.name>
92 <docker-image.latest>1.1-SNAPSHOT</docker-image.latest>
98 <sourceDirectory>${project.basedir}/src/main/kotlin</sourceDirectory>
99 <testSourceDirectory>${project.basedir}/src/test/kotlin</testSourceDirectory>
102 <directory>${project.basedir}/src/main/resources</directory>
108 <groupId>org.apache.maven.plugins</groupId>
109 <artifactId>maven-resources-plugin</artifactId>
110 <version>3.1.0</version>
112 <encoding>UTF-8</encoding>
116 <groupId>org.apache.maven.plugins</groupId>
117 <artifactId>maven-deploy-plugin</artifactId>
123 <artifactId>kotlin-maven-plugin</artifactId>
124 <groupId>org.jetbrains.kotlin</groupId>
125 <version>${kotlin.version}</version>
127 <jvmTarget>1.8</jvmTarget>
128 <experimentalCoroutines>enable</experimentalCoroutines>
138 <source>${project.build.sourceDirectory}</source>
139 <source>${project.build.directory}/generated-sources/annotations</source>
144 <id>test-compile</id>
146 <goal>test-compile</goal>
150 <source>${project.build.testSourceDirectory}</source>
157 <groupId>com.github.os72</groupId>
158 <artifactId>protoc-jar-maven-plugin</artifactId>
159 <version>${protoc-jar-maven-plugin.version}</version>
162 <groupId>org.codehaus.mojo</groupId>
163 <artifactId>build-helper-maven-plugin</artifactId>
164 <version>${build-helper-maven-plugin.version}</version>
168 <phase>generate-sources</phase>
170 <goal>add-source</goal>
174 <source>${protobuf-generated-files.directory}</source>
181 <groupId>org.apache.maven.plugins</groupId>
182 <artifactId>maven-compiler-plugin</artifactId>
183 <version>${maven-compiler-plugin.version}</version>
187 <encoding>UTF-8</encoding>
188 <showWarnings>true</showWarnings>
189 <showDeprecation>true</showDeprecation>
190 <failOnWarning>false</failOnWarning>
194 <groupId>org.ow2.asm</groupId>
195 <artifactId>asm</artifactId>
196 <version>6.1.1</version> <!-- Use newer version of ASM -->
201 Due to a memory leak in Surefire 2.20 and issues running on Java 9, the junit-platform-surefire-provider
202 currently only works with Surefire 2.19.1.
203 For updates see https://junit.org/junit5/docs/current/user-guide/#running-tests-build-maven
206 <artifactId>maven-surefire-plugin</artifactId>
207 <groupId>org.apache.maven.plugins</groupId>
208 <version>${maven-surefire-plugin.version}</version>
210 <failIfNoTests>${failIfMissingUnitTests}</failIfNoTests>
211 <forkCount>1</forkCount>
213 <include>**/*Test.*</include>
218 <groupId>org.apache.commons</groupId>
219 <artifactId>commons-lang3</artifactId>
220 <version>3.7</version>
223 <groupId>org.junit.platform</groupId>
224 <artifactId>junit-platform-surefire-provider</artifactId>
225 <version>${junit-platform.version}</version>
226 <scope>runtime</scope>
229 <groupId>org.jetbrains.spek</groupId>
230 <artifactId>spek-junit-platform-engine</artifactId>
231 <version>${spek.version}</version>
232 <scope>runtime</scope>
237 <groupId>org.apache.maven.plugins</groupId>
238 <artifactId>maven-failsafe-plugin</artifactId>
239 <version>2.22.0</version>
241 <failIfNoTests>${failIfMissingComponentTests}</failIfNoTests>
242 <forkCount>1</forkCount>
244 <include>**/*Specification.*</include>
249 <groupId>org.apache.commons</groupId>
250 <artifactId>commons-lang3</artifactId>
251 <version>3.7</version>
254 <groupId>org.junit.platform</groupId>
255 <artifactId>junit-platform-surefire-provider</artifactId>
256 <version>${junit-platform.version}</version>
257 <scope>runtime</scope>
260 <groupId>org.jetbrains.spek</groupId>
261 <artifactId>spek-junit-platform-engine</artifactId>
262 <version>${spek.version}</version>
263 <scope>runtime</scope>
268 <groupId>org.codehaus.mojo</groupId>
269 <artifactId>exec-maven-plugin</artifactId>
270 <version>1.6.0</version>
276 <artifactId>maven-checkstyle-plugin</artifactId>
277 <version>2.17</version>
280 <groupId>org.onap.oparent</groupId>
281 <artifactId>checkstyle</artifactId>
282 <version>1.1.1</version>
287 <!-- To override oparent configuration different id must be used
288 We need to override it to include .kt files in check. -->
289 <id>check-license-kotlin</id>
293 <phase>process-sources</phase>
295 <configLocation>onap-checkstyle/check-license.xml</configLocation>
296 <includeResources>false</includeResources>
297 <includeTestSourceDirectory>true</includeTestSourceDirectory>
298 <includeTestResources>false</includeTestResources>
299 <includes>**\/*.kt</includes>
300 <consoleOutput>true</consoleOutput>
301 <!--<failOnViolation>false</failOnViolation>-->
307 <groupId>org.apache.maven.plugins</groupId>
308 <artifactId>maven-antrun-plugin</artifactId>
309 <version>1.8</version>
312 <!-- This can be run separately with mvn antrun:run@detekt -->
314 <phase>verify</phase>
319 <target name="detekt" unless="${skipAnalysis}">
320 <java taskname="detekt" dir="${basedir}" fork="true" failonerror="true" classname="io.gitlab.arturbosch.detekt.cli.Main" classpathref="maven.plugin.classpath">
321 <arg value="--input"/>
322 <arg value="${basedir}/src/main/kotlin"/>
323 <arg value="--config-resource"/>
324 <arg value="onap-detekt-config.yml"/>
325 <arg value="--filters"/>
326 <arg value=".*/target/.*,.*/resources/.*"/>
327 <arg value="--output"/>
328 <arg value="${basedir}/target/reports"/>
329 <arg value="--output-name"/>
330 <arg value="detekt-report"/>
331 <arg value="--baseline"/>
332 <arg value="${basedir}/target/reports/baseline.xml"/>
340 <groupId>io.gitlab.arturbosch.detekt</groupId>
341 <artifactId>detekt-cli</artifactId>
342 <version>1.0.0.RC7</version>
345 <groupId>${project.groupId}</groupId>
346 <artifactId>hv-collector-analysis</artifactId>
347 <version>1.1.0-SNAPSHOT</version>
354 <groupId>kr.motd.maven</groupId>
355 <artifactId>os-maven-plugin</artifactId>
356 <version>1.6.0</version>
363 <id>docker-proxy</id>
366 <name>docker.http_proxy</name>
370 <!-- set build args as defined in https://dmp.fabric8.io/#build-buildargs -->
371 <docker.buildArg.http_proxy>${docker.http_proxy}</docker.buildArg.http_proxy>
372 <docker.buildArg.https_proxy>${docker.http_proxy}</docker.buildArg.https_proxy>
380 <name>!skipDocker</name>
384 <os.detected.name>linux</os.detected.name>
385 <os.detected.arch>x86_64</os.detected.arch>
386 <os.detected.classifier>${os.detected.name}-${os.detected.arch}</os.detected.classifier>
392 <groupId>org.apache.maven.plugins</groupId>
393 <artifactId>maven-dependency-plugin</artifactId>
394 <version>3.1.1</version>
397 <id>docker-copy-internal-deps</id>
398 <phase>package</phase>
400 <goal>copy-dependencies</goal>
403 <outputDirectory>${project.build.directory}/libs/internal</outputDirectory>
404 <includeGroupIds>${project.parent.groupId}</includeGroupIds>
405 <includeScope>runtime</includeScope>
409 <id>docker-copy-external-deps</id>
410 <phase>package</phase>
412 <goal>copy-dependencies</goal>
415 <outputDirectory>${project.build.directory}/libs/external</outputDirectory>
416 <excludeGroupIds>${project.parent.groupId}</excludeGroupIds>
417 <includeScope>runtime</includeScope>
423 <groupId>io.fabric8</groupId>
424 <artifactId>docker-maven-plugin</artifactId>
425 <version>0.26.0</version>
428 <id>docker-build-image</id>
429 <phase>package</phase>
435 <id>docker-push-image</id>
436 <phase>deploy</phase>
443 <skipPush>${skipDockerPush}</skipPush>
444 <verbose>true</verbose>
445 <imagePullPolicy>IfNotPresent</imagePullPolicy>
448 <alias>${project.artifactId}</alias>
449 <name>${docker-image.namespace}/${docker-image.name}
451 <registry>${docker-image.registry}</registry>
453 <dockerFileDir>${project.basedir}</dockerFileDir>
455 <tag>${project.version}-${maven.build.timestamp}Z</tag>
456 <tag>${project.version}</tag>
457 <tag>${docker-image.latest}</tag>
472 <id>arturbosch-code-analysis</id>
473 <name>arturbosch-code-analysis (for detekt)</name>
474 <url>https://dl.bintray.com/arturbosch/code-analysis/</url>
475 <layout>default</layout>
477 <enabled>true</enabled>
478 <updatePolicy>never</updatePolicy>
481 <enabled>false</enabled>
482 <updatePolicy>never</updatePolicy>
485 </pluginRepositories>
489 <id>40_openecomp-release</id>
490 <name>40_openecomp-release</name>
491 <url>https://nexus.onap.org/content/repositories/releases/</url>
493 <enabled>true</enabled>
494 <updatePolicy>daily</updatePolicy>
497 <enabled>false</enabled>
502 <dependencyManagement>
505 <groupId>com.google.guava</groupId>
506 <artifactId>guava</artifactId>
510 <groupId>com.google.code.findbugs</groupId>
511 <artifactId>jsr305</artifactId>
516 <groupId>org.jetbrains.kotlin</groupId>
517 <artifactId>kotlin-stdlib-jdk8</artifactId>
518 <version>${kotlin.version}</version>
521 <groupId>org.jetbrains.kotlin</groupId>
522 <artifactId>kotlin-reflect</artifactId>
523 <version>${kotlin.version}</version>
526 <groupId>org.jetbrains.kotlinx</groupId>
527 <artifactId>kotlinx-coroutines-core</artifactId>
528 <version>1.0.0</version>
531 <groupId>io.arrow-kt</groupId>
532 <artifactId>arrow-core</artifactId>
533 <version>${arrow.version}</version>
536 <groupId>org.jetbrains.kotlin</groupId>
537 <artifactId>kotlin-stdlib</artifactId>
540 <groupId>org.jetbrains.kotlin</groupId>
541 <artifactId>kotlin-stdlib-jdk7</artifactId>
546 <groupId>io.arrow-kt</groupId>
547 <artifactId>arrow-syntax</artifactId>
548 <version>${arrow.version}</version>
551 <groupId>io.arrow-kt</groupId>
552 <artifactId>arrow-instances-core</artifactId>
553 <version>${arrow.version}</version>
556 <groupId>io.arrow-kt</groupId>
557 <artifactId>arrow-instances-data</artifactId>
558 <version>${arrow.version}</version>
561 <groupId>io.arrow-kt</groupId>
562 <artifactId>arrow-effects</artifactId>
563 <version>${arrow.version}</version>
566 <groupId>io.arrow-kt</groupId>
567 <artifactId>arrow-effects-instances</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 <!-- remember to update netty native bindings versions -->
590 <version>Californium-SR2</version>
592 <scope>import</scope>
596 Disable native extensions (ssl and epoll) on production for now.
597 Might be reintroduced if performance tests prove there is some performance issue.
600 <groupId>io.netty</groupId>
601 <artifactId>netty-tcnative-boringssl-static</artifactId>
602 <version>2.0.15.Final</version>
603 <scope>runtime</scope>
604 <classifier>${os.detected.classifier}</classifier>
608 <groupId>io.netty</groupId>
609 <artifactId>netty-transport-native-epoll</artifactId>
610 <version>4.1.29.Final</version>
611 <classifier>${os.detected.classifier}</classifier>
615 <groupId>com.google.protobuf</groupId>
616 <artifactId>protobuf-java</artifactId>
617 <version>${protobuf.version}</version>
620 <groupId>com.google.protobuf</groupId>
621 <artifactId>protobuf-java-util</artifactId>
622 <version>${protobuf.version}</version>
625 <groupId>commons-cli</groupId>
626 <artifactId>commons-cli</artifactId>
627 <version>1.4</version>
630 <groupId>javax.json</groupId>
631 <artifactId>javax.json-api</artifactId>
632 <version>1.1.2</version>
635 <groupId>org.glassfish</groupId>
636 <artifactId>javax.json</artifactId>
637 <version>1.1.2</version>
640 <!-- To override ratpack transitive dependency which creates security vulnerability
641 This issue will be resolved with ratpack 1.6.0 release -->
642 <groupId>com.fasterxml.jackson.core</groupId>
643 <artifactId>jackson-databind</artifactId>
644 <version>2.9.6</version>
647 <groupId>io.ratpack</groupId>
648 <artifactId>ratpack-core</artifactId>
649 <version>1.5.4</version>
652 <groupId>io.micrometer</groupId>
653 <artifactId>micrometer-registry-jmx</artifactId>
654 <version>1.0.5</version>
657 <!-- Test dependencies -->
660 <groupId>org.jetbrains.spek</groupId>
661 <artifactId>spek-api</artifactId>
662 <version>${spek.version}</version>
666 <groupId>org.jetbrains.spek</groupId>
667 <artifactId>spek-junit-platform-engine</artifactId>
668 <version>${spek.version}</version>
672 <groupId>org.assertj</groupId>
673 <artifactId>assertj-core</artifactId>
674 <version>3.9.1</version>
678 <groupId>com.nhaarman.mockitokotlin2</groupId>
679 <artifactId>mockito-kotlin</artifactId>
680 <version>2.0.0</version>
684 <groupId>org.jetbrains.kotlin</groupId>
685 <artifactId>kotlin-test</artifactId>
686 <version>${kotlin.version}</version>
690 <groupId>io.projectreactor</groupId>
691 <artifactId>reactor-test</artifactId>
692 <version>3.1.7.RELEASE</version>
696 </dependencyManagement>