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>build</module>
48 <module>sources</module>
52 <kotlin.version>1.3.0</kotlin.version>
53 <arrow.version>0.8.0</arrow.version>
54 <maven-compiler-plugin.version>3.7.0</maven-compiler-plugin.version>
55 <build-helper-maven-plugin.version>1.7</build-helper-maven-plugin.version>
56 <jacoco.version>0.8.2</jacoco.version>
57 <detekt.version>1.0.0-RC11</detekt.version>
59 <!-- Protocol buffers -->
60 <protobuf.version>3.6.1</protobuf.version>
61 <protoc-jar-maven-plugin.version>3.6.0.1</protoc-jar-maven-plugin.version>
62 <protobuf-generated-files.directory>${project.build.directory}/generated-sources/proto/main/java/
63 </protobuf-generated-files.directory>
65 <!-- Testing and code analysis -->
66 <junit-platform.version>1.2.0-RC1</junit-platform.version>
67 <junit-jupiter.version>5.2.0-RC1</junit-jupiter.version>
68 <spek.version>1.1.5</spek.version>
69 <maven-surefire-plugin.version>2.22.0</maven-surefire-plugin.version>
70 <failIfMissingUnitTests>false</failIfMissingUnitTests>
71 <failIfMissingComponentTests>false</failIfMissingComponentTests>
72 <skipAnalysis>true</skipAnalysis>
73 <jacoco.minimum.coverage>60</jacoco.minimum.coverage>
76 <skipDocker>false</skipDocker>
77 <skipDockerPush>true</skipDockerPush>
78 <maven.build.timestamp.format>yyyyMMdd'T'HHmmss</maven.build.timestamp.format>
79 <docker-image.registry>${onap.nexus.dockerregistry.daily}</docker-image.registry>
80 <docker-image.namespace>onap</docker-image.namespace>
81 <docker-image.name>${project.groupId}.${project.artifactId}</docker-image.name>
82 <docker-image.latest>1.1-SNAPSHOT</docker-image.latest>
88 <sourceDirectory>${project.basedir}/src/main/kotlin</sourceDirectory>
89 <testSourceDirectory>${project.basedir}/src/test/kotlin</testSourceDirectory>
92 <directory>${project.basedir}/src/main/resources</directory>
98 <groupId>org.apache.maven.plugins</groupId>
99 <artifactId>maven-resources-plugin</artifactId>
100 <version>3.1.0</version>
102 <encoding>UTF-8</encoding>
106 <groupId>org.apache.maven.plugins</groupId>
107 <artifactId>maven-deploy-plugin</artifactId>
113 <artifactId>kotlin-maven-plugin</artifactId>
114 <groupId>org.jetbrains.kotlin</groupId>
115 <version>${kotlin.version}</version>
117 <jvmTarget>1.8</jvmTarget>
127 <source>${project.build.sourceDirectory}</source>
128 <source>${project.build.directory}/generated-sources/annotations</source>
133 <id>test-compile</id>
135 <goal>test-compile</goal>
139 <source>${project.build.testSourceDirectory}</source>
146 <groupId>com.github.os72</groupId>
147 <artifactId>protoc-jar-maven-plugin</artifactId>
148 <version>${protoc-jar-maven-plugin.version}</version>
151 <groupId>org.codehaus.mojo</groupId>
152 <artifactId>build-helper-maven-plugin</artifactId>
153 <version>${build-helper-maven-plugin.version}</version>
157 <phase>generate-sources</phase>
159 <goal>add-source</goal>
163 <source>${protobuf-generated-files.directory}</source>
170 <groupId>org.apache.maven.plugins</groupId>
171 <artifactId>maven-compiler-plugin</artifactId>
172 <version>${maven-compiler-plugin.version}</version>
176 <encoding>UTF-8</encoding>
177 <showWarnings>true</showWarnings>
178 <showDeprecation>true</showDeprecation>
179 <failOnWarning>false</failOnWarning>
183 <groupId>org.ow2.asm</groupId>
184 <artifactId>asm</artifactId>
185 <version>6.1.1</version> <!-- Use newer version of ASM -->
190 Due to a memory leak in Surefire 2.20 and issues running on Java 9, the junit-platform-surefire-provider
191 currently only works with Surefire 2.19.1.
192 For updates see https://junit.org/junit5/docs/current/user-guide/#running-tests-build-maven
195 <artifactId>maven-surefire-plugin</artifactId>
196 <groupId>org.apache.maven.plugins</groupId>
197 <version>${maven-surefire-plugin.version}</version>
199 <failIfNoTests>${failIfMissingUnitTests}</failIfNoTests>
200 <forkCount>1</forkCount>
202 <include>**/*Test.*</include>
207 <groupId>org.apache.commons</groupId>
208 <artifactId>commons-lang3</artifactId>
209 <version>3.7</version>
212 <groupId>org.junit.platform</groupId>
213 <artifactId>junit-platform-surefire-provider</artifactId>
214 <version>${junit-platform.version}</version>
215 <scope>runtime</scope>
218 <groupId>org.jetbrains.spek</groupId>
219 <artifactId>spek-junit-platform-engine</artifactId>
220 <version>${spek.version}</version>
221 <scope>runtime</scope>
226 <groupId>org.apache.maven.plugins</groupId>
227 <artifactId>maven-failsafe-plugin</artifactId>
228 <version>2.22.0</version>
230 <failIfNoTests>${failIfMissingComponentTests}</failIfNoTests>
231 <forkCount>1</forkCount>
233 <include>**/*Specification.*</include>
238 <groupId>org.apache.commons</groupId>
239 <artifactId>commons-lang3</artifactId>
240 <version>3.7</version>
243 <groupId>org.junit.platform</groupId>
244 <artifactId>junit-platform-surefire-provider</artifactId>
245 <version>${junit-platform.version}</version>
246 <scope>runtime</scope>
249 <groupId>org.jetbrains.spek</groupId>
250 <artifactId>spek-junit-platform-engine</artifactId>
251 <version>${spek.version}</version>
252 <scope>runtime</scope>
257 <groupId>org.codehaus.mojo</groupId>
258 <artifactId>exec-maven-plugin</artifactId>
259 <version>1.6.0</version>
265 <groupId>kr.motd.maven</groupId>
266 <artifactId>os-maven-plugin</artifactId>
267 <version>1.6.0</version>
274 <id>docker-proxy</id>
277 <name>docker.http_proxy</name>
281 <!-- set build args as defined in https://dmp.fabric8.io/#build-buildargs -->
282 <docker.buildArg.http_proxy>${docker.http_proxy}</docker.buildArg.http_proxy>
283 <docker.buildArg.https_proxy>${docker.http_proxy}</docker.buildArg.https_proxy>
291 <name>!skipDocker</name>
295 <os.detected.name>linux</os.detected.name>
296 <os.detected.arch>x86_64</os.detected.arch>
297 <os.detected.classifier>${os.detected.name}-${os.detected.arch}</os.detected.classifier>
303 <groupId>org.apache.maven.plugins</groupId>
304 <artifactId>maven-dependency-plugin</artifactId>
305 <version>3.1.1</version>
308 <id>docker-copy-internal-deps</id>
309 <phase>package</phase>
311 <goal>copy-dependencies</goal>
314 <outputDirectory>${project.build.directory}/libs/internal</outputDirectory>
315 <includeGroupIds>${project.parent.groupId}</includeGroupIds>
316 <includeScope>runtime</includeScope>
320 <id>docker-copy-external-deps</id>
321 <phase>package</phase>
323 <goal>copy-dependencies</goal>
326 <outputDirectory>${project.build.directory}/libs/external</outputDirectory>
327 <excludeGroupIds>${project.parent.groupId}</excludeGroupIds>
328 <includeScope>runtime</includeScope>
334 <groupId>io.fabric8</groupId>
335 <artifactId>docker-maven-plugin</artifactId>
336 <version>0.26.0</version>
339 <id>docker-build-image</id>
340 <phase>package</phase>
346 <id>docker-push-image</id>
347 <phase>deploy</phase>
354 <skipPush>${skipDockerPush}</skipPush>
355 <verbose>true</verbose>
356 <imagePullPolicy>IfNotPresent</imagePullPolicy>
359 <alias>${project.artifactId}</alias>
360 <name>${docker-image.namespace}/${docker-image.name}
362 <registry>${docker-image.registry}</registry>
364 <dockerFileDir>${project.basedir}</dockerFileDir>
366 <tag>${project.version}-${maven.build.timestamp}Z</tag>
367 <tag>${project.version}</tag>
368 <tag>${docker-image.latest}</tag>
383 <id>arturbosch-code-analysis</id>
384 <name>arturbosch-code-analysis (for detekt)</name>
385 <url>https://dl.bintray.com/arturbosch/code-analysis/</url>
386 <layout>default</layout>
388 <enabled>true</enabled>
389 <updatePolicy>never</updatePolicy>
392 <enabled>false</enabled>
393 <updatePolicy>never</updatePolicy>
396 </pluginRepositories>
400 <id>40_openecomp-release</id>
401 <name>40_openecomp-release</name>
402 <url>https://nexus.onap.org/content/repositories/releases/</url>
404 <enabled>true</enabled>
405 <updatePolicy>daily</updatePolicy>
408 <enabled>false</enabled>
413 <dependencyManagement>
416 <groupId>com.google.guava</groupId>
417 <artifactId>guava</artifactId>
421 <groupId>com.google.code.findbugs</groupId>
422 <artifactId>jsr305</artifactId>
427 <groupId>org.jetbrains.kotlin</groupId>
428 <artifactId>kotlin-stdlib-jdk8</artifactId>
429 <version>${kotlin.version}</version>
432 <groupId>org.jetbrains.kotlin</groupId>
433 <artifactId>kotlin-reflect</artifactId>
434 <version>${kotlin.version}</version>
437 <groupId>org.jetbrains.kotlin</groupId>
438 <artifactId>kotlin-compiler-embeddable</artifactId>
439 <version>${kotlin.version}</version>
442 <groupId>org.jetbrains.kotlin</groupId>
443 <artifactId>kotlin-script-runtime</artifactId>
444 <version>${kotlin.version}</version>
445 <scope>runtime</scope>
448 <groupId>org.jetbrains.kotlin</groupId>
449 <artifactId>kotlin-script-util</artifactId>
450 <version>${kotlin.version}</version>
451 <scope>runtime</scope>
454 <groupId>org.jetbrains.kotlinx</groupId>
455 <artifactId>kotlinx-coroutines-core</artifactId>
456 <version>1.0.0</version>
459 <groupId>io.arrow-kt</groupId>
460 <artifactId>arrow-core</artifactId>
461 <version>${arrow.version}</version>
464 <groupId>org.jetbrains.kotlin</groupId>
465 <artifactId>kotlin-stdlib</artifactId>
468 <groupId>org.jetbrains.kotlin</groupId>
469 <artifactId>kotlin-stdlib-jdk7</artifactId>
474 <groupId>io.arrow-kt</groupId>
475 <artifactId>arrow-syntax</artifactId>
476 <version>${arrow.version}</version>
479 <groupId>io.arrow-kt</groupId>
480 <artifactId>arrow-instances-core</artifactId>
481 <version>${arrow.version}</version>
484 <groupId>io.arrow-kt</groupId>
485 <artifactId>arrow-instances-data</artifactId>
486 <version>${arrow.version}</version>
489 <groupId>io.arrow-kt</groupId>
490 <artifactId>arrow-effects</artifactId>
491 <version>${arrow.version}</version>
494 <groupId>io.arrow-kt</groupId>
495 <artifactId>arrow-effects-instances</artifactId>
496 <version>${arrow.version}</version>
499 <groupId>io.arrow-kt</groupId>
500 <artifactId>arrow-effects-reactor</artifactId>
501 <version>${arrow.version}</version>
504 <groupId>ch.qos.logback</groupId>
505 <artifactId>logback-classic</artifactId>
506 <version>1.3.0-alpha4</version>
507 <scope>runtime</scope>
510 <groupId>org.slf4j</groupId>
511 <artifactId>slf4j-api</artifactId>
512 <version>1.8.0-beta1</version>
515 <groupId>io.projectreactor</groupId>
516 <artifactId>reactor-bom</artifactId>
517 <!-- remember to update netty native bindings versions -->
518 <version>Californium-SR2</version>
520 <scope>import</scope>
524 Disable native extensions (ssl and epoll) on production for now.
525 Might be reintroduced if performance tests prove there is some performance issue.
528 <groupId>io.netty</groupId>
529 <artifactId>netty-tcnative-boringssl-static</artifactId>
530 <version>2.0.15.Final</version>
531 <scope>runtime</scope>
532 <classifier>${os.detected.classifier}</classifier>
536 <groupId>io.netty</groupId>
537 <artifactId>netty-transport-native-epoll</artifactId>
538 <version>4.1.29.Final</version>
539 <classifier>${os.detected.classifier}</classifier>
543 <groupId>com.google.protobuf</groupId>
544 <artifactId>protobuf-java</artifactId>
545 <version>${protobuf.version}</version>
548 <groupId>com.google.protobuf</groupId>
549 <artifactId>protobuf-java-util</artifactId>
550 <version>${protobuf.version}</version>
553 <groupId>commons-cli</groupId>
554 <artifactId>commons-cli</artifactId>
555 <version>1.4</version>
558 <groupId>javax.json</groupId>
559 <artifactId>javax.json-api</artifactId>
560 <version>1.1.2</version>
563 <groupId>org.glassfish</groupId>
564 <artifactId>javax.json</artifactId>
565 <version>1.1.2</version>
568 <!-- To override ratpack transitive dependency which creates security vulnerability
569 This issue will be resolved with ratpack 1.6.0 release -->
570 <groupId>com.fasterxml.jackson.core</groupId>
571 <artifactId>jackson-databind</artifactId>
572 <version>2.9.6</version>
575 <groupId>io.ratpack</groupId>
576 <artifactId>ratpack-core</artifactId>
577 <version>1.5.4</version>
580 <groupId>io.micrometer</groupId>
581 <artifactId>micrometer-registry-jmx</artifactId>
582 <version>1.0.5</version>
585 <!-- Test dependencies -->
588 <groupId>org.jetbrains.spek</groupId>
589 <artifactId>spek-api</artifactId>
590 <version>${spek.version}</version>
594 <groupId>org.jetbrains.spek</groupId>
595 <artifactId>spek-junit-platform-engine</artifactId>
596 <version>${spek.version}</version>
600 <groupId>org.assertj</groupId>
601 <artifactId>assertj-core</artifactId>
602 <version>3.9.1</version>
606 <groupId>com.nhaarman.mockitokotlin2</groupId>
607 <artifactId>mockito-kotlin</artifactId>
608 <version>2.0.0</version>
612 <groupId>org.jetbrains.kotlin</groupId>
613 <artifactId>kotlin-test</artifactId>
614 <version>${kotlin.version}</version>
618 <groupId>io.projectreactor</groupId>
619 <artifactId>reactor-test</artifactId>
620 <version>3.1.7.RELEASE</version>
624 </dependencyManagement>