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.2-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.2.70</kotlin.version>
64 <arrow.version>0.7.3</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>
92 <docker-image.latest>1.0-SNAPSHOT</docker-image.latest>
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>1.0.2-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>
456 <tag>${docker-image.latest}</tag>
464 <groupId>io.fabric8</groupId>
465 <artifactId>run-java-sh</artifactId>
466 <version>1.2.2</version>
478 <id>arturbosch-code-analysis</id>
479 <name>arturbosch-code-analysis (for detekt)</name>
480 <url>https://dl.bintray.com/arturbosch/code-analysis/</url>
481 <layout>default</layout>
483 <enabled>true</enabled>
484 <updatePolicy>never</updatePolicy>
487 <enabled>false</enabled>
488 <updatePolicy>never</updatePolicy>
491 </pluginRepositories>
495 <id>40_openecomp-release</id>
496 <name>40_openecomp-release</name>
497 <url>https://nexus.onap.org/content/repositories/releases/</url>
499 <enabled>true</enabled>
500 <updatePolicy>daily</updatePolicy>
503 <enabled>false</enabled>
508 <dependencyManagement>
511 <groupId>com.google.guava</groupId>
512 <artifactId>guava</artifactId>
516 <groupId>com.google.code.findbugs</groupId>
517 <artifactId>jsr305</artifactId>
522 <groupId>org.jetbrains.kotlin</groupId>
523 <artifactId>kotlin-stdlib-jdk8</artifactId>
524 <version>${kotlin.version}</version>
527 <groupId>org.jetbrains.kotlin</groupId>
528 <artifactId>kotlin-reflect</artifactId>
529 <version>${kotlin.version}</version>
532 <groupId>org.jetbrains.kotlinx</groupId>
533 <artifactId>kotlinx-coroutines-core</artifactId>
534 <version>0.25.0</version>
537 <groupId>io.arrow-kt</groupId>
538 <artifactId>arrow-core</artifactId>
539 <version>${arrow.version}</version>
542 <groupId>org.jetbrains.kotlin</groupId>
543 <artifactId>kotlin-stdlib</artifactId>
546 <groupId>org.jetbrains.kotlin</groupId>
547 <artifactId>kotlin-stdlib-jdk7</artifactId>
552 <groupId>io.arrow-kt</groupId>
553 <artifactId>arrow-syntax</artifactId>
554 <version>${arrow.version}</version>
557 <groupId>io.arrow-kt</groupId>
558 <artifactId>arrow-instances-core</artifactId>
559 <version>${arrow.version}</version>
562 <groupId>io.arrow-kt</groupId>
563 <artifactId>arrow-instances-data</artifactId>
564 <version>${arrow.version}</version>
567 <groupId>io.arrow-kt</groupId>
568 <artifactId>arrow-effects</artifactId>
569 <version>${arrow.version}</version>
572 <groupId>io.arrow-kt</groupId>
573 <artifactId>arrow-effects-reactor</artifactId>
574 <version>${arrow.version}</version>
577 <groupId>ch.qos.logback</groupId>
578 <artifactId>logback-classic</artifactId>
579 <version>1.3.0-alpha4</version>
580 <scope>runtime</scope>
583 <groupId>org.slf4j</groupId>
584 <artifactId>slf4j-api</artifactId>
585 <version>1.8.0-beta1</version>
588 <groupId>io.projectreactor</groupId>
589 <artifactId>reactor-bom</artifactId>
590 <!-- remember to update netty native bindings versions -->
591 <version>Bismuth-SR11</version>
593 <scope>import</scope>
597 Disable native extensions (ssl and epoll) on production for now.
598 Might be reintroduced if performance tests prove there is some performance issue.
601 <groupId>io.netty</groupId>
602 <artifactId>netty-tcnative-boringssl-static</artifactId>
603 <version>2.0.15.Final</version>
604 <scope>runtime</scope>
605 <classifier>${os.detected.classifier}</classifier>
609 <groupId>io.netty</groupId>
610 <artifactId>netty-transport-native-epoll</artifactId>
611 <version>4.1.29.Final</version>
612 <classifier>${os.detected.classifier}</classifier>
616 <groupId>com.google.protobuf</groupId>
617 <artifactId>protobuf-java</artifactId>
618 <version>${protobuf.version}</version>
621 <groupId>com.google.protobuf</groupId>
622 <artifactId>protobuf-java-util</artifactId>
623 <version>${protobuf.version}</version>
626 <groupId>commons-cli</groupId>
627 <artifactId>commons-cli</artifactId>
628 <version>1.4</version>
631 <groupId>javax.json</groupId>
632 <artifactId>javax.json-api</artifactId>
633 <version>1.1.2</version>
636 <groupId>org.glassfish</groupId>
637 <artifactId>javax.json</artifactId>
638 <version>1.1.2</version>
641 <!-- To override ratpack transitive dependency which creates security vulnerability
642 This issue will be resolved with ratpack 1.6.0 release -->
643 <groupId>com.fasterxml.jackson.core</groupId>
644 <artifactId>jackson-databind</artifactId>
645 <version>2.9.6</version>
648 <groupId>io.ratpack</groupId>
649 <artifactId>ratpack-core</artifactId>
650 <version>1.5.4</version>
653 <groupId>io.micrometer</groupId>
654 <artifactId>micrometer-registry-jmx</artifactId>
655 <version>1.0.5</version>
658 <!-- Test dependencies -->
661 <groupId>org.jetbrains.spek</groupId>
662 <artifactId>spek-api</artifactId>
663 <version>${spek.version}</version>
667 <groupId>org.jetbrains.spek</groupId>
668 <artifactId>spek-junit-platform-engine</artifactId>
669 <version>${spek.version}</version>
673 <groupId>org.assertj</groupId>
674 <artifactId>assertj-core</artifactId>
675 <version>3.9.1</version>
679 <groupId>com.nhaarman</groupId>
680 <artifactId>mockito-kotlin</artifactId>
681 <version>1.5.0</version>
685 <groupId>org.mockito</groupId>
686 <artifactId>mockito-core</artifactId>
691 <groupId>org.mockito</groupId>
692 <artifactId>mockito-core</artifactId>
693 <version>2.18.3</version>
697 <groupId>org.jetbrains.kotlin</groupId>
698 <artifactId>kotlin-test</artifactId>
699 <version>${kotlin.version}</version>
703 <groupId>io.projectreactor</groupId>
704 <artifactId>reactor-test</artifactId>
705 <version>3.1.7.RELEASE</version>
709 </dependencyManagement>