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>
51 <module>hv-collector-test-utils</module>
55 <kotlin.version>1.2.51</kotlin.version>
56 <arrow.version>0.7.2</arrow.version>
57 <maven-compiler-plugin.version>3.7.0</maven-compiler-plugin.version>
58 <build-helper-maven-plugin.version>1.7</build-helper-maven-plugin.version>
60 <!-- Protocol buffers -->
61 <protobuf.version>3.5.1</protobuf.version>
62 <protoc-jar-maven-plugin.version>3.5.1.1</protoc-jar-maven-plugin.version>
63 <protobuf-generated-files.directory>${project.build.directory}/generated-sources/proto/main/java/
64 </protobuf-generated-files.directory>
66 <!-- Testing and code analysis -->
67 <junit-platform.version>1.2.0-RC1</junit-platform.version>
68 <junit-jupiter.version>5.2.0-RC1</junit-jupiter.version>
69 <spek.version>1.1.5</spek.version>
70 <maven-surefire-plugin.version>2.21.0</maven-surefire-plugin.version>
71 <failIfMissingUnitTests>true</failIfMissingUnitTests>
72 <failIfMissingComponentTests>false</failIfMissingComponentTests>
73 <skipAnalysis>true</skipAnalysis>
76 <skipDocker>false</skipDocker>
77 <onap.nexus.dockerregistry.daily>nexus3.onap.org:10003</onap.nexus.dockerregistry.daily>
78 <onap.nexus.dockerregistry.release>nexus3.onap.org:10002</onap.nexus.dockerregistry.release>
79 <docker-image.registry>${onap.nexus.dockerregistry.daily}</docker-image.registry>
80 <docker-image.namespace>onap</docker-image.namespace>
81 <docker-image.name>ves-hv-collector/${project.artifactId}</docker-image.name>
82 <docker.http_proxy> </docker.http_proxy>
83 <docker.https_proxy> </docker.https_proxy>
88 <sourceDirectory>${project.basedir}/src/main/kotlin</sourceDirectory>
89 <testSourceDirectory>${project.basedir}/src/test/kotlin</testSourceDirectory>
92 <directory>${project.basedir}/src/main/resources</directory>
98 <groupId>org.apache.maven.plugins</groupId>
99 <artifactId>maven-resources-plugin</artifactId>
100 <version>3.1.0</version>
102 <encoding>UTF-8</encoding>
106 <groupId>org.apache.maven.plugins</groupId>
107 <artifactId>maven-deploy-plugin</artifactId>
113 <artifactId>kotlin-maven-plugin</artifactId>
114 <groupId>org.jetbrains.kotlin</groupId>
115 <version>${kotlin.version}</version>
117 <jvmTarget>1.8</jvmTarget>
127 <source>${project.build.sourceDirectory}</source>
128 <source>${project.build.directory}/generated-sources/annotations</source>
133 <id>test-compile</id>
135 <goal>test-compile</goal>
139 <source>${project.build.testSourceDirectory}</source>
146 <groupId>com.github.os72</groupId>
147 <artifactId>protoc-jar-maven-plugin</artifactId>
148 <version>${protoc-jar-maven-plugin.version}</version>
151 <groupId>org.codehaus.mojo</groupId>
152 <artifactId>build-helper-maven-plugin</artifactId>
153 <version>${build-helper-maven-plugin.version}</version>
157 <phase>generate-sources</phase>
159 <goal>add-source</goal>
163 <source>${protobuf-generated-files.directory}</source>
170 <groupId>org.apache.maven.plugins</groupId>
171 <artifactId>maven-compiler-plugin</artifactId>
172 <version>${maven-compiler-plugin.version}</version>
176 <encoding>UTF-8</encoding>
177 <showWarnings>true</showWarnings>
178 <showDeprecation>true</showDeprecation>
179 <failOnWarning>false</failOnWarning>
183 <groupId>org.ow2.asm</groupId>
184 <artifactId>asm</artifactId>
185 <version>6.1.1</version> <!-- Use newer version of ASM -->
190 Due to a memory leak in Surefire 2.20 and issues running on Java 9, the junit-platform-surefire-provider
191 currently only works with Surefire 2.19.1.
192 For updates see https://junit.org/junit5/docs/current/user-guide/#running-tests-build-maven
195 <artifactId>maven-surefire-plugin</artifactId>
196 <groupId>org.apache.maven.plugins</groupId>
197 <version>${maven-surefire-plugin.version}</version>
200 <id>default-test</id>
205 <failIfNoTests>${failIfMissingUnitTests}</failIfNoTests>
206 <forkCount>1</forkCount>
208 <include>**/*Test.*</include>
210 <!--<argLine>--add-modules org.junit.jupiter.api,reactor.test,assertj.core</argLine>-->
214 <id>component-tests</id>
215 <phase>verify</phase>
220 <failIfNoTests>${failIfMissingComponentTests}</failIfNoTests>
221 <forkCount>1</forkCount>
223 <include>**/*Specification.*</include>
230 <groupId>org.apache.commons</groupId>
231 <artifactId>commons-lang3</artifactId>
232 <version>3.7</version>
235 <groupId>org.junit.platform</groupId>
236 <artifactId>junit-platform-surefire-provider</artifactId>
237 <version>${junit-platform.version}</version>
238 <scope>runtime</scope>
241 <groupId>org.jetbrains.spek</groupId>
242 <artifactId>spek-junit-platform-engine</artifactId>
243 <version>${spek.version}</version>
244 <scope>runtime</scope>
252 <groupId>kr.motd.maven</groupId>
253 <artifactId>os-maven-plugin</artifactId>
254 <version>1.6.0</version>
263 <activeByDefault>true</activeByDefault>
268 <groupId>org.jacoco</groupId>
269 <artifactId>jacoco-maven-plugin</artifactId>
270 <version>0.8.1</version>
273 <id>default-prepare-agent</id>
275 <goal>prepare-agent</goal>
279 <id>default-prepare-agent-integration</id>
281 <goal>prepare-agent-integration</goal>
287 <!-- Exclute Protobuf-generated classes -->
288 <exclude>org/onap/ves/*</exclude>
294 <groupId>org.apache.maven.plugins</groupId>
295 <artifactId>maven-antrun-plugin</artifactId>
296 <version>1.8</version>
299 <!-- This can be run separately with mvn antrun:run@detekt -->
301 <phase>verify</phase>
303 <target name="detekt" unless="${skipAnalysis}">
304 <java taskname="detekt" dir="${basedir}"
307 classname="io.gitlab.arturbosch.detekt.cli.Main"
308 classpathref="maven.plugin.classpath">
309 <arg value="--input"/>
310 <arg value="${basedir}/src/main/kotlin"/>
311 <arg value="--config-resource"/>
312 <arg value="onap-detekt-config.yml"/>
313 <arg value="--filters"/>
314 <arg value=".*/target/.*,.*/resources/.*"/>
315 <arg value="--output"/>
316 <arg value="${basedir}/target/reports"/>
317 <arg value="--output-name"/>
318 <arg value="detekt-report"/>
319 <arg value="--baseline"/>
320 <arg value="${basedir}/target/reports/baseline.xml"/>
331 <groupId>io.gitlab.arturbosch.detekt</groupId>
332 <artifactId>detekt-cli</artifactId>
333 <version>1.0.0.RC7</version>
336 <groupId>${project.groupId}</groupId>
337 <artifactId>hv-collector-analysis</artifactId>
338 <version>${project.version}</version>
344 <artifactId>maven-checkstyle-plugin</artifactId>
345 <version>3.0.0</version>
348 <groupId>org.onap.oparent</groupId>
349 <artifactId>checkstyle</artifactId>
350 <version>1.1.1</version>
355 <id>onap-license</id>
359 <phase>process-sources</phase>
361 <configLocation>onap-checkstyle/check-license.xml</configLocation>
362 <includeResources>false</includeResources>
363 <includeTestSourceDirectory>true</includeTestSourceDirectory>
364 <includeTestResources>false</includeTestResources>
365 <includes>**\/*.kt</includes>
366 <consoleOutput>true</consoleOutput>
367 <!--<failOnViolation>false</failOnViolation>-->
379 <name>!skipDocker</name>
383 <os.detected.name>linux</os.detected.name>
384 <os.detected.arch>x86_64</os.detected.arch>
385 <os.detected.classifier>${os.detected.name}-${os.detected.arch}</os.detected.classifier>
391 <groupId>org.apache.maven.plugins</groupId>
392 <artifactId>maven-dependency-plugin</artifactId>
393 <version>3.1.1</version>
396 <id>docker-copy-internal-deps</id>
397 <phase>package</phase>
399 <goal>copy-dependencies</goal>
402 <outputDirectory>${project.build.directory}/libs/internal</outputDirectory>
403 <includeGroupIds>${project.parent.groupId}</includeGroupIds>
404 <includeScope>runtime</includeScope>
408 <id>docker-copy-external-deps</id>
409 <phase>package</phase>
411 <goal>copy-dependencies</goal>
414 <outputDirectory>${project.build.directory}/libs/external</outputDirectory>
415 <excludeGroupIds>${project.parent.groupId}</excludeGroupIds>
416 <includeScope>runtime</includeScope>
422 <groupId>io.fabric8</groupId>
423 <artifactId>docker-maven-plugin</artifactId>
424 <version>0.26.0</version>
427 <id>docker-build-image</id>
428 <phase>deploy</phase>
434 <id>docker-push-image</id>
435 <phase>deploy</phase>
442 <verbose>true</verbose>
443 <imagePullPolicy>IfNotPresent</imagePullPolicy>
446 <alias>${project.artifactId}</alias>
447 <name>${docker-image.registry}/${docker-image.namespace}/${docker-image.name}</name>
451 <http_proxy>${docker.http_proxy}</http_proxy>
452 <https_proxy>${docker.https_proxy}</https_proxy>
455 <dockerFileDir>${project.basedir}</dockerFileDir>
470 <groupId>org.jacoco</groupId>
471 <artifactId>jacoco-maven-plugin</artifactId>
475 <report>report</report>
485 <id>40_openecomp-release</id>
486 <name>40_openecomp-release</name>
487 <url>https://nexus.onap.org/content/repositories/releases/</url>
489 <enabled>true</enabled>
490 <updatePolicy>daily</updatePolicy>
493 <enabled>false</enabled>
498 <id>arturbosch-code-analysis</id>
499 <name>arturbosch-code-analysis (for detekt)</name>
500 <url>https://dl.bintray.com/arturbosch/code-analysis/</url>
501 <layout>default</layout>
503 <enabled>true</enabled>
504 <updatePolicy>never</updatePolicy>
507 <enabled>false</enabled>
508 <updatePolicy>never</updatePolicy>
511 </pluginRepositories>
515 <id>40_openecomp-release</id>
516 <name>40_openecomp-release</name>
517 <url>https://nexus.onap.org/content/repositories/releases/</url>
519 <enabled>true</enabled>
520 <updatePolicy>daily</updatePolicy>
523 <enabled>false</enabled>
528 <dependencyManagement>
531 <groupId>com.google.guava</groupId>
532 <artifactId>guava</artifactId>
533 <version>25.0-jre</version>
536 <groupId>com.google.code.findbugs</groupId>
537 <artifactId>jsr305</artifactId>
542 <groupId>org.jetbrains.kotlin</groupId>
543 <artifactId>kotlin-stdlib-jdk8</artifactId>
544 <version>${kotlin.version}</version>
547 <groupId>org.jetbrains.kotlin</groupId>
548 <artifactId>kotlin-reflect</artifactId>
549 <version>${kotlin.version}</version>
552 <groupId>io.arrow-kt</groupId>
553 <artifactId>arrow-core</artifactId>
554 <version>${arrow.version}</version>
557 <groupId>org.jetbrains.kotlin</groupId>
558 <artifactId>kotlin-stdlib</artifactId>
561 <groupId>org.jetbrains.kotlin</groupId>
562 <artifactId>kotlin-stdlib-jdk7</artifactId>
567 <groupId>io.arrow-kt</groupId>
568 <artifactId>arrow-syntax</artifactId>
569 <version>${arrow.version}</version>
572 <groupId>io.arrow-kt</groupId>
573 <artifactId>arrow-instances-core</artifactId>
574 <version>${arrow.version}</version>
577 <groupId>io.arrow-kt</groupId>
578 <artifactId>arrow-instances-data</artifactId>
579 <version>${arrow.version}</version>
582 <groupId>io.arrow-kt</groupId>
583 <artifactId>arrow-effects</artifactId>
584 <version>${arrow.version}</version>
587 <groupId>ch.qos.logback</groupId>
588 <artifactId>logback-classic</artifactId>
589 <version>1.3.0-alpha4</version>
590 <scope>runtime</scope>
593 <groupId>org.slf4j</groupId>
594 <artifactId>slf4j-api</artifactId>
595 <version>1.8.0-beta1</version>
598 <groupId>io.projectreactor</groupId>
599 <artifactId>reactor-bom</artifactId>
600 <version>Bismuth-SR10</version>
602 <scope>import</scope>
605 <groupId>io.netty</groupId>
606 <artifactId>netty-tcnative-boringssl-static</artifactId>
607 <version>2.0.8.Final</version>
608 <classifier>${os.detected.classifier}</classifier>
611 <groupId>com.google.protobuf</groupId>
612 <artifactId>protobuf-java</artifactId>
613 <version>${protobuf.version}</version>
616 <groupId>com.google.protobuf</groupId>
617 <artifactId>protobuf-java-util</artifactId>
618 <version>${protobuf.version}</version>
621 <groupId>commons-cli</groupId>
622 <artifactId>commons-cli</artifactId>
623 <version>1.4</version>
626 <groupId>javax.json</groupId>
627 <artifactId>javax.json-api</artifactId>
628 <version>1.1.2</version>
631 <groupId>org.glassfish</groupId>
632 <artifactId>javax.json</artifactId>
633 <version>1.1.2</version>
636 <groupId>io.ratpack</groupId>
637 <artifactId>ratpack-core</artifactId>
638 <version>1.5.4</version>
641 <groupId>io.micrometer</groupId>
642 <artifactId>micrometer-registry-jmx</artifactId>
643 <version>1.0.5</version>
646 <!-- Test dependencies -->
649 <groupId>org.jetbrains.spek</groupId>
650 <artifactId>spek-api</artifactId>
651 <version>${spek.version}</version>
655 <groupId>org.jetbrains.spek</groupId>
656 <artifactId>spek-junit-platform-engine</artifactId>
657 <version>${spek.version}</version>
662 <groupId>org.assertj</groupId>
663 <artifactId>assertj-core</artifactId>
664 <version>3.9.1</version>
668 <groupId>com.nhaarman</groupId>
669 <artifactId>mockito-kotlin</artifactId>
670 <version>1.5.0</version>
674 <groupId>org.mockito</groupId>
675 <artifactId>mockito-core</artifactId>
680 <groupId>org.mockito</groupId>
681 <artifactId>mockito-core</artifactId>
682 <version>2.18.3</version>
686 <groupId>org.jetbrains.kotlin</groupId>
687 <artifactId>kotlin-test</artifactId>
688 <version>${kotlin.version}</version>
692 <groupId>io.projectreactor</groupId>
693 <artifactId>reactor-test</artifactId>
694 <version>3.1.7.RELEASE</version>
698 </dependencyManagement>