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" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
23 <modelVersion>4.0.0</modelVersion>
27 <name>The Apache Software License, Version 2.0</name>
28 <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
33 <groupId>org.onap.oparent</groupId>
34 <artifactId>oparent</artifactId>
35 <version>1.2.0</version>
39 <groupId>org.onap.dcaegen2.collectors.hv-ves</groupId>
40 <artifactId>ves-hv-collector</artifactId>
41 <version>1.0.0-SNAPSHOT</version>
42 <name>dcaegen2-collectors-veshv</name>
43 <description>VES HighVolume Collector</description>
44 <packaging>pom</packaging>
47 <module>hv-collector-analysis</module>
48 <module>hv-collector-core</module>
49 <module>hv-collector-coverage</module>
50 <module>hv-collector-ct</module>
51 <module>hv-collector-dcae-app-simulator</module>
52 <module>hv-collector-domain</module>
53 <module>hv-collector-health-check</module>
54 <module>hv-collector-main</module>
55 <module>hv-collector-test-utils</module>
56 <module>hv-collector-utils</module>
57 <module>hv-collector-ves-message-generator</module>
58 <module>hv-collector-xnf-simulator</module>
62 <kotlin.version>1.2.61</kotlin.version>
63 <arrow.version>0.7.3</arrow.version>
64 <maven-compiler-plugin.version>3.7.0</maven-compiler-plugin.version>
65 <build-helper-maven-plugin.version>1.7</build-helper-maven-plugin.version>
66 <jacoco.version>0.8.2</jacoco.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 <skipDockerPush>true</skipDockerPush>
86 <maven.build.timestamp.format>yyyyMMdd'T'HHmmss</maven.build.timestamp.format>
87 <docker-image.registry>${onap.nexus.dockerregistry.daily}</docker-image.registry>
88 <docker-image.namespace>onap</docker-image.namespace>
89 <docker-image.name>${project.groupId}.${project.artifactId}</docker-image.name>
95 <sourceDirectory>${project.basedir}/src/main/kotlin</sourceDirectory>
96 <testSourceDirectory>${project.basedir}/src/test/kotlin</testSourceDirectory>
99 <directory>${project.basedir}/src/main/resources</directory>
105 <groupId>org.apache.maven.plugins</groupId>
106 <artifactId>maven-resources-plugin</artifactId>
107 <version>3.1.0</version>
109 <encoding>UTF-8</encoding>
113 <groupId>org.apache.maven.plugins</groupId>
114 <artifactId>maven-deploy-plugin</artifactId>
120 <artifactId>kotlin-maven-plugin</artifactId>
121 <groupId>org.jetbrains.kotlin</groupId>
122 <version>${kotlin.version}</version>
124 <jvmTarget>1.8</jvmTarget>
125 <experimentalCoroutines>enable</experimentalCoroutines>
135 <source>${project.build.sourceDirectory}</source>
136 <source>${project.build.directory}/generated-sources/annotations</source>
141 <id>test-compile</id>
143 <goal>test-compile</goal>
147 <source>${project.build.testSourceDirectory}</source>
154 <groupId>com.github.os72</groupId>
155 <artifactId>protoc-jar-maven-plugin</artifactId>
156 <version>${protoc-jar-maven-plugin.version}</version>
159 <groupId>org.codehaus.mojo</groupId>
160 <artifactId>build-helper-maven-plugin</artifactId>
161 <version>${build-helper-maven-plugin.version}</version>
165 <phase>generate-sources</phase>
167 <goal>add-source</goal>
171 <source>${protobuf-generated-files.directory}</source>
178 <groupId>org.apache.maven.plugins</groupId>
179 <artifactId>maven-compiler-plugin</artifactId>
180 <version>${maven-compiler-plugin.version}</version>
184 <encoding>UTF-8</encoding>
185 <showWarnings>true</showWarnings>
186 <showDeprecation>true</showDeprecation>
187 <failOnWarning>false</failOnWarning>
191 <groupId>org.ow2.asm</groupId>
192 <artifactId>asm</artifactId>
193 <version>6.1.1</version> <!-- Use newer version of ASM -->
198 Due to a memory leak in Surefire 2.20 and issues running on Java 9, the junit-platform-surefire-provider
199 currently only works with Surefire 2.19.1.
200 For updates see https://junit.org/junit5/docs/current/user-guide/#running-tests-build-maven
203 <artifactId>maven-surefire-plugin</artifactId>
204 <groupId>org.apache.maven.plugins</groupId>
205 <version>${maven-surefire-plugin.version}</version>
207 <failIfNoTests>${failIfMissingUnitTests}</failIfNoTests>
208 <forkCount>1</forkCount>
210 <include>**/*Test.*</include>
215 <groupId>org.apache.commons</groupId>
216 <artifactId>commons-lang3</artifactId>
217 <version>3.7</version>
220 <groupId>org.junit.platform</groupId>
221 <artifactId>junit-platform-surefire-provider</artifactId>
222 <version>${junit-platform.version}</version>
223 <scope>runtime</scope>
226 <groupId>org.jetbrains.spek</groupId>
227 <artifactId>spek-junit-platform-engine</artifactId>
228 <version>${spek.version}</version>
229 <scope>runtime</scope>
234 <groupId>org.apache.maven.plugins</groupId>
235 <artifactId>maven-failsafe-plugin</artifactId>
236 <version>2.22.0</version>
238 <failIfNoTests>${failIfMissingComponentTests}</failIfNoTests>
239 <forkCount>1</forkCount>
241 <include>**/*Specification.*</include>
246 <groupId>org.apache.commons</groupId>
247 <artifactId>commons-lang3</artifactId>
248 <version>3.7</version>
251 <groupId>org.junit.platform</groupId>
252 <artifactId>junit-platform-surefire-provider</artifactId>
253 <version>${junit-platform.version}</version>
254 <scope>runtime</scope>
257 <groupId>org.jetbrains.spek</groupId>
258 <artifactId>spek-junit-platform-engine</artifactId>
259 <version>${spek.version}</version>
260 <scope>runtime</scope>
268 <artifactId>maven-checkstyle-plugin</artifactId>
269 <version>2.17</version>
272 <groupId>org.onap.oparent</groupId>
273 <artifactId>checkstyle</artifactId>
274 <version>1.1.1</version>
279 <!-- To override oparent configuration different id must be used
280 We need to override it to include .kt files in check. -->
281 <id>check-license-kotlin</id>
285 <phase>process-sources</phase>
287 <configLocation>onap-checkstyle/check-license.xml</configLocation>
288 <includeResources>false</includeResources>
289 <includeTestSourceDirectory>true</includeTestSourceDirectory>
290 <includeTestResources>false</includeTestResources>
291 <includes>**\/*.kt</includes>
292 <consoleOutput>true</consoleOutput>
293 <!--<failOnViolation>false</failOnViolation>-->
299 <groupId>org.apache.maven.plugins</groupId>
300 <artifactId>maven-antrun-plugin</artifactId>
301 <version>1.8</version>
304 <!-- This can be run separately with mvn antrun:run@detekt -->
306 <phase>verify</phase>
311 <target name="detekt" unless="${skipAnalysis}">
312 <java taskname="detekt" dir="${basedir}" fork="true" failonerror="true" classname="io.gitlab.arturbosch.detekt.cli.Main" classpathref="maven.plugin.classpath">
313 <arg value="--input"/>
314 <arg value="${basedir}/src/main/kotlin"/>
315 <arg value="--config-resource"/>
316 <arg value="onap-detekt-config.yml"/>
317 <arg value="--filters"/>
318 <arg value=".*/target/.*,.*/resources/.*"/>
319 <arg value="--output"/>
320 <arg value="${basedir}/target/reports"/>
321 <arg value="--output-name"/>
322 <arg value="detekt-report"/>
323 <arg value="--baseline"/>
324 <arg value="${basedir}/target/reports/baseline.xml"/>
332 <groupId>io.gitlab.arturbosch.detekt</groupId>
333 <artifactId>detekt-cli</artifactId>
334 <version>1.0.0.RC7</version>
337 <groupId>${project.groupId}</groupId>
338 <artifactId>hv-collector-analysis</artifactId>
339 <version>1.0.0-SNAPSHOT</version>
346 <groupId>kr.motd.maven</groupId>
347 <artifactId>os-maven-plugin</artifactId>
348 <version>1.6.0</version>
358 <name>!skipDocker</name>
362 <os.detected.name>linux</os.detected.name>
363 <os.detected.arch>x86_64</os.detected.arch>
364 <os.detected.classifier>${os.detected.name}-${os.detected.arch}</os.detected.classifier>
370 <groupId>org.apache.maven.plugins</groupId>
371 <artifactId>maven-dependency-plugin</artifactId>
372 <version>3.1.1</version>
375 <id>docker-copy-internal-deps</id>
376 <phase>package</phase>
378 <goal>copy-dependencies</goal>
381 <outputDirectory>${project.build.directory}/libs/internal</outputDirectory>
382 <includeGroupIds>${project.parent.groupId}</includeGroupIds>
383 <includeScope>runtime</includeScope>
387 <id>docker-copy-external-deps</id>
388 <phase>package</phase>
390 <goal>copy-dependencies</goal>
393 <outputDirectory>${project.build.directory}/libs/external</outputDirectory>
394 <excludeGroupIds>${project.parent.groupId}</excludeGroupIds>
395 <includeScope>runtime</includeScope>
401 <groupId>io.fabric8</groupId>
402 <artifactId>docker-maven-plugin</artifactId>
403 <version>0.26.0</version>
406 <id>docker-build-image</id>
407 <phase>package</phase>
413 <id>docker-push-image</id>
414 <phase>deploy</phase>
421 <skipPush>${skipDockerPush}</skipPush>
422 <verbose>true</verbose>
423 <imagePullPolicy>IfNotPresent</imagePullPolicy>
426 <alias>${project.artifactId}</alias>
427 <name>${docker-image.namespace}/${docker-image.name}
429 <registry>${docker-image.registry}</registry>
433 <http_proxy>${docker.http_proxy}</http_proxy>
434 <https_proxy>${docker.http_proxy}</https_proxy>
437 <dockerFileDir>${project.basedir}</dockerFileDir>
439 <tag>${project.version}-SNAPSHOT-${maven.build.timestamp}Z</tag>
440 <tag>${project.version}</tag>
449 <groupId>io.fabric8</groupId>
450 <artifactId>run-java-sh</artifactId>
451 <version>1.2.2</version>
463 <id>arturbosch-code-analysis</id>
464 <name>arturbosch-code-analysis (for detekt)</name>
465 <url>https://dl.bintray.com/arturbosch/code-analysis/</url>
466 <layout>default</layout>
468 <enabled>true</enabled>
469 <updatePolicy>never</updatePolicy>
472 <enabled>false</enabled>
473 <updatePolicy>never</updatePolicy>
476 </pluginRepositories>
480 <id>40_openecomp-release</id>
481 <name>40_openecomp-release</name>
482 <url>https://nexus.onap.org/content/repositories/releases/</url>
484 <enabled>true</enabled>
485 <updatePolicy>daily</updatePolicy>
488 <enabled>false</enabled>
493 <dependencyManagement>
496 <groupId>com.google.guava</groupId>
497 <artifactId>guava</artifactId>
501 <groupId>com.google.code.findbugs</groupId>
502 <artifactId>jsr305</artifactId>
507 <groupId>org.jetbrains.kotlin</groupId>
508 <artifactId>kotlin-stdlib-jdk8</artifactId>
509 <version>${kotlin.version}</version>
512 <groupId>org.jetbrains.kotlin</groupId>
513 <artifactId>kotlin-reflect</artifactId>
514 <version>${kotlin.version}</version>
517 <groupId>io.arrow-kt</groupId>
518 <artifactId>arrow-core</artifactId>
519 <version>${arrow.version}</version>
522 <groupId>org.jetbrains.kotlin</groupId>
523 <artifactId>kotlin-stdlib</artifactId>
526 <groupId>org.jetbrains.kotlin</groupId>
527 <artifactId>kotlin-stdlib-jdk7</artifactId>
532 <groupId>io.arrow-kt</groupId>
533 <artifactId>arrow-syntax</artifactId>
534 <version>${arrow.version}</version>
537 <groupId>io.arrow-kt</groupId>
538 <artifactId>arrow-instances-core</artifactId>
539 <version>${arrow.version}</version>
542 <groupId>io.arrow-kt</groupId>
543 <artifactId>arrow-instances-data</artifactId>
544 <version>${arrow.version}</version>
547 <groupId>io.arrow-kt</groupId>
548 <artifactId>arrow-effects</artifactId>
549 <version>${arrow.version}</version>
552 <groupId>ch.qos.logback</groupId>
553 <artifactId>logback-classic</artifactId>
554 <version>1.3.0-alpha4</version>
555 <scope>runtime</scope>
558 <groupId>org.slf4j</groupId>
559 <artifactId>slf4j-api</artifactId>
560 <version>1.8.0-beta1</version>
563 <groupId>io.projectreactor</groupId>
564 <artifactId>reactor-bom</artifactId>
565 <version>Bismuth-SR10</version>
567 <scope>import</scope>
570 <groupId>io.netty</groupId>
571 <artifactId>netty-tcnative-boringssl-static</artifactId>
572 <version>2.0.8.Final</version>
573 <classifier>${os.detected.classifier}</classifier>
576 <groupId>com.google.protobuf</groupId>
577 <artifactId>protobuf-java</artifactId>
578 <version>${protobuf.version}</version>
581 <groupId>com.google.protobuf</groupId>
582 <artifactId>protobuf-java-util</artifactId>
583 <version>${protobuf.version}</version>
586 <groupId>commons-cli</groupId>
587 <artifactId>commons-cli</artifactId>
588 <version>1.4</version>
591 <groupId>javax.json</groupId>
592 <artifactId>javax.json-api</artifactId>
593 <version>1.1.2</version>
596 <groupId>org.glassfish</groupId>
597 <artifactId>javax.json</artifactId>
598 <version>1.1.2</version>
601 <groupId>io.ratpack</groupId>
602 <artifactId>ratpack-core</artifactId>
603 <version>1.5.4</version>
606 <groupId>io.micrometer</groupId>
607 <artifactId>micrometer-registry-jmx</artifactId>
608 <version>1.0.5</version>
611 <!-- Test dependencies -->
614 <groupId>org.jetbrains.spek</groupId>
615 <artifactId>spek-api</artifactId>
616 <version>${spek.version}</version>
620 <groupId>org.jetbrains.spek</groupId>
621 <artifactId>spek-junit-platform-engine</artifactId>
622 <version>${spek.version}</version>
626 <groupId>org.assertj</groupId>
627 <artifactId>assertj-core</artifactId>
628 <version>3.9.1</version>
632 <groupId>com.nhaarman</groupId>
633 <artifactId>mockito-kotlin</artifactId>
634 <version>1.5.0</version>
638 <groupId>org.mockito</groupId>
639 <artifactId>mockito-core</artifactId>
644 <groupId>org.mockito</groupId>
645 <artifactId>mockito-core</artifactId>
646 <version>2.18.3</version>
650 <groupId>org.jetbrains.kotlin</groupId>
651 <artifactId>kotlin-test</artifactId>
652 <version>${kotlin.version}</version>
656 <groupId>io.projectreactor</groupId>
657 <artifactId>reactor-test</artifactId>
658 <version>3.1.7.RELEASE</version>
662 </dependencyManagement>