blob: 019202f4398482cde7be245b670f8e930618054f [file] [log] [blame]
Piotr Jaszczyke98fdcc2018-04-26 09:17:09 +02001<?xml version="1.0" encoding="UTF-8"?>
2<!--
3 ~ ============LICENSE_START=======================================================
4 ~ dcaegen2-collectors-veshv
5 ~ ================================================================================
6 ~ Copyright (C) 2018 NOKIA Intellectual Property. All rights reserved.
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"
Piotr Jaszczyka4becf22018-05-29 13:35:11 +020022 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
Piotr Jaszczyke98fdcc2018-04-26 09:17:09 +020023
Piotr Jaszczyka4becf22018-05-29 13:35:11 +020024 <modelVersion>4.0.0</modelVersion>
Piotr Jaszczyke98fdcc2018-04-26 09:17:09 +020025
Piotr Jaszczyka4becf22018-05-29 13:35:11 +020026 <licenses>
27 <license>
28 <name>The Apache Software License, Version 2.0</name>
29 <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
30 </license>
31 </licenses>
Piotr Jaszczyke98fdcc2018-04-26 09:17:09 +020032
Piotr Jaszczyka4becf22018-05-29 13:35:11 +020033 <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>
Piotr Jaszczyke98fdcc2018-04-26 09:17:09 +020039
Piotr Jaszczyka4becf22018-05-29 13:35:11 +020040 <modules>
41 <module>hv-collector-core</module>
42 <module>hv-collector-main</module>
43 <module>hv-collector-ct</module>
44 <module>protobuf</module>
45 <module>hv-collector-utils</module>
46 <module>hv-collector-coverage</module>
47 <module>hv-collector-analysis</module>
48 <module>hv-collector-client-simulator</module>
49 </modules>
Piotr Jaszczyke98fdcc2018-04-26 09:17:09 +020050
Piotr Jaszczyka4becf22018-05-29 13:35:11 +020051 <properties>
52 <kotlin.version>1.2.41</kotlin.version>
53 <maven-compiler-plugin.version>3.7.0</maven-compiler-plugin.version>
54 <build-helper-maven-plugin.version>1.7</build-helper-maven-plugin.version>
Piotr Jaszczyke98fdcc2018-04-26 09:17:09 +020055
Piotr Jaszczyka4becf22018-05-29 13:35:11 +020056 <!-- Protocol buffers -->
57 <protobuf.version>3.5.1</protobuf.version>
58 <protoc-jar-maven-plugin.version>3.5.1.1</protoc-jar-maven-plugin.version>
59 <protobuf-generated-files.directory>${project.build.directory}/generated-sources/proto/main/java/
60 </protobuf-generated-files.directory>
Piotr Jaszczyke98fdcc2018-04-26 09:17:09 +020061
Piotr Jaszczyka4becf22018-05-29 13:35:11 +020062 <!-- Testing and code analysis -->
63 <junit-platform.version>1.2.0-RC1</junit-platform.version>
64 <junit-jupiter.version>5.2.0-RC1</junit-jupiter.version>
65 <spek.version>1.1.5</spek.version>
66 <maven-surefire-plugin.version>2.21.0</maven-surefire-plugin.version>
67 <failIfMissingUnitTests>true</failIfMissingUnitTests>
68 <failIfMissingComponentTests>false</failIfMissingComponentTests>
69 <skipAnalysis>true</skipAnalysis>
fkrzywka4b8cfb32018-06-01 12:45:22 +020070
Piotr Jaszczyka4becf22018-05-29 13:35:11 +020071 <!-- Docker -->
72 <skipDocker>true</skipDocker>
73 <docker-image.name>ves-hv-collector/${project.artifactId}</docker-image.name>
74 <docker-image.namespace>onap</docker-image.namespace>
75 </properties>
Piotr Jaszczyke98fdcc2018-04-26 09:17:09 +020076
77
Piotr Jaszczyka4becf22018-05-29 13:35:11 +020078 <build>
79 <sourceDirectory>${project.basedir}/src/main/kotlin</sourceDirectory>
80 <testSourceDirectory>${project.basedir}/src/test/kotlin</testSourceDirectory>
81 <resources>
82 <resource>
83 <directory>${project.basedir}/src/main/resources</directory>
84 </resource>
85 </resources>
86 <pluginManagement>
87 <plugins>
88 <plugin>
89 <groupId>org.apache.maven.plugins</groupId>
90 <artifactId>maven-resources-plugin</artifactId>
91 <version>3.1.0</version>
92 <configuration>
93 <encoding>UTF-8</encoding>
94 </configuration>
95 </plugin>
96 <plugin>
97 <artifactId>kotlin-maven-plugin</artifactId>
98 <groupId>org.jetbrains.kotlin</groupId>
99 <version>${kotlin.version}</version>
100 <configuration>
101 <jvmTarget>1.8</jvmTarget>
102 </configuration>
103 <executions>
104 <execution>
105 <id>compile</id>
106 <goals>
107 <goal>compile</goal>
108 </goals>
109 <configuration>
110 <sourceDirs>
111 <source>${project.build.sourceDirectory}</source>
112 <source>${project.build.directory}/generated-sources/annotations</source>
113 </sourceDirs>
114 </configuration>
115 </execution>
116 <execution>
117 <id>test-compile</id>
118 <goals>
119 <goal>test-compile</goal>
120 </goals>
121 <configuration>
122 <sourceDirs>
123 <source>${project.build.testSourceDirectory}</source>
124 </sourceDirs>
125 </configuration>
126 </execution>
127 </executions>
128 </plugin>
129 <plugin>
130 <groupId>com.github.os72</groupId>
131 <artifactId>protoc-jar-maven-plugin</artifactId>
132 <version>${protoc-jar-maven-plugin.version}</version>
133 </plugin>
134 <plugin>
135 <groupId>org.codehaus.mojo</groupId>
136 <artifactId>build-helper-maven-plugin</artifactId>
137 <version>${build-helper-maven-plugin.version}</version>
138 <executions>
139 <execution>
140 <id>add-source</id>
141 <phase>generate-sources</phase>
142 <goals>
143 <goal>add-source</goal>
144 </goals>
145 <configuration>
146 <sources>
147 <source>${protobuf-generated-files.directory}</source>
148 </sources>
149 </configuration>
150 </execution>
151 </executions>
152 </plugin>
153 <plugin>
154 <groupId>org.apache.maven.plugins</groupId>
155 <artifactId>maven-compiler-plugin</artifactId>
156 <version>${maven-compiler-plugin.version}</version>
157 <configuration>
158 <source>8</source>
159 <target>8</target>
160 <encoding>UTF-8</encoding>
161 <showWarnings>true</showWarnings>
162 <showDeprecation>true</showDeprecation>
163 <failOnWarning>false</failOnWarning>
164 </configuration>
165 <dependencies>
166 <dependency>
167 <groupId>org.ow2.asm</groupId>
168 <artifactId>asm</artifactId>
169 <version>6.1.1</version> <!-- Use newer version of ASM -->
170 </dependency>
171 </dependencies>
172 </plugin>
173 <!--
174 Due to a memory leak in Surefire 2.20 and issues running on Java 9, the junit-platform-surefire-provider
175 currently only works with Surefire 2.19.1.
176 For updates see https://junit.org/junit5/docs/current/user-guide/#running-tests-build-maven
177 -->
178 <plugin>
179 <artifactId>maven-surefire-plugin</artifactId>
180 <groupId>org.apache.maven.plugins</groupId>
181 <version>${maven-surefire-plugin.version}</version>
182 <executions>
183 <execution>
184 <id>default-test</id>
185 <goals>
186 <goal>test</goal>
187 </goals>
188 <configuration>
189 <failIfNoTests>${failIfMissingUnitTests}</failIfNoTests>
190 <forkCount>1</forkCount>
191 <includes>
192 <include>**/*Test.*</include>
193 </includes>
194 <!--<argLine>&#45;&#45;add-modules org.junit.jupiter.api,reactor.test,assertj.core</argLine>-->
195 </configuration>
196 </execution>
197 <execution>
198 <id>component-tests</id>
199 <phase>verify</phase>
200 <goals>
201 <goal>test</goal>
202 </goals>
203 <configuration>
204 <failIfNoTests>${failIfMissingComponentTests}</failIfNoTests>
205 <forkCount>1</forkCount>
206 <includes>
207 <include>**/*Specification.*</include>
208 </includes>
209 </configuration>
210 </execution>
211 </executions>
212 <dependencies>
213 <dependency>
214 <groupId>org.apache.commons</groupId>
215 <artifactId>commons-lang3</artifactId>
216 <version>3.7</version>
217 </dependency>
218 <dependency>
219 <groupId>org.junit.platform</groupId>
220 <artifactId>junit-platform-surefire-provider</artifactId>
221 <version>${junit-platform.version}</version>
222 <scope>runtime</scope>
223 </dependency>
224 <dependency>
225 <groupId>org.jetbrains.spek</groupId>
226 <artifactId>spek-junit-platform-engine</artifactId>
227 <version>${spek.version}</version>
228 <scope>runtime</scope>
229 </dependency>
230 </dependencies>
231 </plugin>
232 <plugin>
233 <groupId>org.apache.maven.plugins</groupId>
234 <artifactId>maven-dependency-plugin</artifactId>
235 <version>3.1.1</version>
236 </plugin>
237 </plugins>
238 </pluginManagement>
239 <extensions>
240 <extension>
241 <groupId>kr.motd.maven</groupId>
242 <artifactId>os-maven-plugin</artifactId>
243 <version>1.6.0</version>
244 </extension>
245 </extensions>
246 </build>
Piotr Jaszczyke98fdcc2018-04-26 09:17:09 +0200247
Piotr Jaszczyka4becf22018-05-29 13:35:11 +0200248 <profiles>
249 <profile>
250 <id>analysis</id>
251 <activation>
Piotr Jaszczyke98fdcc2018-04-26 09:17:09 +0200252 <activeByDefault>true</activeByDefault>
253 </activation>
254 <build>
Piotr Jaszczyka4becf22018-05-29 13:35:11 +0200255 <plugins>
256 <plugin>
257 <groupId>org.jacoco</groupId>
258 <artifactId>jacoco-maven-plugin</artifactId>
259 <version>0.8.1</version>
260 <executions>
261 <execution>
262 <id>default-prepare-agent</id>
263 <goals>
264 <goal>prepare-agent</goal>
265 </goals>
266 </execution>
267 <execution>
268 <id>default-prepare-agent-integration</id>
269 <goals>
270 <goal>prepare-agent-integration</goal>
271 </goals>
272 </execution>
273 </executions>
274 </plugin>
275
276 <plugin>
277 <groupId>org.apache.maven.plugins</groupId>
278 <artifactId>maven-antrun-plugin</artifactId>
279 <version>1.8</version>
280 <executions>
281 <execution>
282 <!-- This can be run separately with mvn antrun:run@detekt -->
283 <id>detekt</id>
284 <phase>verify</phase>
285 <configuration>
286 <target name="detekt" unless="${skipAnalysis}">
287 <java taskname="detekt" dir="${basedir}"
288 fork="true"
289 failonerror="true"
290 classname="io.gitlab.arturbosch.detekt.cli.Main"
291 classpathref="maven.plugin.classpath">
292 <arg value="--input"/>
293 <arg value="${basedir}/src/main/kotlin"/>
294 <arg value="--config-resource"/>
295 <arg value="onap-detekt-config.yml"/>
296 <arg value="--filters"/>
297 <arg value=".*/target/.*,.*/resources/.*"/>
298 <arg value="--output"/>
299 <arg value="${basedir}/target/reports"/>
300 <arg value="--output-name"/>
301 <arg value="detekt-report"/>
302 <arg value="--baseline"/>
303 <arg value="${basedir}/target/reports/baseline.xml"/>
304 </java>
305 </target>
306 </configuration>
307 <goals>
308 <goal>run</goal>
309 </goals>
310 </execution>
311 </executions>
312 <dependencies>
313 <dependency>
314 <groupId>io.gitlab.arturbosch.detekt</groupId>
315 <artifactId>detekt-cli</artifactId>
316 <version>1.0.0.RC7</version>
317 </dependency>
318 <dependency>
319 <groupId>${project.groupId}</groupId>
320 <artifactId>hv-collector-analysis</artifactId>
321 <version>${project.version}</version>
322 </dependency>
323 </dependencies>
324 </plugin>
325 </plugins>
326 </build>
327 </profile>
328 <profile>
329 <id>docker</id>
330 <activation>
331 <property>
332 <name>!skipDocker</name>
333 </property>
334 </activation>
335 <properties>
336 <os.detected.name>linux</os.detected.name>
337 <os.detected.arch>x86_64</os.detected.arch>
338 <os.detected.classifier>${os.detected.name}-${os.detected.arch}</os.detected.classifier>
339 </properties>
340 <build>
341 <pluginManagement>
342 <plugins>
343 <plugin>
344 <groupId>io.fabric8</groupId>
345 <artifactId>docker-maven-plugin</artifactId>
346 <version>0.26.0</version>
347 <executions>
348 <execution>
349 <id>build-docker-image</id>
350 <phase>pre-integration-test</phase>
351 <goals>
352 <goal>build</goal>
353 </goals>
354 </execution>
355 </executions>
356 <configuration>
357 <verbose>true</verbose>
358 <imagePullPolicy>IfNotPresent</imagePullPolicy>
359 <images>
360 <image>
361 <alias>${project.artifactId}</alias>
362 <name>${docker-image.namespace}/${docker-image.name}</name>
363 <build>
364 <dockerFileDir>${project.basedir}</dockerFileDir>
365 <tags>
366 <tag>${project.version}</tag>
367 </tags>
368 </build>
369 </image>
370 </images>
371 </configuration>
372 </plugin>
373
374 </plugins>
375 </pluginManagement>
376 </build>
377 </profile>
378 </profiles>
379
380 <reporting>
Piotr Jaszczyke98fdcc2018-04-26 09:17:09 +0200381 <plugins>
Piotr Jaszczyka4becf22018-05-29 13:35:11 +0200382 <plugin>
383 <groupId>org.jacoco</groupId>
384 <artifactId>jacoco-maven-plugin</artifactId>
385 <reportSets>
386 <reportSet>
387 <reports>
388 <report>report</report>
389 </reports>
390 </reportSet>
391 </reportSets>
392 </plugin>
Piotr Jaszczyke98fdcc2018-04-26 09:17:09 +0200393 </plugins>
Piotr Jaszczyka4becf22018-05-29 13:35:11 +0200394 </reporting>
Piotr Jaszczyke98fdcc2018-04-26 09:17:09 +0200395
Piotr Jaszczyka4becf22018-05-29 13:35:11 +0200396 <pluginRepositories>
397 <pluginRepository>
398 <id>arturbosch-code-analysis</id>
399 <name>arturbosch-code-analysis (for detekt)</name>
400 <url>https://dl.bintray.com/arturbosch/code-analysis/</url>
401 <layout>default</layout>
402 <releases>
403 <enabled>true</enabled>
404 <updatePolicy>never</updatePolicy>
405 </releases>
406 <snapshots>
407 <enabled>false</enabled>
408 <updatePolicy>never</updatePolicy>
409 </snapshots>
410 </pluginRepository>
411 </pluginRepositories>
Piotr Jaszczyke98fdcc2018-04-26 09:17:09 +0200412
Piotr Jaszczyka4becf22018-05-29 13:35:11 +0200413 <dependencyManagement>
414 <dependencies>
415 <dependency>
416 <groupId>com.google.guava</groupId>
417 <artifactId>guava</artifactId>
418 <version>25.0-jre</version>
419 <exclusions>
420 <exclusion>
421 <groupId>com.google.code.findbugs</groupId>
422 <artifactId>jsr305</artifactId>
423 </exclusion>
424 </exclusions>
425 </dependency>
426 <dependency>
427 <groupId>org.jetbrains.kotlin</groupId>
428 <artifactId>kotlin-stdlib-jdk8</artifactId>
429 <version>${kotlin.version}</version>
430 </dependency>
431 <dependency>
432 <groupId>org.jetbrains.kotlin</groupId>
433 <artifactId>kotlin-reflect</artifactId>
434 <version>${kotlin.version}</version>
435 </dependency>
436 <dependency>
437 <groupId>ch.qos.logback</groupId>
438 <artifactId>logback-classic</artifactId>
439 <version>1.3.0-alpha4</version>
440 <scope>runtime</scope>
441 </dependency>
442 <dependency>
443 <groupId>org.slf4j</groupId>
444 <artifactId>slf4j-api</artifactId>
445 <version>1.8.0-beta1</version>
446 </dependency>
447 <dependency>
448 <groupId>io.projectreactor</groupId>
449 <artifactId>reactor-bom</artifactId>
450 <version>Bismuth-SR8</version>
451 <type>pom</type>
452 <scope>import</scope>
453 </dependency>
454 <dependency>
455 <groupId>io.netty</groupId>
456 <artifactId>netty-tcnative-boringssl-static</artifactId>
457 <version>2.0.8.Final</version>
458 <classifier>${os.detected.classifier}</classifier>
459 </dependency>
460 <dependency>
461 <groupId>com.google.protobuf</groupId>
462 <artifactId>protobuf-java</artifactId>
463 <version>${protobuf.version}</version>
464 </dependency>
465 <dependency>
466 <groupId>commons-cli</groupId>
467 <artifactId>commons-cli</artifactId>
468 <version>1.4</version>
469 </dependency>
470 <dependency>
471 <groupId>javax.json</groupId>
472 <artifactId>javax.json-api</artifactId>
473 <version>1.1.2</version>
474 </dependency>
475 <dependency>
476 <groupId>org.glassfish</groupId>
477 <artifactId>javax.json</artifactId>
478 <version>1.1.2</version>
479 </dependency>
Piotr Jaszczyke98fdcc2018-04-26 09:17:09 +0200480
Piotr Jaszczyka4becf22018-05-29 13:35:11 +0200481 <!-- Test dependencies -->
Piotr Jaszczyke98fdcc2018-04-26 09:17:09 +0200482
Piotr Jaszczyka4becf22018-05-29 13:35:11 +0200483 <dependency>
484 <groupId>org.jetbrains.spek</groupId>
485 <artifactId>spek-api</artifactId>
486 <version>${spek.version}</version>
487 <scope>test</scope>
488 </dependency>
489 <dependency>
490 <groupId>org.jetbrains.spek</groupId>
491 <artifactId>spek-junit-platform-engine</artifactId>
492 <version>${spek.version}</version>
493 <scope>test</scope>
494 </dependency>
Piotr Jaszczyke98fdcc2018-04-26 09:17:09 +0200495
Piotr Jaszczyka4becf22018-05-29 13:35:11 +0200496 <dependency>
497 <groupId>org.assertj</groupId>
498 <artifactId>assertj-core</artifactId>
499 <version>3.9.1</version>
500 <scope>test</scope>
501 </dependency>
502 <dependency>
503 <groupId>com.nhaarman</groupId>
504 <artifactId>mockito-kotlin</artifactId>
505 <version>1.5.0</version>
506 <scope>test</scope>
507 <exclusions>
508 <exclusion>
509 <groupId>org.mockito</groupId>
510 <artifactId>mockito-core</artifactId>
511 </exclusion>
512 </exclusions>
513 </dependency>
514 <dependency>
515 <groupId>org.mockito</groupId>
516 <artifactId>mockito-core</artifactId>
517 <version>2.18.3</version>
518 <scope>test</scope>
519 </dependency>
520 <dependency>
521 <groupId>org.jetbrains.kotlin</groupId>
522 <artifactId>kotlin-test</artifactId>
523 <version>${kotlin.version}</version>
524 <scope>test</scope>
525 </dependency>
526 <dependency>
527 <groupId>io.projectreactor</groupId>
528 <artifactId>reactor-test</artifactId>
529 <version>3.1.7.RELEASE</version>
530 <scope>test</scope>
531 </dependency>
532 </dependencies>
533 </dependencyManagement>
Piotr Jaszczyke98fdcc2018-04-26 09:17:09 +0200534</project>
535
536