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>
34 <groupId>org.onap.oparent</groupId>
35 <artifactId>oparent</artifactId>
36 <version>0.1.1</version>
40 <groupId>org.onap.dcaegen2.collectors.veshv</groupId>
41 <artifactId>ves-hv-collector</artifactId>
42 <version>1.0.0-SNAPSHOT</version>
43 <name>dcaegen2-collectors-veshv</name>
44 <description>VES HighVolume Collector</description>
45 <packaging>pom</packaging>
48 <module>hv-collector-analysis</module>
49 <module>hv-collector-core</module>
50 <module>hv-collector-coverage</module>
51 <module>hv-collector-ct</module>
52 <module>hv-collector-dcae-app-simulator</module>
53 <module>hv-collector-domain</module>
54 <module>hv-collector-health-check</module>
55 <module>hv-collector-main</module>
56 <module>hv-collector-test-utils</module>
57 <module>hv-collector-utils</module>
58 <module>hv-collector-ves-message-generator</module>
59 <module>hv-collector-xnf-simulator</module>
63 <kotlin.version>1.2.60</kotlin.version>
64 <arrow.version>0.7.2</arrow.version>
65 <maven-compiler-plugin.version>3.7.0</maven-compiler-plugin.version>
66 <build-helper-maven-plugin.version>1.7</build-helper-maven-plugin.version>
68 <!-- Protocol buffers -->
69 <protobuf.version>3.5.1</protobuf.version>
70 <protoc-jar-maven-plugin.version>3.5.1.1</protoc-jar-maven-plugin.version>
71 <protobuf-generated-files.directory>${project.build.directory}/generated-sources/proto/main/java/
72 </protobuf-generated-files.directory>
74 <!-- Testing and code analysis -->
75 <junit-platform.version>1.2.0-RC1</junit-platform.version>
76 <junit-jupiter.version>5.2.0-RC1</junit-jupiter.version>
77 <spek.version>1.1.5</spek.version>
78 <maven-surefire-plugin.version>2.22.0</maven-surefire-plugin.version>
79 <failIfMissingUnitTests>false</failIfMissingUnitTests>
80 <failIfMissingComponentTests>false</failIfMissingComponentTests>
81 <skipAnalysis>true</skipAnalysis>
84 <skipDocker>false</skipDocker>
85 <docker-image.registry>${onap.nexus.dockerregistry.daily}</docker-image.registry>
86 <docker-image.namespace>onap</docker-image.namespace>
87 <docker-image.name>${project.groupId}.${project.artifactId}</docker-image.name>
88 <docker.http_proxy></docker.http_proxy>
89 <docker.https_proxy></docker.https_proxy>
94 <sourceDirectory>${project.basedir}/src/main/kotlin</sourceDirectory>
95 <testSourceDirectory>${project.basedir}/src/test/kotlin</testSourceDirectory>
98 <directory>${project.basedir}/src/main/resources</directory>
104 <groupId>org.apache.maven.plugins</groupId>
105 <artifactId>maven-resources-plugin</artifactId>
106 <version>3.1.0</version>
108 <encoding>UTF-8</encoding>
112 <groupId>org.apache.maven.plugins</groupId>
113 <artifactId>maven-deploy-plugin</artifactId>
119 <artifactId>kotlin-maven-plugin</artifactId>
120 <groupId>org.jetbrains.kotlin</groupId>
121 <version>${kotlin.version}</version>
123 <jvmTarget>1.8</jvmTarget>
133 <source>${project.build.sourceDirectory}</source>
134 <source>${project.build.directory}/generated-sources/annotations</source>
139 <id>test-compile</id>
141 <goal>test-compile</goal>
145 <source>${project.build.testSourceDirectory}</source>
152 <groupId>com.github.os72</groupId>
153 <artifactId>protoc-jar-maven-plugin</artifactId>
154 <version>${protoc-jar-maven-plugin.version}</version>
157 <groupId>org.codehaus.mojo</groupId>
158 <artifactId>build-helper-maven-plugin</artifactId>
159 <version>${build-helper-maven-plugin.version}</version>
163 <phase>generate-sources</phase>
165 <goal>add-source</goal>
169 <source>${protobuf-generated-files.directory}</source>
176 <groupId>org.apache.maven.plugins</groupId>
177 <artifactId>maven-compiler-plugin</artifactId>
178 <version>${maven-compiler-plugin.version}</version>
182 <encoding>UTF-8</encoding>
183 <showWarnings>true</showWarnings>
184 <showDeprecation>true</showDeprecation>
185 <failOnWarning>false</failOnWarning>
189 <groupId>org.ow2.asm</groupId>
190 <artifactId>asm</artifactId>
191 <version>6.1.1</version> <!-- Use newer version of ASM -->
196 Due to a memory leak in Surefire 2.20 and issues running on Java 9, the junit-platform-surefire-provider
197 currently only works with Surefire 2.19.1.
198 For updates see https://junit.org/junit5/docs/current/user-guide/#running-tests-build-maven
201 <artifactId>maven-surefire-plugin</artifactId>
202 <groupId>org.apache.maven.plugins</groupId>
203 <version>${maven-surefire-plugin.version}</version>
205 <failIfNoTests>${failIfMissingUnitTests}</failIfNoTests>
206 <forkCount>1</forkCount>
208 <include>**/*Test.*</include>
213 <groupId>org.apache.commons</groupId>
214 <artifactId>commons-lang3</artifactId>
215 <version>3.7</version>
218 <groupId>org.junit.platform</groupId>
219 <artifactId>junit-platform-surefire-provider</artifactId>
220 <version>${junit-platform.version}</version>
221 <scope>runtime</scope>
224 <groupId>org.jetbrains.spek</groupId>
225 <artifactId>spek-junit-platform-engine</artifactId>
226 <version>${spek.version}</version>
227 <scope>runtime</scope>
232 <groupId>org.apache.maven.plugins</groupId>
233 <artifactId>maven-failsafe-plugin</artifactId>
234 <version>2.22.0</version>
236 <failIfNoTests>${failIfMissingComponentTests}</failIfNoTests>
237 <forkCount>1</forkCount>
239 <include>**/*Specification.*</include>
244 <groupId>org.apache.commons</groupId>
245 <artifactId>commons-lang3</artifactId>
246 <version>3.7</version>
249 <groupId>org.junit.platform</groupId>
250 <artifactId>junit-platform-surefire-provider</artifactId>
251 <version>${junit-platform.version}</version>
252 <scope>runtime</scope>
255 <groupId>org.jetbrains.spek</groupId>
256 <artifactId>spek-junit-platform-engine</artifactId>
257 <version>${spek.version}</version>
258 <scope>runtime</scope>
266 <artifactId>maven-checkstyle-plugin</artifactId>
267 <version>2.17</version>
270 <groupId>org.onap.oparent</groupId>
271 <artifactId>checkstyle</artifactId>
272 <version>1.1.1</version>
277 <!-- To override oparent configuration different id must be used
278 We need to override it to include .kt files in check. -->
279 <id>check-license-kotlin</id>
283 <phase>process-sources</phase>
285 <configLocation>onap-checkstyle/check-license.xml</configLocation>
286 <includeResources>false</includeResources>
287 <includeTestSourceDirectory>true</includeTestSourceDirectory>
288 <includeTestResources>false</includeTestResources>
289 <includes>**\/*.kt</includes>
290 <consoleOutput>true</consoleOutput>
291 <!--<failOnViolation>false</failOnViolation>-->
297 <groupId>org.apache.maven.plugins</groupId>
298 <artifactId>maven-antrun-plugin</artifactId>
299 <version>1.8</version>
302 <!-- This can be run separately with mvn antrun:run@detekt -->
304 <phase>verify</phase>
309 <target name="detekt" unless="${skipAnalysis}">
310 <java taskname="detekt" dir="${basedir}"
313 classname="io.gitlab.arturbosch.detekt.cli.Main"
314 classpathref="maven.plugin.classpath">
315 <arg value="--input"/>
316 <arg value="${basedir}/src/main/kotlin"/>
317 <arg value="--config-resource"/>
318 <arg value="onap-detekt-config.yml"/>
319 <arg value="--filters"/>
320 <arg value=".*/target/.*,.*/resources/.*"/>
321 <arg value="--output"/>
322 <arg value="${basedir}/target/reports"/>
323 <arg value="--output-name"/>
324 <arg value="detekt-report"/>
325 <arg value="--baseline"/>
326 <arg value="${basedir}/target/reports/baseline.xml"/>
334 <groupId>io.gitlab.arturbosch.detekt</groupId>
335 <artifactId>detekt-cli</artifactId>
336 <version>1.0.0.RC7</version>
339 <groupId>${project.groupId}</groupId>
340 <artifactId>hv-collector-analysis</artifactId>
341 <version>${project.version}</version>
348 <groupId>kr.motd.maven</groupId>
349 <artifactId>os-maven-plugin</artifactId>
350 <version>1.6.0</version>
360 <name>!skipDocker</name>
364 <os.detected.name>linux</os.detected.name>
365 <os.detected.arch>x86_64</os.detected.arch>
366 <os.detected.classifier>${os.detected.name}-${os.detected.arch}</os.detected.classifier>
372 <groupId>org.apache.maven.plugins</groupId>
373 <artifactId>maven-dependency-plugin</artifactId>
374 <version>3.1.1</version>
377 <id>docker-copy-internal-deps</id>
378 <phase>package</phase>
380 <goal>copy-dependencies</goal>
383 <outputDirectory>${project.build.directory}/libs/internal</outputDirectory>
384 <includeGroupIds>${project.parent.groupId}</includeGroupIds>
385 <includeScope>runtime</includeScope>
389 <id>docker-copy-external-deps</id>
390 <phase>package</phase>
392 <goal>copy-dependencies</goal>
395 <outputDirectory>${project.build.directory}/libs/external</outputDirectory>
396 <excludeGroupIds>${project.parent.groupId}</excludeGroupIds>
397 <includeScope>runtime</includeScope>
403 <groupId>io.fabric8</groupId>
404 <artifactId>docker-maven-plugin</artifactId>
405 <version>0.26.0</version>
408 <id>docker-build-image</id>
409 <phase>deploy</phase>
415 <id>docker-push-image</id>
416 <phase>deploy</phase>
423 <verbose>true</verbose>
424 <imagePullPolicy>IfNotPresent</imagePullPolicy>
427 <alias>${project.artifactId}</alias>
428 <name>${docker-image.registry}/${docker-image.namespace}/${docker-image.name}
431 <tag>${project.version}-SNAPSHOT-${maven.build.timestamp}Z</tag>
432 <tag>${project.version}</tag>
438 <http_proxy>${docker.http_proxy}</http_proxy>
439 <https_proxy>${docker.https_proxy}</https_proxy>
442 <dockerFileDir>${project.basedir}</dockerFileDir>
456 <id>40_openecomp-release</id>
457 <name>40_openecomp-release</name>
458 <url>https://nexus.onap.org/content/repositories/releases/</url>
460 <enabled>true</enabled>
461 <updatePolicy>daily</updatePolicy>
464 <enabled>false</enabled>
469 <id>arturbosch-code-analysis</id>
470 <name>arturbosch-code-analysis (for detekt)</name>
471 <url>https://dl.bintray.com/arturbosch/code-analysis/</url>
472 <layout>default</layout>
474 <enabled>true</enabled>
475 <updatePolicy>never</updatePolicy>
478 <enabled>false</enabled>
479 <updatePolicy>never</updatePolicy>
482 </pluginRepositories>
486 <id>40_openecomp-release</id>
487 <name>40_openecomp-release</name>
488 <url>https://nexus.onap.org/content/repositories/releases/</url>
490 <enabled>true</enabled>
491 <updatePolicy>daily</updatePolicy>
494 <enabled>false</enabled>
499 <dependencyManagement>
502 <groupId>com.google.guava</groupId>
503 <artifactId>guava</artifactId>
504 <version>25.0-jre</version>
507 <groupId>com.google.code.findbugs</groupId>
508 <artifactId>jsr305</artifactId>
513 <groupId>org.jetbrains.kotlin</groupId>
514 <artifactId>kotlin-stdlib-jdk8</artifactId>
515 <version>${kotlin.version}</version>
518 <groupId>org.jetbrains.kotlin</groupId>
519 <artifactId>kotlin-reflect</artifactId>
520 <version>${kotlin.version}</version>
523 <groupId>io.arrow-kt</groupId>
524 <artifactId>arrow-core</artifactId>
525 <version>${arrow.version}</version>
528 <groupId>org.jetbrains.kotlin</groupId>
529 <artifactId>kotlin-stdlib</artifactId>
532 <groupId>org.jetbrains.kotlin</groupId>
533 <artifactId>kotlin-stdlib-jdk7</artifactId>
538 <groupId>io.arrow-kt</groupId>
539 <artifactId>arrow-syntax</artifactId>
540 <version>${arrow.version}</version>
543 <groupId>io.arrow-kt</groupId>
544 <artifactId>arrow-instances-core</artifactId>
545 <version>${arrow.version}</version>
548 <groupId>io.arrow-kt</groupId>
549 <artifactId>arrow-instances-data</artifactId>
550 <version>${arrow.version}</version>
553 <groupId>io.arrow-kt</groupId>
554 <artifactId>arrow-effects</artifactId>
555 <version>${arrow.version}</version>
558 <groupId>ch.qos.logback</groupId>
559 <artifactId>logback-classic</artifactId>
560 <version>1.3.0-alpha4</version>
561 <scope>runtime</scope>
564 <groupId>org.slf4j</groupId>
565 <artifactId>slf4j-api</artifactId>
566 <version>1.8.0-beta1</version>
569 <groupId>io.projectreactor</groupId>
570 <artifactId>reactor-bom</artifactId>
571 <version>Bismuth-SR10</version>
573 <scope>import</scope>
576 <groupId>io.netty</groupId>
577 <artifactId>netty-tcnative-boringssl-static</artifactId>
578 <version>2.0.8.Final</version>
579 <classifier>${os.detected.classifier}</classifier>
582 <groupId>com.google.protobuf</groupId>
583 <artifactId>protobuf-java</artifactId>
584 <version>${protobuf.version}</version>
587 <groupId>com.google.protobuf</groupId>
588 <artifactId>protobuf-java-util</artifactId>
589 <version>${protobuf.version}</version>
592 <groupId>commons-cli</groupId>
593 <artifactId>commons-cli</artifactId>
594 <version>1.4</version>
597 <groupId>javax.json</groupId>
598 <artifactId>javax.json-api</artifactId>
599 <version>1.1.2</version>
602 <groupId>org.glassfish</groupId>
603 <artifactId>javax.json</artifactId>
604 <version>1.1.2</version>
607 <groupId>io.ratpack</groupId>
608 <artifactId>ratpack-core</artifactId>
609 <version>1.5.4</version>
612 <groupId>io.micrometer</groupId>
613 <artifactId>micrometer-registry-jmx</artifactId>
614 <version>1.0.5</version>
617 <!-- Test dependencies -->
620 <groupId>org.jetbrains.spek</groupId>
621 <artifactId>spek-api</artifactId>
622 <version>${spek.version}</version>
626 <groupId>org.jetbrains.spek</groupId>
627 <artifactId>spek-junit-platform-engine</artifactId>
628 <version>${spek.version}</version>
632 <groupId>org.assertj</groupId>
633 <artifactId>assertj-core</artifactId>
634 <version>3.9.1</version>
638 <groupId>com.nhaarman</groupId>
639 <artifactId>mockito-kotlin</artifactId>
640 <version>1.5.0</version>
644 <groupId>org.mockito</groupId>
645 <artifactId>mockito-core</artifactId>
650 <groupId>org.mockito</groupId>
651 <artifactId>mockito-core</artifactId>
652 <version>2.18.3</version>
656 <groupId>org.jetbrains.kotlin</groupId>
657 <artifactId>kotlin-test</artifactId>
658 <version>${kotlin.version}</version>
662 <groupId>io.projectreactor</groupId>
663 <artifactId>reactor-test</artifactId>
664 <version>3.1.7.RELEASE</version>
668 </dependencyManagement>