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>
75 <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>
81 <docker.http_proxy> </docker.http_proxy>
82 <docker.https_proxy> </docker.https_proxy>
87 <sourceDirectory>${project.basedir}/src/main/kotlin</sourceDirectory>
88 <testSourceDirectory>${project.basedir}/src/test/kotlin</testSourceDirectory>
91 <directory>${project.basedir}/src/main/resources</directory>
97 <groupId>org.apache.maven.plugins</groupId>
98 <artifactId>maven-resources-plugin</artifactId>
99 <version>3.1.0</version>
101 <encoding>UTF-8</encoding>
105 <groupId>org.apache.maven.plugins</groupId>
106 <artifactId>maven-deploy-plugin</artifactId>
112 <artifactId>kotlin-maven-plugin</artifactId>
113 <groupId>org.jetbrains.kotlin</groupId>
114 <version>${kotlin.version}</version>
116 <jvmTarget>1.8</jvmTarget>
126 <source>${project.build.sourceDirectory}</source>
127 <source>${project.build.directory}/generated-sources/annotations</source>
132 <id>test-compile</id>
134 <goal>test-compile</goal>
138 <source>${project.build.testSourceDirectory}</source>
145 <groupId>com.github.os72</groupId>
146 <artifactId>protoc-jar-maven-plugin</artifactId>
147 <version>${protoc-jar-maven-plugin.version}</version>
150 <groupId>org.codehaus.mojo</groupId>
151 <artifactId>build-helper-maven-plugin</artifactId>
152 <version>${build-helper-maven-plugin.version}</version>
156 <phase>generate-sources</phase>
158 <goal>add-source</goal>
162 <source>${protobuf-generated-files.directory}</source>
169 <groupId>org.apache.maven.plugins</groupId>
170 <artifactId>maven-compiler-plugin</artifactId>
171 <version>${maven-compiler-plugin.version}</version>
175 <encoding>UTF-8</encoding>
176 <showWarnings>true</showWarnings>
177 <showDeprecation>true</showDeprecation>
178 <failOnWarning>false</failOnWarning>
182 <groupId>org.ow2.asm</groupId>
183 <artifactId>asm</artifactId>
184 <version>6.1.1</version> <!-- Use newer version of ASM -->
189 Due to a memory leak in Surefire 2.20 and issues running on Java 9, the junit-platform-surefire-provider
190 currently only works with Surefire 2.19.1.
191 For updates see https://junit.org/junit5/docs/current/user-guide/#running-tests-build-maven
194 <artifactId>maven-surefire-plugin</artifactId>
195 <groupId>org.apache.maven.plugins</groupId>
196 <version>${maven-surefire-plugin.version}</version>
199 <id>default-test</id>
204 <failIfNoTests>${failIfMissingUnitTests}</failIfNoTests>
205 <forkCount>1</forkCount>
207 <include>**/*Test.*</include>
209 <!--<argLine>--add-modules org.junit.jupiter.api,reactor.test,assertj.core</argLine>-->
213 <id>component-tests</id>
214 <phase>verify</phase>
219 <failIfNoTests>${failIfMissingComponentTests}</failIfNoTests>
220 <forkCount>1</forkCount>
222 <include>**/*Specification.*</include>
229 <groupId>org.apache.commons</groupId>
230 <artifactId>commons-lang3</artifactId>
231 <version>3.7</version>
234 <groupId>org.junit.platform</groupId>
235 <artifactId>junit-platform-surefire-provider</artifactId>
236 <version>${junit-platform.version}</version>
237 <scope>runtime</scope>
240 <groupId>org.jetbrains.spek</groupId>
241 <artifactId>spek-junit-platform-engine</artifactId>
242 <version>${spek.version}</version>
243 <scope>runtime</scope>
251 <groupId>kr.motd.maven</groupId>
252 <artifactId>os-maven-plugin</artifactId>
253 <version>1.6.0</version>
262 <activeByDefault>true</activeByDefault>
267 <groupId>org.jacoco</groupId>
268 <artifactId>jacoco-maven-plugin</artifactId>
269 <version>0.8.1</version>
272 <id>default-prepare-agent</id>
274 <goal>prepare-agent</goal>
278 <id>default-prepare-agent-integration</id>
280 <goal>prepare-agent-integration</goal>
286 <!-- Exclute Protobuf-generated classes -->
287 <exclude>org/onap/ves/*</exclude>
293 <groupId>org.apache.maven.plugins</groupId>
294 <artifactId>maven-antrun-plugin</artifactId>
295 <version>1.8</version>
298 <!-- This can be run separately with mvn antrun:run@detekt -->
300 <phase>verify</phase>
302 <target name="detekt" unless="${skipAnalysis}">
303 <java taskname="detekt" dir="${basedir}"
306 classname="io.gitlab.arturbosch.detekt.cli.Main"
307 classpathref="maven.plugin.classpath">
308 <arg value="--input"/>
309 <arg value="${basedir}/src/main/kotlin"/>
310 <arg value="--config-resource"/>
311 <arg value="onap-detekt-config.yml"/>
312 <arg value="--filters"/>
313 <arg value=".*/target/.*,.*/resources/.*"/>
314 <arg value="--output"/>
315 <arg value="${basedir}/target/reports"/>
316 <arg value="--output-name"/>
317 <arg value="detekt-report"/>
318 <arg value="--baseline"/>
319 <arg value="${basedir}/target/reports/baseline.xml"/>
330 <groupId>io.gitlab.arturbosch.detekt</groupId>
331 <artifactId>detekt-cli</artifactId>
332 <version>1.0.0.RC7</version>
335 <groupId>${project.groupId}</groupId>
336 <artifactId>hv-collector-analysis</artifactId>
337 <version>${project.version}</version>
343 <artifactId>maven-checkstyle-plugin</artifactId>
344 <version>3.0.0</version>
347 <groupId>org.onap.oparent</groupId>
348 <artifactId>checkstyle</artifactId>
349 <version>1.1.1</version>
354 <id>onap-license</id>
358 <phase>process-sources</phase>
360 <configLocation>onap-checkstyle/check-license.xml</configLocation>
361 <includeResources>false</includeResources>
362 <includeTestSourceDirectory>true</includeTestSourceDirectory>
363 <includeTestResources>false</includeTestResources>
364 <includes>**\/*.kt</includes>
365 <consoleOutput>true</consoleOutput>
366 <!--<failOnViolation>false</failOnViolation>-->
378 <name>!skipDocker</name>
382 <os.detected.name>linux</os.detected.name>
383 <os.detected.arch>x86_64</os.detected.arch>
384 <os.detected.classifier>${os.detected.name}-${os.detected.arch}</os.detected.classifier>
390 <groupId>io.fabric8</groupId>
391 <artifactId>docker-maven-plugin</artifactId>
392 <version>0.26.0</version>
395 <id>build-docker-image</id>
396 <phase>pre-integration-test</phase>
402 <id>push-docker-image</id>
403 <phase>deploy</phase>
410 <verbose>true</verbose>
411 <imagePullPolicy>IfNotPresent</imagePullPolicy>
414 <alias>${project.artifactId}</alias>
415 <name>${docker-image.registry}/${docker-image.namespace}/${docker-image.name}</name>
418 <http_proxy>${docker.http_proxy}</http_proxy>
419 <https_proxy>${docker.https_proxy}</https_proxy>
421 <dockerFileDir>${project.basedir}</dockerFileDir>
428 <groupId>org.apache.maven.plugins</groupId>
429 <artifactId>maven-dependency-plugin</artifactId>
430 <version>3.1.1</version>
433 <id>copy-internal-deps</id>
434 <phase>package</phase>
436 <goal>copy-dependencies</goal>
439 <outputDirectory>${project.build.directory}/libs/internal</outputDirectory>
440 <includeGroupIds>${project.parent.groupId}</includeGroupIds>
441 <includeScope>runtime</includeScope>
445 <id>copy-external-deps</id>
446 <phase>package</phase>
448 <goal>copy-dependencies</goal>
451 <outputDirectory>${project.build.directory}/libs/external</outputDirectory>
452 <excludeGroupIds>${project.parent.groupId}</excludeGroupIds>
453 <includeScope>runtime</includeScope>
467 <groupId>org.jacoco</groupId>
468 <artifactId>jacoco-maven-plugin</artifactId>
472 <report>report</report>
482 <id>40_openecomp-release</id>
483 <name>40_openecomp-release</name>
484 <url>https://nexus.onap.org/content/repositories/releases/</url>
486 <enabled>true</enabled>
487 <updatePolicy>daily</updatePolicy>
490 <enabled>false</enabled>
495 <id>arturbosch-code-analysis</id>
496 <name>arturbosch-code-analysis (for detekt)</name>
497 <url>https://dl.bintray.com/arturbosch/code-analysis/</url>
498 <layout>default</layout>
500 <enabled>true</enabled>
501 <updatePolicy>never</updatePolicy>
504 <enabled>false</enabled>
505 <updatePolicy>never</updatePolicy>
508 </pluginRepositories>
512 <id>40_openecomp-release</id>
513 <name>40_openecomp-release</name>
514 <url>https://nexus.onap.org/content/repositories/releases/</url>
516 <enabled>true</enabled>
517 <updatePolicy>daily</updatePolicy>
520 <enabled>false</enabled>
525 <dependencyManagement>
528 <groupId>com.google.guava</groupId>
529 <artifactId>guava</artifactId>
530 <version>25.0-jre</version>
533 <groupId>com.google.code.findbugs</groupId>
534 <artifactId>jsr305</artifactId>
539 <groupId>org.jetbrains.kotlin</groupId>
540 <artifactId>kotlin-stdlib-jdk8</artifactId>
541 <version>${kotlin.version}</version>
544 <groupId>org.jetbrains.kotlin</groupId>
545 <artifactId>kotlin-reflect</artifactId>
546 <version>${kotlin.version}</version>
549 <groupId>io.arrow-kt</groupId>
550 <artifactId>arrow-core</artifactId>
551 <version>${arrow.version}</version>
554 <groupId>org.jetbrains.kotlin</groupId>
555 <artifactId>kotlin-stdlib</artifactId>
558 <groupId>org.jetbrains.kotlin</groupId>
559 <artifactId>kotlin-stdlib-jdk7</artifactId>
564 <groupId>io.arrow-kt</groupId>
565 <artifactId>arrow-syntax</artifactId>
566 <version>${arrow.version}</version>
569 <groupId>io.arrow-kt</groupId>
570 <artifactId>arrow-instances-core</artifactId>
571 <version>${arrow.version}</version>
574 <groupId>io.arrow-kt</groupId>
575 <artifactId>arrow-instances-data</artifactId>
576 <version>${arrow.version}</version>
579 <groupId>io.arrow-kt</groupId>
580 <artifactId>arrow-effects</artifactId>
581 <version>${arrow.version}</version>
584 <groupId>ch.qos.logback</groupId>
585 <artifactId>logback-classic</artifactId>
586 <version>1.3.0-alpha4</version>
587 <scope>runtime</scope>
590 <groupId>org.slf4j</groupId>
591 <artifactId>slf4j-api</artifactId>
592 <version>1.8.0-beta1</version>
595 <groupId>io.projectreactor</groupId>
596 <artifactId>reactor-bom</artifactId>
597 <version>Bismuth-SR10</version>
599 <scope>import</scope>
602 <groupId>io.netty</groupId>
603 <artifactId>netty-tcnative-boringssl-static</artifactId>
604 <version>2.0.8.Final</version>
605 <classifier>${os.detected.classifier}</classifier>
608 <groupId>com.google.protobuf</groupId>
609 <artifactId>protobuf-java</artifactId>
610 <version>${protobuf.version}</version>
613 <groupId>com.google.protobuf</groupId>
614 <artifactId>protobuf-java-util</artifactId>
615 <version>${protobuf.version}</version>
618 <groupId>commons-cli</groupId>
619 <artifactId>commons-cli</artifactId>
620 <version>1.4</version>
623 <groupId>javax.json</groupId>
624 <artifactId>javax.json-api</artifactId>
625 <version>1.1.2</version>
628 <groupId>org.glassfish</groupId>
629 <artifactId>javax.json</artifactId>
630 <version>1.1.2</version>
633 <groupId>io.ratpack</groupId>
634 <artifactId>ratpack-core</artifactId>
635 <version>1.5.4</version>
638 <groupId>io.micrometer</groupId>
639 <artifactId>micrometer-registry-jmx</artifactId>
640 <version>1.0.5</version>
643 <!-- Test dependencies -->
646 <groupId>org.jetbrains.spek</groupId>
647 <artifactId>spek-api</artifactId>
648 <version>${spek.version}</version>
652 <groupId>org.jetbrains.spek</groupId>
653 <artifactId>spek-junit-platform-engine</artifactId>
654 <version>${spek.version}</version>
659 <groupId>org.assertj</groupId>
660 <artifactId>assertj-core</artifactId>
661 <version>3.9.1</version>
665 <groupId>com.nhaarman</groupId>
666 <artifactId>mockito-kotlin</artifactId>
667 <version>1.5.0</version>
671 <groupId>org.mockito</groupId>
672 <artifactId>mockito-core</artifactId>
677 <groupId>org.mockito</groupId>
678 <artifactId>mockito-core</artifactId>
679 <version>2.18.3</version>
683 <groupId>org.jetbrains.kotlin</groupId>
684 <artifactId>kotlin-test</artifactId>
685 <version>${kotlin.version}</version>
689 <groupId>io.projectreactor</groupId>
690 <artifactId>reactor-test</artifactId>
691 <version>3.1.7.RELEASE</version>
695 </dependencyManagement>