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>
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>
284 <groupId>org.apache.maven.plugins</groupId>
285 <artifactId>maven-antrun-plugin</artifactId>
286 <version>1.8</version>
289 <!-- This can be run separately with mvn antrun:run@detekt -->
291 <phase>verify</phase>
293 <target name="detekt" unless="${skipAnalysis}">
294 <java taskname="detekt" dir="${basedir}"
297 classname="io.gitlab.arturbosch.detekt.cli.Main"
298 classpathref="maven.plugin.classpath">
299 <arg value="--input"/>
300 <arg value="${basedir}/src/main/kotlin"/>
301 <arg value="--config-resource"/>
302 <arg value="onap-detekt-config.yml"/>
303 <arg value="--filters"/>
304 <arg value=".*/target/.*,.*/resources/.*"/>
305 <arg value="--output"/>
306 <arg value="${basedir}/target/reports"/>
307 <arg value="--output-name"/>
308 <arg value="detekt-report"/>
309 <arg value="--baseline"/>
310 <arg value="${basedir}/target/reports/baseline.xml"/>
321 <groupId>io.gitlab.arturbosch.detekt</groupId>
322 <artifactId>detekt-cli</artifactId>
323 <version>1.0.0.RC7</version>
326 <groupId>${project.groupId}</groupId>
327 <artifactId>hv-collector-analysis</artifactId>
328 <version>${project.version}</version>
334 <artifactId>maven-checkstyle-plugin</artifactId>
335 <version>3.0.0</version>
338 <groupId>org.onap.oparent</groupId>
339 <artifactId>checkstyle</artifactId>
340 <version>1.1.1</version>
345 <id>onap-license</id>
349 <phase>process-sources</phase>
351 <configLocation>onap-checkstyle/check-license.xml</configLocation>
352 <includeResources>false</includeResources>
353 <includeTestSourceDirectory>true</includeTestSourceDirectory>
354 <includeTestResources>false</includeTestResources>
355 <includes>**\/*.kt</includes>
356 <consoleOutput>true</consoleOutput>
357 <!--<failOnViolation>false</failOnViolation>-->
369 <name>!skipDocker</name>
373 <os.detected.name>linux</os.detected.name>
374 <os.detected.arch>x86_64</os.detected.arch>
375 <os.detected.classifier>${os.detected.name}-${os.detected.arch}</os.detected.classifier>
381 <groupId>io.fabric8</groupId>
382 <artifactId>docker-maven-plugin</artifactId>
383 <version>0.26.0</version>
386 <id>build-docker-image</id>
387 <phase>pre-integration-test</phase>
393 <id>push-docker-image</id>
394 <phase>deploy</phase>
401 <verbose>true</verbose>
402 <imagePullPolicy>IfNotPresent</imagePullPolicy>
405 <alias>${project.artifactId}</alias>
406 <name>${docker-image.registry}/${docker-image.namespace}/${docker-image.name}</name>
408 <dockerFileDir>${project.basedir}</dockerFileDir>
415 <groupId>org.apache.maven.plugins</groupId>
416 <artifactId>maven-dependency-plugin</artifactId>
417 <version>3.1.1</version>
420 <id>copy-internal-deps</id>
421 <phase>package</phase>
423 <goal>copy-dependencies</goal>
426 <outputDirectory>${project.build.directory}/libs/internal</outputDirectory>
427 <includeGroupIds>${project.parent.groupId}</includeGroupIds>
428 <includeScope>runtime</includeScope>
432 <id>copy-external-deps</id>
433 <phase>package</phase>
435 <goal>copy-dependencies</goal>
438 <outputDirectory>${project.build.directory}/libs/external</outputDirectory>
439 <excludeGroupIds>${project.parent.groupId}</excludeGroupIds>
440 <includeScope>runtime</includeScope>
454 <groupId>org.jacoco</groupId>
455 <artifactId>jacoco-maven-plugin</artifactId>
459 <report>report</report>
469 <id>40_openecomp-release</id>
470 <name>40_openecomp-release</name>
471 <url>https://nexus.onap.org/content/repositories/releases/</url>
473 <enabled>true</enabled>
474 <updatePolicy>daily</updatePolicy>
477 <enabled>false</enabled>
482 <id>arturbosch-code-analysis</id>
483 <name>arturbosch-code-analysis (for detekt)</name>
484 <url>https://dl.bintray.com/arturbosch/code-analysis/</url>
485 <layout>default</layout>
487 <enabled>true</enabled>
488 <updatePolicy>never</updatePolicy>
491 <enabled>false</enabled>
492 <updatePolicy>never</updatePolicy>
495 </pluginRepositories>
499 <id>40_openecomp-release</id>
500 <name>40_openecomp-release</name>
501 <url>https://nexus.onap.org/content/repositories/releases/</url>
503 <enabled>true</enabled>
504 <updatePolicy>daily</updatePolicy>
507 <enabled>false</enabled>
512 <dependencyManagement>
515 <groupId>com.google.guava</groupId>
516 <artifactId>guava</artifactId>
517 <version>25.0-jre</version>
520 <groupId>com.google.code.findbugs</groupId>
521 <artifactId>jsr305</artifactId>
526 <groupId>org.jetbrains.kotlin</groupId>
527 <artifactId>kotlin-stdlib-jdk8</artifactId>
528 <version>${kotlin.version}</version>
531 <groupId>org.jetbrains.kotlin</groupId>
532 <artifactId>kotlin-reflect</artifactId>
533 <version>${kotlin.version}</version>
536 <groupId>io.arrow-kt</groupId>
537 <artifactId>arrow-core</artifactId>
538 <version>${arrow.version}</version>
541 <groupId>org.jetbrains.kotlin</groupId>
542 <artifactId>kotlin-stdlib</artifactId>
545 <groupId>org.jetbrains.kotlin</groupId>
546 <artifactId>kotlin-stdlib-jdk7</artifactId>
551 <groupId>io.arrow-kt</groupId>
552 <artifactId>arrow-syntax</artifactId>
553 <version>${arrow.version}</version>
556 <groupId>io.arrow-kt</groupId>
557 <artifactId>arrow-instances-core</artifactId>
558 <version>${arrow.version}</version>
561 <groupId>io.arrow-kt</groupId>
562 <artifactId>arrow-instances-data</artifactId>
563 <version>${arrow.version}</version>
566 <groupId>io.arrow-kt</groupId>
567 <artifactId>arrow-effects</artifactId>
568 <version>${arrow.version}</version>
571 <groupId>ch.qos.logback</groupId>
572 <artifactId>logback-classic</artifactId>
573 <version>1.3.0-alpha4</version>
574 <scope>runtime</scope>
577 <groupId>org.slf4j</groupId>
578 <artifactId>slf4j-api</artifactId>
579 <version>1.8.0-beta1</version>
582 <groupId>io.projectreactor</groupId>
583 <artifactId>reactor-bom</artifactId>
584 <version>Bismuth-SR8</version>
586 <scope>import</scope>
589 <groupId>io.netty</groupId>
590 <artifactId>netty-tcnative-boringssl-static</artifactId>
591 <version>2.0.8.Final</version>
592 <classifier>${os.detected.classifier}</classifier>
595 <groupId>com.google.protobuf</groupId>
596 <artifactId>protobuf-java</artifactId>
597 <version>${protobuf.version}</version>
600 <groupId>com.google.protobuf</groupId>
601 <artifactId>protobuf-java-util</artifactId>
602 <version>${protobuf.version}</version>
605 <groupId>commons-cli</groupId>
606 <artifactId>commons-cli</artifactId>
607 <version>1.4</version>
610 <groupId>javax.json</groupId>
611 <artifactId>javax.json-api</artifactId>
612 <version>1.1.2</version>
615 <groupId>org.glassfish</groupId>
616 <artifactId>javax.json</artifactId>
617 <version>1.1.2</version>
620 <groupId>io.ratpack</groupId>
621 <artifactId>ratpack-core</artifactId>
622 <version>1.5.4</version>
625 <groupId>io.micrometer</groupId>
626 <artifactId>micrometer-registry-jmx</artifactId>
627 <version>1.0.5</version>
630 <!-- Test dependencies -->
633 <groupId>org.jetbrains.spek</groupId>
634 <artifactId>spek-api</artifactId>
635 <version>${spek.version}</version>
639 <groupId>org.jetbrains.spek</groupId>
640 <artifactId>spek-junit-platform-engine</artifactId>
641 <version>${spek.version}</version>
646 <groupId>org.assertj</groupId>
647 <artifactId>assertj-core</artifactId>
648 <version>3.9.1</version>
652 <groupId>com.nhaarman</groupId>
653 <artifactId>mockito-kotlin</artifactId>
654 <version>1.5.0</version>
658 <groupId>org.mockito</groupId>
659 <artifactId>mockito-core</artifactId>
664 <groupId>org.mockito</groupId>
665 <artifactId>mockito-core</artifactId>
666 <version>2.18.3</version>
670 <groupId>org.jetbrains.kotlin</groupId>
671 <artifactId>kotlin-test</artifactId>
672 <version>${kotlin.version}</version>
676 <groupId>io.projectreactor</groupId>
677 <artifactId>reactor-test</artifactId>
678 <version>3.1.7.RELEASE</version>
682 </dependencyManagement>