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-core</module>
43 <module>hv-collector-coverage</module>
44 <module>hv-collector-ct</module>
45 <module>hv-collector-dcae-app-simulator</module>
46 <module>hv-collector-domain</module>
47 <module>hv-collector-main</module>
48 <module>hv-collector-utils</module>
49 <module>hv-collector-ves-message-generator</module>
50 <module>hv-collector-xnf-simulator</module>
54 <kotlin.version>1.2.51</kotlin.version>
55 <arrow.version>0.7.2</arrow.version>
56 <maven-compiler-plugin.version>3.7.0</maven-compiler-plugin.version>
57 <build-helper-maven-plugin.version>1.7</build-helper-maven-plugin.version>
59 <!-- Protocol buffers -->
60 <protobuf.version>3.5.1</protobuf.version>
61 <protoc-jar-maven-plugin.version>3.5.1.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.21.0</maven-surefire-plugin.version>
70 <failIfMissingUnitTests>true</failIfMissingUnitTests>
71 <failIfMissingComponentTests>false</failIfMissingComponentTests>
72 <skipAnalysis>true</skipAnalysis>
74 <skipDocker>true</skipDocker> <!-- TODO: unskip docker -->
76 <onap.nexus.dockerregistry.daily>nexus3.onap.org:10003</onap.nexus.dockerregistry.daily>
77 <onap.nexus.dockerregistry.release>nexus3.onap.org:10002</onap.nexus.dockerregistry.release>
78 <docker-image.registry>${onap.nexus.dockerregistry.daily}</docker-image.registry>
79 <docker-image.namespace>onap</docker-image.namespace>
80 <docker-image.name>ves-hv-collector/${project.artifactId}</docker-image.name>
85 <sourceDirectory>${project.basedir}/src/main/kotlin</sourceDirectory>
86 <testSourceDirectory>${project.basedir}/src/test/kotlin</testSourceDirectory>
89 <directory>${project.basedir}/src/main/resources</directory>
95 <groupId>org.apache.maven.plugins</groupId>
96 <artifactId>maven-resources-plugin</artifactId>
97 <version>3.1.0</version>
99 <encoding>UTF-8</encoding>
103 <groupId>org.apache.maven.plugins</groupId>
104 <artifactId>maven-deploy-plugin</artifactId>
110 <artifactId>kotlin-maven-plugin</artifactId>
111 <groupId>org.jetbrains.kotlin</groupId>
112 <version>${kotlin.version}</version>
114 <jvmTarget>1.8</jvmTarget>
124 <source>${project.build.sourceDirectory}</source>
125 <source>${project.build.directory}/generated-sources/annotations</source>
130 <id>test-compile</id>
132 <goal>test-compile</goal>
136 <source>${project.build.testSourceDirectory}</source>
143 <groupId>com.github.os72</groupId>
144 <artifactId>protoc-jar-maven-plugin</artifactId>
145 <version>${protoc-jar-maven-plugin.version}</version>
148 <groupId>org.codehaus.mojo</groupId>
149 <artifactId>build-helper-maven-plugin</artifactId>
150 <version>${build-helper-maven-plugin.version}</version>
154 <phase>generate-sources</phase>
156 <goal>add-source</goal>
160 <source>${protobuf-generated-files.directory}</source>
167 <groupId>org.apache.maven.plugins</groupId>
168 <artifactId>maven-compiler-plugin</artifactId>
169 <version>${maven-compiler-plugin.version}</version>
173 <encoding>UTF-8</encoding>
174 <showWarnings>true</showWarnings>
175 <showDeprecation>true</showDeprecation>
176 <failOnWarning>false</failOnWarning>
180 <groupId>org.ow2.asm</groupId>
181 <artifactId>asm</artifactId>
182 <version>6.1.1</version> <!-- Use newer version of ASM -->
187 Due to a memory leak in Surefire 2.20 and issues running on Java 9, the junit-platform-surefire-provider
188 currently only works with Surefire 2.19.1.
189 For updates see https://junit.org/junit5/docs/current/user-guide/#running-tests-build-maven
192 <artifactId>maven-surefire-plugin</artifactId>
193 <groupId>org.apache.maven.plugins</groupId>
194 <version>${maven-surefire-plugin.version}</version>
197 <id>default-test</id>
202 <failIfNoTests>${failIfMissingUnitTests}</failIfNoTests>
203 <forkCount>1</forkCount>
205 <include>**/*Test.*</include>
207 <!--<argLine>--add-modules org.junit.jupiter.api,reactor.test,assertj.core</argLine>-->
211 <id>component-tests</id>
212 <phase>verify</phase>
217 <failIfNoTests>${failIfMissingComponentTests}</failIfNoTests>
218 <forkCount>1</forkCount>
220 <include>**/*Specification.*</include>
227 <groupId>org.apache.commons</groupId>
228 <artifactId>commons-lang3</artifactId>
229 <version>3.7</version>
232 <groupId>org.junit.platform</groupId>
233 <artifactId>junit-platform-surefire-provider</artifactId>
234 <version>${junit-platform.version}</version>
235 <scope>runtime</scope>
238 <groupId>org.jetbrains.spek</groupId>
239 <artifactId>spek-junit-platform-engine</artifactId>
240 <version>${spek.version}</version>
241 <scope>runtime</scope>
249 <groupId>kr.motd.maven</groupId>
250 <artifactId>os-maven-plugin</artifactId>
251 <version>1.6.0</version>
260 <activeByDefault>true</activeByDefault>
265 <groupId>org.jacoco</groupId>
266 <artifactId>jacoco-maven-plugin</artifactId>
267 <version>0.8.1</version>
270 <id>default-prepare-agent</id>
272 <goal>prepare-agent</goal>
276 <id>default-prepare-agent-integration</id>
278 <goal>prepare-agent-integration</goal>
284 <!-- Exclute Protobuf-generated classes -->
285 <exclude>org/onap/ves/*</exclude>
291 <groupId>org.apache.maven.plugins</groupId>
292 <artifactId>maven-antrun-plugin</artifactId>
293 <version>1.8</version>
296 <!-- This can be run separately with mvn antrun:run@detekt -->
298 <phase>verify</phase>
300 <target name="detekt" unless="${skipAnalysis}">
301 <java taskname="detekt" dir="${basedir}"
304 classname="io.gitlab.arturbosch.detekt.cli.Main"
305 classpathref="maven.plugin.classpath">
306 <arg value="--input"/>
307 <arg value="${basedir}/src/main/kotlin"/>
308 <arg value="--config-resource"/>
309 <arg value="onap-detekt-config.yml"/>
310 <arg value="--filters"/>
311 <arg value=".*/target/.*,.*/resources/.*"/>
312 <arg value="--output"/>
313 <arg value="${basedir}/target/reports"/>
314 <arg value="--output-name"/>
315 <arg value="detekt-report"/>
316 <arg value="--baseline"/>
317 <arg value="${basedir}/target/reports/baseline.xml"/>
328 <groupId>io.gitlab.arturbosch.detekt</groupId>
329 <artifactId>detekt-cli</artifactId>
330 <version>1.0.0.RC7</version>
333 <groupId>${project.groupId}</groupId>
334 <artifactId>hv-collector-analysis</artifactId>
335 <version>${project.version}</version>
341 <artifactId>maven-checkstyle-plugin</artifactId>
342 <version>3.0.0</version>
345 <groupId>org.onap.oparent</groupId>
346 <artifactId>checkstyle</artifactId>
347 <version>1.1.1</version>
352 <id>onap-license</id>
356 <phase>process-sources</phase>
358 <configLocation>onap-checkstyle/check-license.xml</configLocation>
359 <includeResources>false</includeResources>
360 <includeTestSourceDirectory>true</includeTestSourceDirectory>
361 <includeTestResources>false</includeTestResources>
362 <includes>**\/*.kt</includes>
363 <consoleOutput>true</consoleOutput>
364 <!--<failOnViolation>false</failOnViolation>-->
376 <name>!skipDocker</name>
380 <os.detected.name>linux</os.detected.name>
381 <os.detected.arch>x86_64</os.detected.arch>
382 <os.detected.classifier>${os.detected.name}-${os.detected.arch}</os.detected.classifier>
388 <groupId>io.fabric8</groupId>
389 <artifactId>docker-maven-plugin</artifactId>
390 <version>0.26.0</version>
393 <id>build-docker-image</id>
394 <phase>pre-integration-test</phase>
400 <id>push-docker-image</id>
401 <phase>deploy</phase>
408 <verbose>true</verbose>
409 <imagePullPolicy>IfNotPresent</imagePullPolicy>
412 <alias>${project.artifactId}</alias>
413 <name>${docker-image.registry}/${docker-image.namespace}/${docker-image.name}</name>
415 <dockerFileDir>${project.basedir}</dockerFileDir>
422 <groupId>org.apache.maven.plugins</groupId>
423 <artifactId>maven-dependency-plugin</artifactId>
424 <version>3.1.1</version>
427 <id>copy-internal-deps</id>
428 <phase>package</phase>
430 <goal>copy-dependencies</goal>
433 <outputDirectory>${project.build.directory}/libs/internal</outputDirectory>
434 <includeGroupIds>${project.parent.groupId}</includeGroupIds>
435 <includeScope>runtime</includeScope>
439 <id>copy-external-deps</id>
440 <phase>package</phase>
442 <goal>copy-dependencies</goal>
445 <outputDirectory>${project.build.directory}/libs/external</outputDirectory>
446 <excludeGroupIds>${project.parent.groupId}</excludeGroupIds>
447 <includeScope>runtime</includeScope>
461 <groupId>org.jacoco</groupId>
462 <artifactId>jacoco-maven-plugin</artifactId>
466 <report>report</report>
476 <id>40_openecomp-release</id>
477 <name>40_openecomp-release</name>
478 <url>https://nexus.onap.org/content/repositories/releases/</url>
480 <enabled>true</enabled>
481 <updatePolicy>daily</updatePolicy>
484 <enabled>false</enabled>
489 <id>arturbosch-code-analysis</id>
490 <name>arturbosch-code-analysis (for detekt)</name>
491 <url>https://dl.bintray.com/arturbosch/code-analysis/</url>
492 <layout>default</layout>
494 <enabled>true</enabled>
495 <updatePolicy>never</updatePolicy>
498 <enabled>false</enabled>
499 <updatePolicy>never</updatePolicy>
502 </pluginRepositories>
506 <id>40_openecomp-release</id>
507 <name>40_openecomp-release</name>
508 <url>https://nexus.onap.org/content/repositories/releases/</url>
510 <enabled>true</enabled>
511 <updatePolicy>daily</updatePolicy>
514 <enabled>false</enabled>
519 <dependencyManagement>
522 <groupId>com.google.guava</groupId>
523 <artifactId>guava</artifactId>
524 <version>25.0-jre</version>
527 <groupId>com.google.code.findbugs</groupId>
528 <artifactId>jsr305</artifactId>
533 <groupId>org.jetbrains.kotlin</groupId>
534 <artifactId>kotlin-stdlib-jdk8</artifactId>
535 <version>${kotlin.version}</version>
538 <groupId>org.jetbrains.kotlin</groupId>
539 <artifactId>kotlin-reflect</artifactId>
540 <version>${kotlin.version}</version>
543 <groupId>io.arrow-kt</groupId>
544 <artifactId>arrow-core</artifactId>
545 <version>${arrow.version}</version>
548 <groupId>org.jetbrains.kotlin</groupId>
549 <artifactId>kotlin-stdlib</artifactId>
552 <groupId>org.jetbrains.kotlin</groupId>
553 <artifactId>kotlin-stdlib-jdk7</artifactId>
558 <groupId>io.arrow-kt</groupId>
559 <artifactId>arrow-syntax</artifactId>
560 <version>${arrow.version}</version>
563 <groupId>io.arrow-kt</groupId>
564 <artifactId>arrow-instances-core</artifactId>
565 <version>${arrow.version}</version>
568 <groupId>io.arrow-kt</groupId>
569 <artifactId>arrow-instances-data</artifactId>
570 <version>${arrow.version}</version>
573 <groupId>io.arrow-kt</groupId>
574 <artifactId>arrow-effects</artifactId>
575 <version>${arrow.version}</version>
578 <groupId>ch.qos.logback</groupId>
579 <artifactId>logback-classic</artifactId>
580 <version>1.3.0-alpha4</version>
581 <scope>runtime</scope>
584 <groupId>org.slf4j</groupId>
585 <artifactId>slf4j-api</artifactId>
586 <version>1.8.0-beta1</version>
589 <groupId>io.projectreactor</groupId>
590 <artifactId>reactor-bom</artifactId>
591 <version>Bismuth-SR10</version>
593 <scope>import</scope>
596 <groupId>io.netty</groupId>
597 <artifactId>netty-tcnative-boringssl-static</artifactId>
598 <version>2.0.8.Final</version>
599 <classifier>${os.detected.classifier}</classifier>
602 <groupId>com.google.protobuf</groupId>
603 <artifactId>protobuf-java</artifactId>
604 <version>${protobuf.version}</version>
607 <groupId>com.google.protobuf</groupId>
608 <artifactId>protobuf-java-util</artifactId>
609 <version>${protobuf.version}</version>
612 <groupId>commons-cli</groupId>
613 <artifactId>commons-cli</artifactId>
614 <version>1.4</version>
617 <groupId>javax.json</groupId>
618 <artifactId>javax.json-api</artifactId>
619 <version>1.1.2</version>
622 <groupId>org.glassfish</groupId>
623 <artifactId>javax.json</artifactId>
624 <version>1.1.2</version>
627 <groupId>io.ratpack</groupId>
628 <artifactId>ratpack-core</artifactId>
629 <version>1.5.4</version>
632 <groupId>io.micrometer</groupId>
633 <artifactId>micrometer-registry-jmx</artifactId>
634 <version>1.0.5</version>
637 <!-- Test dependencies -->
640 <groupId>org.jetbrains.spek</groupId>
641 <artifactId>spek-api</artifactId>
642 <version>${spek.version}</version>
646 <groupId>org.jetbrains.spek</groupId>
647 <artifactId>spek-junit-platform-engine</artifactId>
648 <version>${spek.version}</version>
653 <groupId>org.assertj</groupId>
654 <artifactId>assertj-core</artifactId>
655 <version>3.9.1</version>
659 <groupId>com.nhaarman</groupId>
660 <artifactId>mockito-kotlin</artifactId>
661 <version>1.5.0</version>
665 <groupId>org.mockito</groupId>
666 <artifactId>mockito-core</artifactId>
671 <groupId>org.mockito</groupId>
672 <artifactId>mockito-core</artifactId>
673 <version>2.18.3</version>
677 <groupId>org.jetbrains.kotlin</groupId>
678 <artifactId>kotlin-test</artifactId>
679 <version>${kotlin.version}</version>
683 <groupId>io.projectreactor</groupId>
684 <artifactId>reactor-test</artifactId>
685 <version>3.1.7.RELEASE</version>
689 </dependencyManagement>