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"
22 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
24 <modelVersion>4.0.0</modelVersion>
28 <name>The Apache Software License, Version 2.0</name>
29 <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
33 <groupId>org.onap.dcaegen2.collectors.veshv</groupId>
34 <artifactId>ves-hv-collector</artifactId>
35 <version>1.0.0-SNAPSHOT</version>
36 <name>dcaegen2-collectors-veshv</name>
37 <description>VES HighVolume Collector</description>
38 <packaging>pom</packaging>
41 <module>hv-collector-analysis</module>
42 <module>hv-collector-client-simulator</module>
43 <module>hv-collector-core</module>
44 <module>hv-collector-coverage</module>
45 <module>hv-collector-ct</module>
46 <module>hv-collector-dcae-app-simulator</module>
47 <module>hv-collector-domain</module>
48 <module>hv-collector-main</module>
49 <module>hv-collector-utils</module>
53 <kotlin.version>1.2.50</kotlin.version>
54 <arrow.version>0.7.2</arrow.version>
55 <maven-compiler-plugin.version>3.7.0</maven-compiler-plugin.version>
56 <build-helper-maven-plugin.version>1.7</build-helper-maven-plugin.version>
58 <!-- Protocol buffers -->
59 <protobuf.version>3.5.1</protobuf.version>
60 <protoc-jar-maven-plugin.version>3.5.1.1</protoc-jar-maven-plugin.version>
61 <protobuf-generated-files.directory>${project.build.directory}/generated-sources/proto/main/java/
62 </protobuf-generated-files.directory>
64 <!-- Testing and code analysis -->
65 <junit-platform.version>1.2.0-RC1</junit-platform.version>
66 <junit-jupiter.version>5.2.0-RC1</junit-jupiter.version>
67 <spek.version>1.1.5</spek.version>
68 <maven-surefire-plugin.version>2.21.0</maven-surefire-plugin.version>
69 <failIfMissingUnitTests>true</failIfMissingUnitTests>
70 <failIfMissingComponentTests>false</failIfMissingComponentTests>
71 <skipAnalysis>true</skipAnalysis>
74 <skipDocker>true</skipDocker> <!-- TODO: unskip docker -->
75 <docker-image.name>ves-hv-collector/${project.artifactId}</docker-image.name>
76 <docker-image.namespace>onap</docker-image.namespace>
81 <sourceDirectory>${project.basedir}/src/main/kotlin</sourceDirectory>
82 <testSourceDirectory>${project.basedir}/src/test/kotlin</testSourceDirectory>
85 <directory>${project.basedir}/src/main/resources</directory>
91 <groupId>org.apache.maven.plugins</groupId>
92 <artifactId>maven-resources-plugin</artifactId>
93 <version>3.1.0</version>
95 <encoding>UTF-8</encoding>
99 <groupId>org.apache.maven.plugins</groupId>
100 <artifactId>maven-deploy-plugin</artifactId>
106 <artifactId>kotlin-maven-plugin</artifactId>
107 <groupId>org.jetbrains.kotlin</groupId>
108 <version>${kotlin.version}</version>
110 <jvmTarget>1.8</jvmTarget>
120 <source>${project.build.sourceDirectory}</source>
121 <source>${project.build.directory}/generated-sources/annotations</source>
126 <id>test-compile</id>
128 <goal>test-compile</goal>
132 <source>${project.build.testSourceDirectory}</source>
139 <groupId>com.github.os72</groupId>
140 <artifactId>protoc-jar-maven-plugin</artifactId>
141 <version>${protoc-jar-maven-plugin.version}</version>
144 <groupId>org.codehaus.mojo</groupId>
145 <artifactId>build-helper-maven-plugin</artifactId>
146 <version>${build-helper-maven-plugin.version}</version>
150 <phase>generate-sources</phase>
152 <goal>add-source</goal>
156 <source>${protobuf-generated-files.directory}</source>
163 <groupId>org.apache.maven.plugins</groupId>
164 <artifactId>maven-compiler-plugin</artifactId>
165 <version>${maven-compiler-plugin.version}</version>
169 <encoding>UTF-8</encoding>
170 <showWarnings>true</showWarnings>
171 <showDeprecation>true</showDeprecation>
172 <failOnWarning>false</failOnWarning>
176 <groupId>org.ow2.asm</groupId>
177 <artifactId>asm</artifactId>
178 <version>6.1.1</version> <!-- Use newer version of ASM -->
183 Due to a memory leak in Surefire 2.20 and issues running on Java 9, the junit-platform-surefire-provider
184 currently only works with Surefire 2.19.1.
185 For updates see https://junit.org/junit5/docs/current/user-guide/#running-tests-build-maven
188 <artifactId>maven-surefire-plugin</artifactId>
189 <groupId>org.apache.maven.plugins</groupId>
190 <version>${maven-surefire-plugin.version}</version>
193 <id>default-test</id>
198 <failIfNoTests>${failIfMissingUnitTests}</failIfNoTests>
199 <forkCount>1</forkCount>
201 <include>**/*Test.*</include>
203 <!--<argLine>--add-modules org.junit.jupiter.api,reactor.test,assertj.core</argLine>-->
207 <id>component-tests</id>
208 <phase>verify</phase>
213 <failIfNoTests>${failIfMissingComponentTests}</failIfNoTests>
214 <forkCount>1</forkCount>
216 <include>**/*Specification.*</include>
223 <groupId>org.apache.commons</groupId>
224 <artifactId>commons-lang3</artifactId>
225 <version>3.7</version>
228 <groupId>org.junit.platform</groupId>
229 <artifactId>junit-platform-surefire-provider</artifactId>
230 <version>${junit-platform.version}</version>
231 <scope>runtime</scope>
234 <groupId>org.jetbrains.spek</groupId>
235 <artifactId>spek-junit-platform-engine</artifactId>
236 <version>${spek.version}</version>
237 <scope>runtime</scope>
245 <groupId>kr.motd.maven</groupId>
246 <artifactId>os-maven-plugin</artifactId>
247 <version>1.6.0</version>
256 <activeByDefault>true</activeByDefault>
261 <groupId>org.jacoco</groupId>
262 <artifactId>jacoco-maven-plugin</artifactId>
263 <version>0.8.1</version>
266 <id>default-prepare-agent</id>
268 <goal>prepare-agent</goal>
272 <id>default-prepare-agent-integration</id>
274 <goal>prepare-agent-integration</goal>
281 <groupId>org.apache.maven.plugins</groupId>
282 <artifactId>maven-antrun-plugin</artifactId>
283 <version>1.8</version>
286 <!-- This can be run separately with mvn antrun:run@detekt -->
288 <phase>verify</phase>
290 <target name="detekt" unless="${skipAnalysis}">
291 <java taskname="detekt" dir="${basedir}"
294 classname="io.gitlab.arturbosch.detekt.cli.Main"
295 classpathref="maven.plugin.classpath">
296 <arg value="--input"/>
297 <arg value="${basedir}/src/main/kotlin"/>
298 <arg value="--config-resource"/>
299 <arg value="onap-detekt-config.yml"/>
300 <arg value="--filters"/>
301 <arg value=".*/target/.*,.*/resources/.*"/>
302 <arg value="--output"/>
303 <arg value="${basedir}/target/reports"/>
304 <arg value="--output-name"/>
305 <arg value="detekt-report"/>
306 <arg value="--baseline"/>
307 <arg value="${basedir}/target/reports/baseline.xml"/>
318 <groupId>io.gitlab.arturbosch.detekt</groupId>
319 <artifactId>detekt-cli</artifactId>
320 <version>1.0.0.RC7</version>
323 <groupId>${project.groupId}</groupId>
324 <artifactId>hv-collector-analysis</artifactId>
325 <version>${project.version}</version>
331 <artifactId>maven-checkstyle-plugin</artifactId>
332 <version>3.0.0</version>
335 <groupId>org.onap.oparent</groupId>
336 <artifactId>checkstyle</artifactId>
337 <version>1.1.1</version>
342 <id>onap-license</id>
346 <phase>process-sources</phase>
348 <configLocation>onap-checkstyle/check-license.xml</configLocation>
349 <includeResources>false</includeResources>
350 <includeTestSourceDirectory>true</includeTestSourceDirectory>
351 <includeTestResources>false</includeTestResources>
352 <includes>**\/*.kt</includes>
353 <consoleOutput>true</consoleOutput>
354 <!--<failOnViolation>false</failOnViolation>-->
366 <name>!skipDocker</name>
370 <os.detected.name>linux</os.detected.name>
371 <os.detected.arch>x86_64</os.detected.arch>
372 <os.detected.classifier>${os.detected.name}-${os.detected.arch}</os.detected.classifier>
378 <groupId>io.fabric8</groupId>
379 <artifactId>docker-maven-plugin</artifactId>
380 <version>0.26.0</version>
383 <id>build-docker-image</id>
384 <phase>pre-integration-test</phase>
390 <id>push-docker-image</id>
391 <phase>deploy</phase>
398 <verbose>true</verbose>
399 <imagePullPolicy>IfNotPresent</imagePullPolicy>
402 <alias>${project.artifactId}</alias>
403 <name>${docker-image.namespace}/${docker-image.name}</name>
405 <dockerFileDir>${project.basedir}</dockerFileDir>
412 <groupId>org.apache.maven.plugins</groupId>
413 <artifactId>maven-dependency-plugin</artifactId>
414 <version>3.1.1</version>
417 <id>copy-internal-deps</id>
418 <phase>package</phase>
420 <goal>copy-dependencies</goal>
423 <outputDirectory>${project.build.directory}/libs/internal</outputDirectory>
424 <includeGroupIds>${project.parent.groupId}</includeGroupIds>
425 <includeScope>runtime</includeScope>
429 <id>copy-external-deps</id>
430 <phase>package</phase>
432 <goal>copy-dependencies</goal>
435 <outputDirectory>${project.build.directory}/libs/external</outputDirectory>
436 <excludeGroupIds>${project.parent.groupId}</excludeGroupIds>
437 <includeScope>runtime</includeScope>
451 <groupId>org.jacoco</groupId>
452 <artifactId>jacoco-maven-plugin</artifactId>
456 <report>report</report>
466 <id>40_openecomp-release</id>
467 <name>40_openecomp-release</name>
468 <url>https://nexus.onap.org/content/repositories/releases/</url>
470 <enabled>true</enabled>
471 <updatePolicy>daily</updatePolicy>
474 <enabled>false</enabled>
479 <id>arturbosch-code-analysis</id>
480 <name>arturbosch-code-analysis (for detekt)</name>
481 <url>https://dl.bintray.com/arturbosch/code-analysis/</url>
482 <layout>default</layout>
484 <enabled>true</enabled>
485 <updatePolicy>never</updatePolicy>
488 <enabled>false</enabled>
489 <updatePolicy>never</updatePolicy>
492 </pluginRepositories>
496 <id>40_openecomp-release</id>
497 <name>40_openecomp-release</name>
498 <url>https://nexus.onap.org/content/repositories/releases/</url>
500 <enabled>true</enabled>
501 <updatePolicy>daily</updatePolicy>
504 <enabled>false</enabled>
509 <dependencyManagement>
512 <groupId>com.google.guava</groupId>
513 <artifactId>guava</artifactId>
514 <version>25.0-jre</version>
517 <groupId>com.google.code.findbugs</groupId>
518 <artifactId>jsr305</artifactId>
523 <groupId>org.jetbrains.kotlin</groupId>
524 <artifactId>kotlin-stdlib-jdk8</artifactId>
525 <version>${kotlin.version}</version>
528 <groupId>org.jetbrains.kotlin</groupId>
529 <artifactId>kotlin-reflect</artifactId>
530 <version>${kotlin.version}</version>
533 <groupId>io.arrow-kt</groupId>
534 <artifactId>arrow-core</artifactId>
535 <version>${arrow.version}</version>
538 <groupId>org.jetbrains.kotlin</groupId>
539 <artifactId>kotlin-stdlib</artifactId>
542 <groupId>org.jetbrains.kotlin</groupId>
543 <artifactId>kotlin-stdlib-jdk7</artifactId>
548 <groupId>io.arrow-kt</groupId>
549 <artifactId>arrow-syntax</artifactId>
550 <version>${arrow.version}</version>
553 <groupId>io.arrow-kt</groupId>
554 <artifactId>arrow-instances-core</artifactId>
555 <version>${arrow.version}</version>
558 <groupId>io.arrow-kt</groupId>
559 <artifactId>arrow-instances-data</artifactId>
560 <version>${arrow.version}</version>
563 <groupId>io.arrow-kt</groupId>
564 <artifactId>arrow-effects</artifactId>
565 <version>${arrow.version}</version>
568 <groupId>ch.qos.logback</groupId>
569 <artifactId>logback-classic</artifactId>
570 <version>1.3.0-alpha4</version>
571 <scope>runtime</scope>
574 <groupId>org.slf4j</groupId>
575 <artifactId>slf4j-api</artifactId>
576 <version>1.8.0-beta1</version>
579 <groupId>io.projectreactor</groupId>
580 <artifactId>reactor-bom</artifactId>
581 <version>Bismuth-SR8</version>
583 <scope>import</scope>
586 <groupId>io.netty</groupId>
587 <artifactId>netty-tcnative-boringssl-static</artifactId>
588 <version>2.0.8.Final</version>
589 <classifier>${os.detected.classifier}</classifier>
592 <groupId>com.google.protobuf</groupId>
593 <artifactId>protobuf-java</artifactId>
594 <version>${protobuf.version}</version>
597 <groupId>com.google.protobuf</groupId>
598 <artifactId>protobuf-java-util</artifactId>
599 <version>${protobuf.version}</version>
602 <groupId>commons-cli</groupId>
603 <artifactId>commons-cli</artifactId>
604 <version>1.4</version>
607 <groupId>javax.json</groupId>
608 <artifactId>javax.json-api</artifactId>
609 <version>1.1.2</version>
612 <groupId>org.glassfish</groupId>
613 <artifactId>javax.json</artifactId>
614 <version>1.1.2</version>
617 <groupId>io.ratpack</groupId>
618 <artifactId>ratpack-core</artifactId>
619 <version>1.5.4</version>
622 <groupId>io.micrometer</groupId>
623 <artifactId>micrometer-registry-jmx</artifactId>
624 <version>1.0.5</version>
627 <!-- Test dependencies -->
630 <groupId>org.jetbrains.spek</groupId>
631 <artifactId>spek-api</artifactId>
632 <version>${spek.version}</version>
636 <groupId>org.jetbrains.spek</groupId>
637 <artifactId>spek-junit-platform-engine</artifactId>
638 <version>${spek.version}</version>
643 <groupId>org.assertj</groupId>
644 <artifactId>assertj-core</artifactId>
645 <version>3.9.1</version>
649 <groupId>com.nhaarman</groupId>
650 <artifactId>mockito-kotlin</artifactId>
651 <version>1.5.0</version>
655 <groupId>org.mockito</groupId>
656 <artifactId>mockito-core</artifactId>
661 <groupId>org.mockito</groupId>
662 <artifactId>mockito-core</artifactId>
663 <version>2.18.3</version>
667 <groupId>org.jetbrains.kotlin</groupId>
668 <artifactId>kotlin-test</artifactId>
669 <version>${kotlin.version}</version>
673 <groupId>io.projectreactor</groupId>
674 <artifactId>reactor-test</artifactId>
675 <version>3.1.7.RELEASE</version>
679 </dependencyManagement>