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>4.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-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.5.1</protobuf.version>
72 <protoc-jar-maven-plugin.version>3.5.1.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>
97 <sourceDirectory>${project.basedir}/src/main/kotlin</sourceDirectory>
98 <testSourceDirectory>${project.basedir}/src/test/kotlin</testSourceDirectory>
101 <directory>${project.basedir}/src/main/resources</directory>
107 <groupId>org.apache.maven.plugins</groupId>
108 <artifactId>maven-resources-plugin</artifactId>
109 <version>3.1.0</version>
111 <encoding>UTF-8</encoding>
115 <groupId>org.apache.maven.plugins</groupId>
116 <artifactId>maven-deploy-plugin</artifactId>
122 <artifactId>kotlin-maven-plugin</artifactId>
123 <groupId>org.jetbrains.kotlin</groupId>
124 <version>${kotlin.version}</version>
126 <jvmTarget>1.8</jvmTarget>
127 <experimentalCoroutines>enable</experimentalCoroutines>
137 <source>${project.build.sourceDirectory}</source>
138 <source>${project.build.directory}/generated-sources/annotations</source>
143 <id>test-compile</id>
145 <goal>test-compile</goal>
149 <source>${project.build.testSourceDirectory}</source>
156 <groupId>com.github.os72</groupId>
157 <artifactId>protoc-jar-maven-plugin</artifactId>
158 <version>${protoc-jar-maven-plugin.version}</version>
161 <groupId>org.codehaus.mojo</groupId>
162 <artifactId>build-helper-maven-plugin</artifactId>
163 <version>${build-helper-maven-plugin.version}</version>
167 <phase>generate-sources</phase>
169 <goal>add-source</goal>
173 <source>${protobuf-generated-files.directory}</source>
180 <groupId>org.apache.maven.plugins</groupId>
181 <artifactId>maven-compiler-plugin</artifactId>
182 <version>${maven-compiler-plugin.version}</version>
186 <encoding>UTF-8</encoding>
187 <showWarnings>true</showWarnings>
188 <showDeprecation>true</showDeprecation>
189 <failOnWarning>false</failOnWarning>
193 <groupId>org.ow2.asm</groupId>
194 <artifactId>asm</artifactId>
195 <version>6.1.1</version> <!-- Use newer version of ASM -->
200 Due to a memory leak in Surefire 2.20 and issues running on Java 9, the junit-platform-surefire-provider
201 currently only works with Surefire 2.19.1.
202 For updates see https://junit.org/junit5/docs/current/user-guide/#running-tests-build-maven
205 <artifactId>maven-surefire-plugin</artifactId>
206 <groupId>org.apache.maven.plugins</groupId>
207 <version>${maven-surefire-plugin.version}</version>
209 <failIfNoTests>${failIfMissingUnitTests}</failIfNoTests>
210 <forkCount>1</forkCount>
212 <include>**/*Test.*</include>
217 <groupId>org.apache.commons</groupId>
218 <artifactId>commons-lang3</artifactId>
219 <version>3.7</version>
222 <groupId>org.junit.platform</groupId>
223 <artifactId>junit-platform-surefire-provider</artifactId>
224 <version>${junit-platform.version}</version>
225 <scope>runtime</scope>
228 <groupId>org.jetbrains.spek</groupId>
229 <artifactId>spek-junit-platform-engine</artifactId>
230 <version>${spek.version}</version>
231 <scope>runtime</scope>
236 <groupId>org.apache.maven.plugins</groupId>
237 <artifactId>maven-failsafe-plugin</artifactId>
238 <version>2.22.0</version>
240 <failIfNoTests>${failIfMissingComponentTests}</failIfNoTests>
241 <forkCount>1</forkCount>
243 <include>**/*Specification.*</include>
248 <groupId>org.apache.commons</groupId>
249 <artifactId>commons-lang3</artifactId>
250 <version>3.7</version>
253 <groupId>org.junit.platform</groupId>
254 <artifactId>junit-platform-surefire-provider</artifactId>
255 <version>${junit-platform.version}</version>
256 <scope>runtime</scope>
259 <groupId>org.jetbrains.spek</groupId>
260 <artifactId>spek-junit-platform-engine</artifactId>
261 <version>${spek.version}</version>
262 <scope>runtime</scope>
267 <groupId>org.codehaus.mojo</groupId>
268 <artifactId>exec-maven-plugin</artifactId>
269 <version>1.6.0</version>
275 <artifactId>maven-checkstyle-plugin</artifactId>
276 <version>2.17</version>
279 <groupId>org.onap.oparent</groupId>
280 <artifactId>checkstyle</artifactId>
281 <version>1.1.1</version>
286 <!-- To override oparent configuration different id must be used
287 We need to override it to include .kt files in check. -->
288 <id>check-license-kotlin</id>
292 <phase>process-sources</phase>
294 <configLocation>onap-checkstyle/check-license.xml</configLocation>
295 <includeResources>false</includeResources>
296 <includeTestSourceDirectory>true</includeTestSourceDirectory>
297 <includeTestResources>false</includeTestResources>
298 <includes>**\/*.kt</includes>
299 <consoleOutput>true</consoleOutput>
300 <!--<failOnViolation>false</failOnViolation>-->
306 <groupId>org.apache.maven.plugins</groupId>
307 <artifactId>maven-antrun-plugin</artifactId>
308 <version>1.8</version>
311 <!-- This can be run separately with mvn antrun:run@detekt -->
313 <phase>verify</phase>
318 <target name="detekt" unless="${skipAnalysis}">
319 <java taskname="detekt" dir="${basedir}" fork="true" failonerror="true" classname="io.gitlab.arturbosch.detekt.cli.Main" classpathref="maven.plugin.classpath">
320 <arg value="--input"/>
321 <arg value="${basedir}/src/main/kotlin"/>
322 <arg value="--config-resource"/>
323 <arg value="onap-detekt-config.yml"/>
324 <arg value="--filters"/>
325 <arg value=".*/target/.*,.*/resources/.*"/>
326 <arg value="--output"/>
327 <arg value="${basedir}/target/reports"/>
328 <arg value="--output-name"/>
329 <arg value="detekt-report"/>
330 <arg value="--baseline"/>
331 <arg value="${basedir}/target/reports/baseline.xml"/>
339 <groupId>io.gitlab.arturbosch.detekt</groupId>
340 <artifactId>detekt-cli</artifactId>
341 <version>1.0.0.RC7</version>
344 <groupId>${project.groupId}</groupId>
345 <artifactId>hv-collector-analysis</artifactId>
346 <version>4.0.0-SNAPSHOT</version>
353 <groupId>kr.motd.maven</groupId>
354 <artifactId>os-maven-plugin</artifactId>
355 <version>1.6.0</version>
362 <id>docker-proxy</id>
365 <name>docker.http_proxy</name>
369 <!-- set build args as defined in https://dmp.fabric8.io/#build-buildargs -->
370 <docker.buildArg.http_proxy>${docker.http_proxy}</docker.buildArg.http_proxy>
371 <docker.buildArg.https_proxy>${docker.http_proxy}</docker.buildArg.https_proxy>
379 <name>!skipDocker</name>
383 <os.detected.name>linux</os.detected.name>
384 <os.detected.arch>x86_64</os.detected.arch>
385 <os.detected.classifier>${os.detected.name}-${os.detected.arch}</os.detected.classifier>
391 <groupId>org.apache.maven.plugins</groupId>
392 <artifactId>maven-dependency-plugin</artifactId>
393 <version>3.1.1</version>
396 <id>docker-copy-internal-deps</id>
397 <phase>package</phase>
399 <goal>copy-dependencies</goal>
402 <outputDirectory>${project.build.directory}/libs/internal</outputDirectory>
403 <includeGroupIds>${project.parent.groupId}</includeGroupIds>
404 <includeScope>runtime</includeScope>
408 <id>docker-copy-external-deps</id>
409 <phase>package</phase>
411 <goal>copy-dependencies</goal>
414 <outputDirectory>${project.build.directory}/libs/external</outputDirectory>
415 <excludeGroupIds>${project.parent.groupId}</excludeGroupIds>
416 <includeScope>runtime</includeScope>
422 <groupId>io.fabric8</groupId>
423 <artifactId>docker-maven-plugin</artifactId>
424 <version>0.26.0</version>
427 <id>docker-build-image</id>
428 <phase>package</phase>
434 <id>docker-push-image</id>
435 <phase>deploy</phase>
442 <skipPush>${skipDockerPush}</skipPush>
443 <verbose>true</verbose>
444 <imagePullPolicy>IfNotPresent</imagePullPolicy>
447 <alias>${project.artifactId}</alias>
448 <name>${docker-image.namespace}/${docker-image.name}
450 <registry>${docker-image.registry}</registry>
452 <dockerFileDir>${project.basedir}</dockerFileDir>
454 <tag>${project.version}-${maven.build.timestamp}Z</tag>
455 <tag>${project.version}</tag>
471 <id>arturbosch-code-analysis</id>
472 <name>arturbosch-code-analysis (for detekt)</name>
473 <url>https://dl.bintray.com/arturbosch/code-analysis/</url>
474 <layout>default</layout>
476 <enabled>true</enabled>
477 <updatePolicy>never</updatePolicy>
480 <enabled>false</enabled>
481 <updatePolicy>never</updatePolicy>
484 </pluginRepositories>
488 <id>40_openecomp-release</id>
489 <name>40_openecomp-release</name>
490 <url>https://nexus.onap.org/content/repositories/releases/</url>
492 <enabled>true</enabled>
493 <updatePolicy>daily</updatePolicy>
496 <enabled>false</enabled>
501 <dependencyManagement>
504 <groupId>com.google.guava</groupId>
505 <artifactId>guava</artifactId>
509 <groupId>com.google.code.findbugs</groupId>
510 <artifactId>jsr305</artifactId>
515 <groupId>org.jetbrains.kotlin</groupId>
516 <artifactId>kotlin-stdlib-jdk8</artifactId>
517 <version>${kotlin.version}</version>
520 <groupId>org.jetbrains.kotlin</groupId>
521 <artifactId>kotlin-reflect</artifactId>
522 <version>${kotlin.version}</version>
525 <groupId>org.jetbrains.kotlinx</groupId>
526 <artifactId>kotlinx-coroutines-core</artifactId>
527 <version>1.0.0</version>
530 <groupId>io.arrow-kt</groupId>
531 <artifactId>arrow-core</artifactId>
532 <version>${arrow.version}</version>
535 <groupId>org.jetbrains.kotlin</groupId>
536 <artifactId>kotlin-stdlib</artifactId>
539 <groupId>org.jetbrains.kotlin</groupId>
540 <artifactId>kotlin-stdlib-jdk7</artifactId>
545 <groupId>io.arrow-kt</groupId>
546 <artifactId>arrow-syntax</artifactId>
547 <version>${arrow.version}</version>
550 <groupId>io.arrow-kt</groupId>
551 <artifactId>arrow-instances-core</artifactId>
552 <version>${arrow.version}</version>
555 <groupId>io.arrow-kt</groupId>
556 <artifactId>arrow-instances-data</artifactId>
557 <version>${arrow.version}</version>
560 <groupId>io.arrow-kt</groupId>
561 <artifactId>arrow-effects</artifactId>
562 <version>${arrow.version}</version>
565 <groupId>io.arrow-kt</groupId>
566 <artifactId>arrow-effects-instances</artifactId>
567 <version>${arrow.version}</version>
570 <groupId>io.arrow-kt</groupId>
571 <artifactId>arrow-effects-reactor</artifactId>
572 <version>${arrow.version}</version>
575 <groupId>ch.qos.logback</groupId>
576 <artifactId>logback-classic</artifactId>
577 <version>1.3.0-alpha4</version>
578 <scope>runtime</scope>
581 <groupId>org.slf4j</groupId>
582 <artifactId>slf4j-api</artifactId>
583 <version>1.8.0-beta1</version>
586 <groupId>io.projectreactor</groupId>
587 <artifactId>reactor-bom</artifactId>
588 <!-- remember to update netty native bindings versions -->
589 <version>Bismuth-SR11</version>
591 <scope>import</scope>
595 Disable native extensions (ssl and epoll) on production for now.
596 Might be reintroduced if performance tests prove there is some performance issue.
599 <groupId>io.netty</groupId>
600 <artifactId>netty-tcnative-boringssl-static</artifactId>
601 <version>2.0.15.Final</version>
602 <scope>runtime</scope>
603 <classifier>${os.detected.classifier}</classifier>
607 <groupId>io.netty</groupId>
608 <artifactId>netty-transport-native-epoll</artifactId>
609 <version>4.1.29.Final</version>
610 <classifier>${os.detected.classifier}</classifier>
614 <groupId>com.google.protobuf</groupId>
615 <artifactId>protobuf-java</artifactId>
616 <version>${protobuf.version}</version>
619 <groupId>com.google.protobuf</groupId>
620 <artifactId>protobuf-java-util</artifactId>
621 <version>${protobuf.version}</version>
624 <groupId>commons-cli</groupId>
625 <artifactId>commons-cli</artifactId>
626 <version>1.4</version>
629 <groupId>javax.json</groupId>
630 <artifactId>javax.json-api</artifactId>
631 <version>1.1.2</version>
634 <groupId>org.glassfish</groupId>
635 <artifactId>javax.json</artifactId>
636 <version>1.1.2</version>
639 <!-- To override ratpack transitive dependency which creates security vulnerability
640 This issue will be resolved with ratpack 1.6.0 release -->
641 <groupId>com.fasterxml.jackson.core</groupId>
642 <artifactId>jackson-databind</artifactId>
643 <version>2.9.6</version>
646 <groupId>io.ratpack</groupId>
647 <artifactId>ratpack-core</artifactId>
648 <version>1.5.4</version>
651 <groupId>io.micrometer</groupId>
652 <artifactId>micrometer-registry-jmx</artifactId>
653 <version>1.0.5</version>
656 <!-- Test dependencies -->
659 <groupId>org.jetbrains.spek</groupId>
660 <artifactId>spek-api</artifactId>
661 <version>${spek.version}</version>
665 <groupId>org.jetbrains.spek</groupId>
666 <artifactId>spek-junit-platform-engine</artifactId>
667 <version>${spek.version}</version>
671 <groupId>org.assertj</groupId>
672 <artifactId>assertj-core</artifactId>
673 <version>3.9.1</version>
677 <groupId>com.nhaarman</groupId>
678 <artifactId>mockito-kotlin</artifactId>
679 <version>1.5.0</version>
683 <groupId>org.mockito</groupId>
684 <artifactId>mockito-core</artifactId>
689 <groupId>org.mockito</groupId>
690 <artifactId>mockito-core</artifactId>
691 <version>2.18.3</version>
695 <groupId>org.jetbrains.kotlin</groupId>
696 <artifactId>kotlin-test</artifactId>
697 <version>${kotlin.version}</version>
701 <groupId>io.projectreactor</groupId>
702 <artifactId>reactor-test</artifactId>
703 <version>3.1.7.RELEASE</version>
707 </dependencyManagement>