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-xnf-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.51</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>
73 <skipDocker>true</skipDocker> <!-- TODO: unskip docker -->
75 <onap.nexus.dockerregistry.daily>nexus3.onap.org:10003</onap.nexus.dockerregistry.daily>
76 <onap.nexus.dockerregistry.release>nexus3.onap.org:10002</onap.nexus.dockerregistry.release>
77 <docker-image.registry>${onap.nexus.dockerregistry.daily}</docker-image.registry>
78 <docker-image.namespace>onap</docker-image.namespace>
79 <docker-image.name>ves-hv-collector/${project.artifactId}</docker-image.name>
84 <sourceDirectory>${project.basedir}/src/main/kotlin</sourceDirectory>
85 <testSourceDirectory>${project.basedir}/src/test/kotlin</testSourceDirectory>
88 <directory>${project.basedir}/src/main/resources</directory>
94 <groupId>org.apache.maven.plugins</groupId>
95 <artifactId>maven-resources-plugin</artifactId>
96 <version>3.1.0</version>
98 <encoding>UTF-8</encoding>
102 <groupId>org.apache.maven.plugins</groupId>
103 <artifactId>maven-deploy-plugin</artifactId>
109 <artifactId>kotlin-maven-plugin</artifactId>
110 <groupId>org.jetbrains.kotlin</groupId>
111 <version>${kotlin.version}</version>
113 <jvmTarget>1.8</jvmTarget>
123 <source>${project.build.sourceDirectory}</source>
124 <source>${project.build.directory}/generated-sources/annotations</source>
129 <id>test-compile</id>
131 <goal>test-compile</goal>
135 <source>${project.build.testSourceDirectory}</source>
142 <groupId>com.github.os72</groupId>
143 <artifactId>protoc-jar-maven-plugin</artifactId>
144 <version>${protoc-jar-maven-plugin.version}</version>
147 <groupId>org.codehaus.mojo</groupId>
148 <artifactId>build-helper-maven-plugin</artifactId>
149 <version>${build-helper-maven-plugin.version}</version>
153 <phase>generate-sources</phase>
155 <goal>add-source</goal>
159 <source>${protobuf-generated-files.directory}</source>
166 <groupId>org.apache.maven.plugins</groupId>
167 <artifactId>maven-compiler-plugin</artifactId>
168 <version>${maven-compiler-plugin.version}</version>
172 <encoding>UTF-8</encoding>
173 <showWarnings>true</showWarnings>
174 <showDeprecation>true</showDeprecation>
175 <failOnWarning>false</failOnWarning>
179 <groupId>org.ow2.asm</groupId>
180 <artifactId>asm</artifactId>
181 <version>6.1.1</version> <!-- Use newer version of ASM -->
186 Due to a memory leak in Surefire 2.20 and issues running on Java 9, the junit-platform-surefire-provider
187 currently only works with Surefire 2.19.1.
188 For updates see https://junit.org/junit5/docs/current/user-guide/#running-tests-build-maven
191 <artifactId>maven-surefire-plugin</artifactId>
192 <groupId>org.apache.maven.plugins</groupId>
193 <version>${maven-surefire-plugin.version}</version>
196 <id>default-test</id>
201 <failIfNoTests>${failIfMissingUnitTests}</failIfNoTests>
202 <forkCount>1</forkCount>
204 <include>**/*Test.*</include>
206 <!--<argLine>--add-modules org.junit.jupiter.api,reactor.test,assertj.core</argLine>-->
210 <id>component-tests</id>
211 <phase>verify</phase>
216 <failIfNoTests>${failIfMissingComponentTests}</failIfNoTests>
217 <forkCount>1</forkCount>
219 <include>**/*Specification.*</include>
226 <groupId>org.apache.commons</groupId>
227 <artifactId>commons-lang3</artifactId>
228 <version>3.7</version>
231 <groupId>org.junit.platform</groupId>
232 <artifactId>junit-platform-surefire-provider</artifactId>
233 <version>${junit-platform.version}</version>
234 <scope>runtime</scope>
237 <groupId>org.jetbrains.spek</groupId>
238 <artifactId>spek-junit-platform-engine</artifactId>
239 <version>${spek.version}</version>
240 <scope>runtime</scope>
248 <groupId>kr.motd.maven</groupId>
249 <artifactId>os-maven-plugin</artifactId>
250 <version>1.6.0</version>
259 <activeByDefault>true</activeByDefault>
264 <groupId>org.jacoco</groupId>
265 <artifactId>jacoco-maven-plugin</artifactId>
266 <version>0.8.1</version>
269 <id>default-prepare-agent</id>
271 <goal>prepare-agent</goal>
275 <id>default-prepare-agent-integration</id>
277 <goal>prepare-agent-integration</goal>
283 <!-- Exclute Protobuf-generated classes -->
284 <exclude>org/onap/ves/*</exclude>
290 <groupId>org.apache.maven.plugins</groupId>
291 <artifactId>maven-antrun-plugin</artifactId>
292 <version>1.8</version>
295 <!-- This can be run separately with mvn antrun:run@detekt -->
297 <phase>verify</phase>
299 <target name="detekt" unless="${skipAnalysis}">
300 <java taskname="detekt" dir="${basedir}"
303 classname="io.gitlab.arturbosch.detekt.cli.Main"
304 classpathref="maven.plugin.classpath">
305 <arg value="--input"/>
306 <arg value="${basedir}/src/main/kotlin"/>
307 <arg value="--config-resource"/>
308 <arg value="onap-detekt-config.yml"/>
309 <arg value="--filters"/>
310 <arg value=".*/target/.*,.*/resources/.*"/>
311 <arg value="--output"/>
312 <arg value="${basedir}/target/reports"/>
313 <arg value="--output-name"/>
314 <arg value="detekt-report"/>
315 <arg value="--baseline"/>
316 <arg value="${basedir}/target/reports/baseline.xml"/>
327 <groupId>io.gitlab.arturbosch.detekt</groupId>
328 <artifactId>detekt-cli</artifactId>
329 <version>1.0.0.RC7</version>
332 <groupId>${project.groupId}</groupId>
333 <artifactId>hv-collector-analysis</artifactId>
334 <version>${project.version}</version>
340 <artifactId>maven-checkstyle-plugin</artifactId>
341 <version>3.0.0</version>
344 <groupId>org.onap.oparent</groupId>
345 <artifactId>checkstyle</artifactId>
346 <version>1.1.1</version>
351 <id>onap-license</id>
355 <phase>process-sources</phase>
357 <configLocation>onap-checkstyle/check-license.xml</configLocation>
358 <includeResources>false</includeResources>
359 <includeTestSourceDirectory>true</includeTestSourceDirectory>
360 <includeTestResources>false</includeTestResources>
361 <includes>**\/*.kt</includes>
362 <consoleOutput>true</consoleOutput>
363 <!--<failOnViolation>false</failOnViolation>-->
375 <name>!skipDocker</name>
379 <os.detected.name>linux</os.detected.name>
380 <os.detected.arch>x86_64</os.detected.arch>
381 <os.detected.classifier>${os.detected.name}-${os.detected.arch}</os.detected.classifier>
387 <groupId>io.fabric8</groupId>
388 <artifactId>docker-maven-plugin</artifactId>
389 <version>0.26.0</version>
392 <id>build-docker-image</id>
393 <phase>pre-integration-test</phase>
399 <id>push-docker-image</id>
400 <phase>deploy</phase>
407 <verbose>true</verbose>
408 <imagePullPolicy>IfNotPresent</imagePullPolicy>
411 <alias>${project.artifactId}</alias>
412 <name>${docker-image.registry}/${docker-image.namespace}/${docker-image.name}</name>
414 <dockerFileDir>${project.basedir}</dockerFileDir>
421 <groupId>org.apache.maven.plugins</groupId>
422 <artifactId>maven-dependency-plugin</artifactId>
423 <version>3.1.1</version>
426 <id>copy-internal-deps</id>
427 <phase>package</phase>
429 <goal>copy-dependencies</goal>
432 <outputDirectory>${project.build.directory}/libs/internal</outputDirectory>
433 <includeGroupIds>${project.parent.groupId}</includeGroupIds>
434 <includeScope>runtime</includeScope>
438 <id>copy-external-deps</id>
439 <phase>package</phase>
441 <goal>copy-dependencies</goal>
444 <outputDirectory>${project.build.directory}/libs/external</outputDirectory>
445 <excludeGroupIds>${project.parent.groupId}</excludeGroupIds>
446 <includeScope>runtime</includeScope>
460 <groupId>org.jacoco</groupId>
461 <artifactId>jacoco-maven-plugin</artifactId>
465 <report>report</report>
475 <id>40_openecomp-release</id>
476 <name>40_openecomp-release</name>
477 <url>https://nexus.onap.org/content/repositories/releases/</url>
479 <enabled>true</enabled>
480 <updatePolicy>daily</updatePolicy>
483 <enabled>false</enabled>
488 <id>arturbosch-code-analysis</id>
489 <name>arturbosch-code-analysis (for detekt)</name>
490 <url>https://dl.bintray.com/arturbosch/code-analysis/</url>
491 <layout>default</layout>
493 <enabled>true</enabled>
494 <updatePolicy>never</updatePolicy>
497 <enabled>false</enabled>
498 <updatePolicy>never</updatePolicy>
501 </pluginRepositories>
505 <id>40_openecomp-release</id>
506 <name>40_openecomp-release</name>
507 <url>https://nexus.onap.org/content/repositories/releases/</url>
509 <enabled>true</enabled>
510 <updatePolicy>daily</updatePolicy>
513 <enabled>false</enabled>
518 <dependencyManagement>
521 <groupId>com.google.guava</groupId>
522 <artifactId>guava</artifactId>
523 <version>25.0-jre</version>
526 <groupId>com.google.code.findbugs</groupId>
527 <artifactId>jsr305</artifactId>
532 <groupId>org.jetbrains.kotlin</groupId>
533 <artifactId>kotlin-stdlib-jdk8</artifactId>
534 <version>${kotlin.version}</version>
537 <groupId>org.jetbrains.kotlin</groupId>
538 <artifactId>kotlin-reflect</artifactId>
539 <version>${kotlin.version}</version>
542 <groupId>io.arrow-kt</groupId>
543 <artifactId>arrow-core</artifactId>
544 <version>${arrow.version}</version>
547 <groupId>org.jetbrains.kotlin</groupId>
548 <artifactId>kotlin-stdlib</artifactId>
551 <groupId>org.jetbrains.kotlin</groupId>
552 <artifactId>kotlin-stdlib-jdk7</artifactId>
557 <groupId>io.arrow-kt</groupId>
558 <artifactId>arrow-syntax</artifactId>
559 <version>${arrow.version}</version>
562 <groupId>io.arrow-kt</groupId>
563 <artifactId>arrow-instances-core</artifactId>
564 <version>${arrow.version}</version>
567 <groupId>io.arrow-kt</groupId>
568 <artifactId>arrow-instances-data</artifactId>
569 <version>${arrow.version}</version>
572 <groupId>io.arrow-kt</groupId>
573 <artifactId>arrow-effects</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 <version>Bismuth-SR10</version>
592 <scope>import</scope>
595 <groupId>io.netty</groupId>
596 <artifactId>netty-tcnative-boringssl-static</artifactId>
597 <version>2.0.8.Final</version>
598 <classifier>${os.detected.classifier}</classifier>
601 <groupId>com.google.protobuf</groupId>
602 <artifactId>protobuf-java</artifactId>
603 <version>${protobuf.version}</version>
606 <groupId>com.google.protobuf</groupId>
607 <artifactId>protobuf-java-util</artifactId>
608 <version>${protobuf.version}</version>
611 <groupId>commons-cli</groupId>
612 <artifactId>commons-cli</artifactId>
613 <version>1.4</version>
616 <groupId>javax.json</groupId>
617 <artifactId>javax.json-api</artifactId>
618 <version>1.1.2</version>
621 <groupId>org.glassfish</groupId>
622 <artifactId>javax.json</artifactId>
623 <version>1.1.2</version>
626 <groupId>io.ratpack</groupId>
627 <artifactId>ratpack-core</artifactId>
628 <version>1.5.4</version>
631 <groupId>io.micrometer</groupId>
632 <artifactId>micrometer-registry-jmx</artifactId>
633 <version>1.0.5</version>
636 <!-- Test dependencies -->
639 <groupId>org.jetbrains.spek</groupId>
640 <artifactId>spek-api</artifactId>
641 <version>${spek.version}</version>
645 <groupId>org.jetbrains.spek</groupId>
646 <artifactId>spek-junit-platform-engine</artifactId>
647 <version>${spek.version}</version>
652 <groupId>org.assertj</groupId>
653 <artifactId>assertj-core</artifactId>
654 <version>3.9.1</version>
658 <groupId>com.nhaarman</groupId>
659 <artifactId>mockito-kotlin</artifactId>
660 <version>1.5.0</version>
664 <groupId>org.mockito</groupId>
665 <artifactId>mockito-core</artifactId>
670 <groupId>org.mockito</groupId>
671 <artifactId>mockito-core</artifactId>
672 <version>2.18.3</version>
676 <groupId>org.jetbrains.kotlin</groupId>
677 <artifactId>kotlin-test</artifactId>
678 <version>${kotlin.version}</version>
682 <groupId>io.projectreactor</groupId>
683 <artifactId>reactor-test</artifactId>
684 <version>3.1.7.RELEASE</version>
688 </dependencyManagement>