Add all required and reasonable MDCs
[dcaegen2/collectors/hv-ves.git] / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
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
11   ~
12   ~      http://www.apache.org/licenses/LICENSE-2.0
13   ~
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=========================================================
20   -->
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">
22
23     <modelVersion>4.0.0</modelVersion>
24
25     <licenses>
26         <license>
27             <name>The Apache Software License, Version 2.0</name>
28             <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
29         </license>
30     </licenses>
31
32     <parent>
33         <groupId>org.onap.oparent</groupId>
34         <artifactId>oparent</artifactId>
35         <version>1.2.1</version>
36         <relativePath/>
37     </parent>
38
39     <groupId>org.onap.dcaegen2.collectors.hv-ves</groupId>
40     <artifactId>ves-hv-collector</artifactId>
41     <version>1.1.0-SNAPSHOT</version>
42     <name>dcaegen2-collectors-veshv</name>
43     <description>VES HighVolume Collector</description>
44     <packaging>pom</packaging>
45
46     <modules>
47         <module>build</module>
48         <module>sources</module>
49     </modules>
50
51     <properties>
52         <kotlin.version>1.3.11</kotlin.version>
53         <arrow.version>0.8.0</arrow.version>
54         <maven-compiler-plugin.version>3.7.0</maven-compiler-plugin.version>
55         <build-helper-maven-plugin.version>1.7</build-helper-maven-plugin.version>
56         <jacoco.version>0.8.2</jacoco.version>
57         <detekt.version>1.0.0-RC11</detekt.version>
58
59         <!-- Protocol buffers -->
60         <protobuf.version>3.6.1</protobuf.version>
61         <protoc-jar-maven-plugin.version>3.6.0.1</protoc-jar-maven-plugin.version>
62         <protobuf-generated-files.directory>${project.build.directory}/generated-sources/proto/main/java/
63         </protobuf-generated-files.directory>
64
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.22.0</maven-surefire-plugin.version>
70         <failIfMissingUnitTests>false</failIfMissingUnitTests>
71         <failIfMissingComponentTests>false</failIfMissingComponentTests>
72         <skipAnalysis>true</skipAnalysis>
73         <jacoco.minimum.coverage>60</jacoco.minimum.coverage>
74
75         <!-- Docker -->
76         <skipDocker>false</skipDocker>
77         <skipDockerPush>true</skipDockerPush>
78         <maven.build.timestamp.format>yyyyMMdd'T'HHmmss</maven.build.timestamp.format>
79         <docker-image.registry>${onap.nexus.dockerregistry.daily}</docker-image.registry>
80         <docker-image.namespace>onap</docker-image.namespace>
81         <docker-image.name>${project.groupId}.${project.artifactId}</docker-image.name>
82         <docker-image.latest>1.1-SNAPSHOT</docker-image.latest>
83         <docker.http_proxy/>
84     </properties>
85
86     <build>
87         <sourceDirectory>${project.basedir}/src/main/kotlin</sourceDirectory>
88         <testSourceDirectory>${project.basedir}/src/test/kotlin</testSourceDirectory>
89         <resources>
90             <resource>
91                 <directory>${project.basedir}/src/main/resources</directory>
92             </resource>
93         </resources>
94         <pluginManagement>
95             <plugins>
96                 <plugin>
97                     <groupId>org.apache.maven.plugins</groupId>
98                     <artifactId>maven-resources-plugin</artifactId>
99                     <version>3.1.0</version>
100                     <configuration>
101                         <encoding>UTF-8</encoding>
102                     </configuration>
103                 </plugin>
104                 <plugin>
105                     <groupId>org.apache.maven.plugins</groupId>
106                     <artifactId>maven-deploy-plugin</artifactId>
107                     <configuration>
108                         <skip>true</skip>
109                     </configuration>
110                 </plugin>
111                 <plugin>
112                     <artifactId>kotlin-maven-plugin</artifactId>
113                     <groupId>org.jetbrains.kotlin</groupId>
114                     <version>${kotlin.version}</version>
115                     <configuration>
116                         <jvmTarget>1.8</jvmTarget>
117                     </configuration>
118                     <executions>
119                         <execution>
120                             <id>compile</id>
121                             <goals>
122                                 <goal>compile</goal>
123                             </goals>
124                             <configuration>
125                                 <sourceDirs>
126                                     <source>${project.build.sourceDirectory}</source>
127                                     <source>${project.build.directory}/generated-sources/annotations</source>
128                                 </sourceDirs>
129                             </configuration>
130                         </execution>
131                         <execution>
132                             <id>test-compile</id>
133                             <goals>
134                                 <goal>test-compile</goal>
135                             </goals>
136                             <configuration>
137                                 <sourceDirs>
138                                     <source>${project.build.testSourceDirectory}</source>
139                                 </sourceDirs>
140                             </configuration>
141                         </execution>
142                     </executions>
143                 </plugin>
144                 <plugin>
145                     <groupId>com.github.os72</groupId>
146                     <artifactId>protoc-jar-maven-plugin</artifactId>
147                     <version>${protoc-jar-maven-plugin.version}</version>
148                 </plugin>
149                 <plugin>
150                     <groupId>org.codehaus.mojo</groupId>
151                     <artifactId>build-helper-maven-plugin</artifactId>
152                     <version>${build-helper-maven-plugin.version}</version>
153                     <executions>
154                         <execution>
155                             <id>add-source</id>
156                             <phase>generate-sources</phase>
157                             <goals>
158                                 <goal>add-source</goal>
159                             </goals>
160                             <configuration>
161                                 <sources>
162                                     <source>${protobuf-generated-files.directory}</source>
163                                 </sources>
164                             </configuration>
165                         </execution>
166                     </executions>
167                 </plugin>
168                 <plugin>
169                     <groupId>org.apache.maven.plugins</groupId>
170                     <artifactId>maven-compiler-plugin</artifactId>
171                     <version>${maven-compiler-plugin.version}</version>
172                     <configuration>
173                         <source>8</source>
174                         <target>8</target>
175                         <encoding>UTF-8</encoding>
176                         <showWarnings>true</showWarnings>
177                         <showDeprecation>true</showDeprecation>
178                         <failOnWarning>false</failOnWarning>
179                     </configuration>
180                     <dependencies>
181                         <dependency>
182                             <groupId>org.ow2.asm</groupId>
183                             <artifactId>asm</artifactId>
184                             <version>6.1.1</version> <!-- Use newer version of ASM -->
185                         </dependency>
186                     </dependencies>
187                 </plugin>
188                 <!--
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
192                  -->
193                 <plugin>
194                     <artifactId>maven-surefire-plugin</artifactId>
195                     <groupId>org.apache.maven.plugins</groupId>
196                     <version>${maven-surefire-plugin.version}</version>
197                     <configuration>
198                         <failIfNoTests>${failIfMissingUnitTests}</failIfNoTests>
199                         <forkCount>1</forkCount>
200                         <includes>
201                             <include>**/*Test.*</include>
202                         </includes>
203                     </configuration>
204                     <dependencies>
205                         <dependency>
206                             <groupId>org.apache.commons</groupId>
207                             <artifactId>commons-lang3</artifactId>
208                             <version>3.7</version>
209                         </dependency>
210                         <dependency>
211                             <groupId>org.junit.platform</groupId>
212                             <artifactId>junit-platform-surefire-provider</artifactId>
213                             <version>${junit-platform.version}</version>
214                             <scope>runtime</scope>
215                         </dependency>
216                         <dependency>
217                             <groupId>org.jetbrains.spek</groupId>
218                             <artifactId>spek-junit-platform-engine</artifactId>
219                             <version>${spek.version}</version>
220                             <scope>runtime</scope>
221                         </dependency>
222                     </dependencies>
223                 </plugin>
224                 <plugin>
225                     <groupId>org.apache.maven.plugins</groupId>
226                     <artifactId>maven-failsafe-plugin</artifactId>
227                     <version>2.22.0</version>
228                     <configuration>
229                         <failIfNoTests>${failIfMissingComponentTests}</failIfNoTests>
230                         <forkCount>1</forkCount>
231                         <includes>
232                             <include>**/*Specification.*</include>
233                         </includes>
234                     </configuration>
235                     <dependencies>
236                         <dependency>
237                             <groupId>org.apache.commons</groupId>
238                             <artifactId>commons-lang3</artifactId>
239                             <version>3.7</version>
240                         </dependency>
241                         <dependency>
242                             <groupId>org.junit.platform</groupId>
243                             <artifactId>junit-platform-surefire-provider</artifactId>
244                             <version>${junit-platform.version}</version>
245                             <scope>runtime</scope>
246                         </dependency>
247                         <dependency>
248                             <groupId>org.jetbrains.spek</groupId>
249                             <artifactId>spek-junit-platform-engine</artifactId>
250                             <version>${spek.version}</version>
251                             <scope>runtime</scope>
252                         </dependency>
253                     </dependencies>
254                 </plugin>
255                 <plugin>
256                     <groupId>org.codehaus.mojo</groupId>
257                     <artifactId>exec-maven-plugin</artifactId>
258                     <version>1.6.0</version>
259                 </plugin>
260             </plugins>
261         </pluginManagement>
262         <extensions>
263             <extension>
264                 <groupId>kr.motd.maven</groupId>
265                 <artifactId>os-maven-plugin</artifactId>
266                 <version>1.6.0</version>
267             </extension>
268         </extensions>
269     </build>
270
271     <profiles>
272         <profile>
273             <id>docker-proxy</id>
274             <activation>
275                 <property>
276                     <name>docker.http_proxy</name>
277                 </property>
278             </activation>
279             <properties>
280                 <!-- set build args as defined in https://dmp.fabric8.io/#build-buildargs -->
281                 <docker.buildArg.http_proxy>${docker.http_proxy}</docker.buildArg.http_proxy>
282                 <docker.buildArg.https_proxy>${docker.http_proxy}</docker.buildArg.https_proxy>
283             </properties>
284         </profile>
285
286         <profile>
287             <id>docker</id>
288             <activation>
289                 <property>
290                     <name>!skipDocker</name>
291                 </property>
292             </activation>
293             <properties>
294                 <os.detected.name>linux</os.detected.name>
295                 <os.detected.arch>x86_64</os.detected.arch>
296                 <os.detected.classifier>${os.detected.name}-${os.detected.arch}</os.detected.classifier>
297             </properties>
298             <build>
299                 <pluginManagement>
300                     <plugins>
301                         <plugin>
302                             <groupId>org.apache.maven.plugins</groupId>
303                             <artifactId>maven-dependency-plugin</artifactId>
304                             <version>3.1.1</version>
305                             <executions>
306                                 <execution>
307                                     <id>docker-copy-internal-deps</id>
308                                     <phase>package</phase>
309                                     <goals>
310                                         <goal>copy-dependencies</goal>
311                                     </goals>
312                                     <configuration>
313                                         <outputDirectory>${project.build.directory}/libs/internal</outputDirectory>
314                                         <includeGroupIds>${project.parent.groupId}</includeGroupIds>
315                                         <includeScope>runtime</includeScope>
316                                     </configuration>
317                                 </execution>
318                                 <execution>
319                                     <id>docker-copy-external-deps</id>
320                                     <phase>package</phase>
321                                     <goals>
322                                         <goal>copy-dependencies</goal>
323                                     </goals>
324                                     <configuration>
325                                         <outputDirectory>${project.build.directory}/libs/external</outputDirectory>
326                                         <excludeGroupIds>${project.parent.groupId}</excludeGroupIds>
327                                         <includeScope>runtime</includeScope>
328                                     </configuration>
329                                 </execution>
330                             </executions>
331                         </plugin>
332                         <plugin>
333                             <groupId>io.fabric8</groupId>
334                             <artifactId>docker-maven-plugin</artifactId>
335                             <version>0.26.0</version>
336                             <executions>
337                                 <execution>
338                                     <id>docker-build-image</id>
339                                     <phase>package</phase>
340                                     <goals>
341                                         <goal>build</goal>
342                                     </goals>
343                                 </execution>
344                                 <execution>
345                                     <id>docker-push-image</id>
346                                     <phase>deploy</phase>
347                                     <goals>
348                                         <goal>push</goal>
349                                     </goals>
350                                 </execution>
351                             </executions>
352                             <configuration>
353                                 <skipPush>${skipDockerPush}</skipPush>
354                                 <verbose>true</verbose>
355                                 <imagePullPolicy>IfNotPresent</imagePullPolicy>
356                                 <images>
357                                     <image>
358                                         <alias>${project.artifactId}</alias>
359                                         <name>${docker-image.namespace}/${docker-image.name}
360                                         </name>
361                                         <registry>${docker-image.registry}</registry>
362                                         <build>
363                                             <dockerFileDir>${project.basedir}</dockerFileDir>
364                                             <tags>
365                                                 <tag>${project.version}-${maven.build.timestamp}Z</tag>
366                                                 <tag>${project.version}</tag>
367                                                 <tag>${docker-image.latest}</tag>
368                                             </tags>
369                                         </build>
370                                     </image>
371                                 </images>
372                             </configuration>
373                         </plugin>
374                     </plugins>
375                 </pluginManagement>
376             </build>
377         </profile>
378     </profiles>
379
380     <pluginRepositories>
381         <pluginRepository>
382             <id>arturbosch-code-analysis</id>
383             <name>arturbosch-code-analysis (for detekt)</name>
384             <url>https://dl.bintray.com/arturbosch/code-analysis/</url>
385             <layout>default</layout>
386             <releases>
387                 <enabled>true</enabled>
388                 <updatePolicy>never</updatePolicy>
389             </releases>
390             <snapshots>
391                 <enabled>false</enabled>
392                 <updatePolicy>never</updatePolicy>
393             </snapshots>
394         </pluginRepository>
395     </pluginRepositories>
396
397     <repositories>
398         <repository>
399             <id>40_openecomp-release</id>
400             <name>40_openecomp-release</name>
401             <url>https://nexus.onap.org/content/repositories/releases/</url>
402             <releases>
403                 <enabled>true</enabled>
404                 <updatePolicy>daily</updatePolicy>
405             </releases>
406             <snapshots>
407                 <enabled>false</enabled>
408             </snapshots>
409         </repository>
410     </repositories>
411
412     <dependencyManagement>
413         <dependencies>
414             <dependency>
415                 <groupId>com.google.guava</groupId>
416                 <artifactId>guava</artifactId>
417
418                 <exclusions>
419                     <exclusion>
420                         <groupId>com.google.code.findbugs</groupId>
421                         <artifactId>jsr305</artifactId>
422                     </exclusion>
423                 </exclusions>
424             </dependency>
425             <dependency>
426                 <groupId>org.jetbrains.kotlin</groupId>
427                 <artifactId>kotlin-stdlib-jdk8</artifactId>
428                 <version>${kotlin.version}</version>
429             </dependency>
430             <dependency>
431                 <groupId>org.jetbrains.kotlin</groupId>
432                 <artifactId>kotlin-reflect</artifactId>
433                 <version>${kotlin.version}</version>
434             </dependency>
435             <dependency>
436                 <groupId>org.jetbrains.kotlin</groupId>
437                 <artifactId>kotlin-compiler-embeddable</artifactId>
438                 <version>${kotlin.version}</version>
439             </dependency>
440             <dependency>
441                 <groupId>org.jetbrains.kotlin</groupId>
442                 <artifactId>kotlin-script-runtime</artifactId>
443                 <version>${kotlin.version}</version>
444                 <scope>runtime</scope>
445             </dependency>
446             <dependency>
447                 <groupId>org.jetbrains.kotlin</groupId>
448                 <artifactId>kotlin-script-util</artifactId>
449                 <version>${kotlin.version}</version>
450                 <scope>runtime</scope>
451             </dependency>
452             <dependency>
453                 <groupId>org.jetbrains.kotlinx</groupId>
454                 <artifactId>kotlinx-coroutines-core</artifactId>
455                 <version>1.0.0</version>
456             </dependency>
457             <dependency>
458                 <groupId>io.arrow-kt</groupId>
459                 <artifactId>arrow-core</artifactId>
460                 <version>${arrow.version}</version>
461                 <exclusions>
462                     <exclusion>
463                         <groupId>org.jetbrains.kotlin</groupId>
464                         <artifactId>kotlin-stdlib</artifactId>
465                     </exclusion>
466                     <exclusion>
467                         <groupId>org.jetbrains.kotlin</groupId>
468                         <artifactId>kotlin-stdlib-jdk7</artifactId>
469                     </exclusion>
470                 </exclusions>
471             </dependency>
472             <dependency>
473                 <groupId>io.arrow-kt</groupId>
474                 <artifactId>arrow-syntax</artifactId>
475                 <version>${arrow.version}</version>
476             </dependency>
477             <dependency>
478                 <groupId>io.arrow-kt</groupId>
479                 <artifactId>arrow-instances-core</artifactId>
480                 <version>${arrow.version}</version>
481             </dependency>
482             <dependency>
483                 <groupId>io.arrow-kt</groupId>
484                 <artifactId>arrow-instances-data</artifactId>
485                 <version>${arrow.version}</version>
486             </dependency>
487             <dependency>
488                 <groupId>io.arrow-kt</groupId>
489                 <artifactId>arrow-effects</artifactId>
490                 <version>${arrow.version}</version>
491             </dependency>
492             <dependency>
493                 <groupId>io.arrow-kt</groupId>
494                 <artifactId>arrow-effects-instances</artifactId>
495                 <version>${arrow.version}</version>
496             </dependency>
497             <dependency>
498                 <groupId>io.arrow-kt</groupId>
499                 <artifactId>arrow-effects-reactor</artifactId>
500                 <version>${arrow.version}</version>
501             </dependency>
502             <dependency>
503                 <groupId>ch.qos.logback</groupId>
504                 <artifactId>logback-classic</artifactId>
505                 <version>1.3.0-alpha4</version>
506                 <scope>runtime</scope>
507             </dependency>
508             <dependency>
509                 <groupId>org.slf4j</groupId>
510                 <artifactId>slf4j-api</artifactId>
511                 <version>1.8.0-beta1</version>
512             </dependency>
513             <dependency>
514                 <groupId>io.projectreactor</groupId>
515                 <artifactId>reactor-bom</artifactId>
516                 <!-- remember to update netty native bindings versions -->
517                 <version>Californium-SR2</version>
518                 <type>pom</type>
519                 <scope>import</scope>
520             </dependency>
521
522             <!--
523             Disable native extensions (ssl and epoll) on production for now.
524             Might be reintroduced if performance tests prove there is some performance issue.
525             -->
526             <dependency>
527                 <groupId>io.netty</groupId>
528                 <artifactId>netty-tcnative-boringssl-static</artifactId>
529                 <version>2.0.15.Final</version>
530                 <scope>runtime</scope>
531                 <classifier>${os.detected.classifier}</classifier>
532             </dependency>
533             <!--
534             <dependency>
535                 <groupId>io.netty</groupId>
536                 <artifactId>netty-transport-native-epoll</artifactId>
537                 <version>4.1.29.Final</version>
538                 <classifier>${os.detected.classifier}</classifier>
539             </dependency>
540             -->
541             <dependency>
542                 <groupId>com.google.protobuf</groupId>
543                 <artifactId>protobuf-java</artifactId>
544                 <version>${protobuf.version}</version>
545             </dependency>
546             <dependency>
547                 <groupId>com.google.protobuf</groupId>
548                 <artifactId>protobuf-java-util</artifactId>
549                 <version>${protobuf.version}</version>
550             </dependency>
551             <dependency>
552                 <groupId>commons-cli</groupId>
553                 <artifactId>commons-cli</artifactId>
554                 <version>1.4</version>
555             </dependency>
556             <dependency>
557                 <groupId>javax.json</groupId>
558                 <artifactId>javax.json-api</artifactId>
559                 <version>1.1.2</version>
560             </dependency>
561             <dependency>
562                 <groupId>org.glassfish</groupId>
563                 <artifactId>javax.json</artifactId>
564                 <version>1.1.2</version>
565             </dependency>
566             <dependency>
567                 <!-- To override ratpack transitive dependency which creates security vulnerability
568                 This issue will be resolved with ratpack 1.6.0 release -->
569                 <groupId>com.fasterxml.jackson.core</groupId>
570                 <artifactId>jackson-databind</artifactId>
571                 <version>2.9.6</version>
572             </dependency>
573             <dependency>
574                 <groupId>io.ratpack</groupId>
575                 <artifactId>ratpack-core</artifactId>
576                 <version>1.5.4</version>
577             </dependency>
578             <dependency>
579                 <groupId>io.micrometer</groupId>
580                 <artifactId>micrometer-registry-jmx</artifactId>
581                 <version>1.0.5</version>
582             </dependency>
583
584             <!-- Test dependencies -->
585
586             <dependency>
587                 <groupId>org.jetbrains.spek</groupId>
588                 <artifactId>spek-api</artifactId>
589                 <version>${spek.version}</version>
590                 <scope>test</scope>
591             </dependency>
592             <dependency>
593                 <groupId>org.jetbrains.spek</groupId>
594                 <artifactId>spek-junit-platform-engine</artifactId>
595                 <version>${spek.version}</version>
596                 <scope>test</scope>
597             </dependency>
598             <dependency>
599                 <groupId>org.assertj</groupId>
600                 <artifactId>assertj-core</artifactId>
601                 <version>3.9.1</version>
602                 <scope>test</scope>
603             </dependency>
604             <dependency>
605                 <groupId>com.nhaarman.mockitokotlin2</groupId>
606                 <artifactId>mockito-kotlin</artifactId>
607                 <version>2.0.0</version>
608                 <scope>test</scope>
609             </dependency>
610             <dependency>
611                 <groupId>org.jetbrains.kotlin</groupId>
612                 <artifactId>kotlin-test</artifactId>
613                 <version>${kotlin.version}</version>
614                 <scope>test</scope>
615             </dependency>
616             <dependency>
617                 <groupId>io.projectreactor</groupId>
618                 <artifactId>reactor-test</artifactId>
619                 <version>3.1.7.RELEASE</version>
620                 <scope>test</scope>
621             </dependency>
622         </dependencies>
623     </dependencyManagement>
624 </project>