blob: 7feaa6b9faa8d2b79b7f66a42c11909933bd1dd3 [file] [log] [blame]
elinuxhenrikd661dbc2018-08-17 12:34:58 +02001<?xml version="1.0" encoding="UTF-8"?>
2<!--
3 ~ ============LICENSE_START=======================================================
4 ~ Datafile Collector Service
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"
22 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
23 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
24
25 <modelVersion>4.0.0</modelVersion>
26 <parent>
27 <groupId>org.onap.oparent</groupId>
28 <artifactId>oparent</artifactId>
29 <version>0.1.1</version>
30 <relativePath/>
31 </parent>
32 <groupId>org.onap.dcaegen2.collectors</groupId>
33 <artifactId>datafile</artifactId>
34 <version>1.0.0-SNAPSHOT</version>
35 <name>dcaegen2-collectors-datafile</name>
36 <description>Datafile Collector Service</description>
37 <packaging>pom</packaging>
38
39 <licenses>
40 <license>
41 <name>The Apache Software License, Version 2.0</name>
42 <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
43 </license>
44 </licenses>
45
46
47 <properties>
48 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
49 <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
50
51 <!-- JAVA VERSION-->
52 <java.version>8</java.version>
53 <compiler.plugin.version>3.7.0</compiler.plugin.version>
54 <tomcat.version>8.5.28</tomcat.version>
55 <docker.maven.version>1.0.0</docker.maven.version>
56 <resource.maven.plugin.version>3.1.0</resource.maven.plugin.version>
57 <!-- DEVELOPMENT SETTINGS -->
58 <immutable.version>2.5.6</immutable.version>
59
60 <!-- LOGGING SETTINGS -->
61 <slf4j.version>1.7.25</slf4j.version>
62 <logback.version>1.2.3</logback.version>
63
64 <!--TEST SETTINGS -->
65 <surefire.redirectTestOutputToFile>true</surefire.redirectTestOutputToFile>
66 <junit.version>4.12</junit.version>
67 <junit.jupiter.version>5.1.0</junit.jupiter.version>
68 <junit.vintage.version>5.1.0</junit.vintage.version>
69 <junit.platform.version>1.1.0</junit.platform.version>
70
71 <!--PLUGIN SETTINGS -->
72 <nexusproxy>https://nexus.onap.org</nexusproxy>
73 <snapshots.path>content/repositories/snapshots/</snapshots.path>
74 <releases.path>content/repositories/releases/</releases.path>
75 <site.path>
76 content/sites/site/org/onap/dcaegen2/collectors/datafile/${project.artifactId}/${project.version}
77 </site.path>
78 </properties>
79
80 <pluginRepositories>
81
82
83 <pluginRepository>
84 <id>40_openecomp-release</id>
85 <name>40_openecomp-release</name>
86 <url>https://nexus.onap.org/content/repositories/releases/</url>
87 <releases>
88 <enabled>true</enabled>
89 <updatePolicy>daily</updatePolicy>
90 </releases>
91 <snapshots>
92 <enabled>false</enabled>
93 </snapshots>
94 </pluginRepository>
95
96 <!-- Black Duck plugin dependencies -->
97 <pluginRepository>
98 <id>JCenter</id>
99 <name>JCenter Repository</name>
100 <url>http://jcenter.bintray.com</url>
101 </pluginRepository>
102 <pluginRepository>
103 <id>Restlet</id>
104 <name>Restlet Repository</name>
105 <url>http://maven.restlet.com</url>
106 </pluginRepository>
107 </pluginRepositories>
108
109
110 <repositories>
111 <repository>
112 <id>external-repository</id>
113 <url>https://oss.sonatype.org/content/repositories</url>
114 </repository>
115 <repository>
116 <id>40_openecomp-release</id>
117 <name>40_openecomp-release</name>
118 <url>https://nexus.onap.org/content/repositories/releases/</url>
119 <releases>
120 <enabled>true</enabled>
121 <updatePolicy>daily</updatePolicy>
122 </releases>
123 <snapshots>
124 <enabled>false</enabled>
125 </snapshots>
126 </repository>
127 </repositories>
128
129 <build>
130
131 <extensions>
132 <extension>
133 <groupId>org.apache.maven.wagon</groupId>
134 <artifactId>wagon-webdav-jackrabbit</artifactId>
135 <version>3.0.0</version>
136 </extension>
137 </extensions>
138
139 <pluginManagement>
140 <plugins>
141
142 <!-- COMPILER PLUGIN -->
143 <plugin>
144 <groupId>org.apache.maven.plugins</groupId>
145 <artifactId>maven-compiler-plugin</artifactId>
146 <version>${compiler.plugin.version}</version>
147 <configuration>
148 <source>${java.version}</source>
149 <target>${java.version}</target>
150 <showWarnings>true</showWarnings>
151 <showDeprecation>true</showDeprecation>
152 </configuration>
153 </plugin>
154
155 <!-- MAVEN SOURCE PLUGIN -->
156 <plugin>
157 <groupId>org.apache.maven.plugins</groupId>
158 <artifactId>maven-source-plugin</artifactId>
159 <version>3.0.1</version>
160 <configuration>
161 <excludeResources>true</excludeResources>
162 </configuration>
163 <executions>
164 <execution>
165 <id>attach-sources</id>
166 <phase>verify</phase>
167 <goals>
168 <goal>jar-no-fork</goal>
169 </goals>
170 </execution>
171 </executions>
172 </plugin>
173
174 <!-- MAVEN JAVADOC PLUGIN -->
175 <plugin>
176 <groupId>org.apache.maven.plugins</groupId>
177 <artifactId>maven-javadoc-plugin</artifactId>
178 <version>3.0.0</version>
179 <configuration>
180 <!-- minimize console output messages -->
181 <quiet>true</quiet>
182 <verbose>false</verbose>
183 <useStandardDocletOptions>false</useStandardDocletOptions>
184 </configuration>
185 <executions>
186 <execution>
187 <id>aggregate</id>
188 <phase>site</phase>
189 <goals>
190 <goal>aggregate</goal>
191 </goals>
192 </execution>
193 <execution>
194 <id>attach-javadoc</id>
195 <goals>
196 <goal>jar</goal>
197 </goals>
198 </execution>
199 </executions>
200 </plugin>
201
202 <!-- MAVEN BUNDLE PLUGIN -->
203 <plugin>
204 <groupId>org.apache.felix</groupId>
205 <artifactId>maven-bundle-plugin</artifactId>
206 <version>3.5.0</version>
207 <extensions>true</extensions>
208 <configuration>
209 <instructions>
210 <Embed-Dependency>*;inline=false;scope=compile</Embed-Dependency>
211 <Embed-Transitive>true</Embed-Transitive>
212 <Embed-Directory>lib</Embed-Directory>
213 </instructions>
214 </configuration>
215 <executions>
216 <execution>
217 <id>Bundling Datafile Jar</id>
218 <phase>package</phase>
219 <goals>
220 <goal>bundle</goal>
221 </goals>
222 </execution>
223 </executions>
224 </plugin>
225
226 <!-- maven-surefire-plugin which is used during the test phase of build lifecycle -->
227 <plugin>
228 <groupId>org.apache.maven.plugins</groupId>
229 <artifactId>maven-surefire-plugin</artifactId>
230 <version>2.19.1</version>
231 <configuration>
232 <argLine>-Xmx2048m -Djava.awt.headless=true -XX:+UseConcMarkSweepGC
233 -XX:OnOutOfMemoryError="kill -9 %p" -XX:+HeapDumpOnOutOfMemoryError
234 </argLine>
235 <redirectTestOutputToFile>${surefire.redirectTestOutputToFile}
236 </redirectTestOutputToFile>
237 <parallel>methods</parallel>
238 <threadCount>8</threadCount>
239 <forkCount>8</forkCount>
240 <reuseForks>true</reuseForks>
241 <reportFormat>xml</reportFormat>
242 <trimStackTrace>false</trimStackTrace>
243 <systemPropertyVariables>
244 <java.io.tmpdir>${project.build.directory}</java.io.tmpdir>
245 <logback.configurationFile>
246 ${basedir}/src/test/resources/logback-test.xml
247 </logback.configurationFile>
248 <HADOOP_HOME>${project.build.directory}</HADOOP_HOME>
249 </systemPropertyVariables>
250 <includes>
251 <include>**/*Test.java</include>
252 </includes>
253 <excludes>
254 <exclude>**/*IT.java</exclude>
255 </excludes>
256 <!-- Sets the VM argument line used when unit tests are run. -->
257 <argLine>${argLine}</argLine>
258 </configuration>
259 <dependencies>
260 <dependency>
261 <groupId>org.junit.platform</groupId>
262 <artifactId>junit-platform-surefire-provider</artifactId>
263 <version>${junit.platform.version}</version>
264 </dependency>
265 </dependencies>
266 </plugin>
267
268 <!-- FIND BUGS (STATIC CODE ANALYSIS) PLUGIN -->
269 <plugin>
270 <groupId>org.codehaus.mojo</groupId>
271 <artifactId>findbugs-maven-plugin</artifactId>
272 <version>${findbugs.plugin.version}</version>
273 <configuration>
274 <effort>Max</effort>
275 <threshold>Low</threshold>
276 <xmlOutput>true</xmlOutput>
277 <!-- BUILD FAIL ON FINDBUGS ERRORS -->
278 <failOnError>true</failOnError>
279 <excludeFilterFile>${project.basedir}/findbugs-exclude.xml</excludeFilterFile>
280 <outputDirectory>${project.reporting.outputDirectory}/findbugs</outputDirectory>
281 <findbugsXmlOutputDirectory>${project.reporting.outputDirectory}/findbugs
282 </findbugsXmlOutputDirectory>
283 </configuration>
284 <executions>
285 <execution>
286 <id>analyze-compile</id>
287 <phase>compile</phase>
288 <goals>
289 <goal>check</goal>
290 </goals>
291 </execution>
292 </executions>
293 </plugin>
294
295 <plugin>
296 <groupId>org.apache.maven.plugins</groupId>
297 <artifactId>maven-jar-plugin</artifactId>
298 <version>3.0.2</version>
299 <configuration>
300 <archive>
301 <manifest>
302 <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
303 </manifest>
304 <manifestEntries>
305 <Implementation-Build-Version>${project.version}</Implementation-Build-Version>
306 </manifestEntries>
307 </archive>
308 </configuration>
309 </plugin>
310
311 <plugin>
312 <groupId>org.apache.maven.plugins</groupId>
313 <artifactId>maven-site-plugin</artifactId>
314 <version>3.6</version>
315 </plugin>
316
317 <plugin>
318 <groupId>org.apache.maven.plugins</groupId>
319 <artifactId>maven-jxr-plugin</artifactId>
320 <version>2.5</version>
321 </plugin>
322
323 <plugin>
324 <groupId>org.apache.maven.plugins</groupId>
325 <artifactId>maven-project-info-reports-plugin</artifactId>
326 <version>2.9</version>
327 <configuration>
328 <dependencyDetailsEnabled>false</dependencyDetailsEnabled>
329 <dependencyLocationsEnabled>false</dependencyLocationsEnabled>
330 </configuration>
331 </plugin>
332
333 <plugin>
334 <groupId>org.apache.maven.plugins</groupId>
335 <artifactId>maven-surefire-report-plugin</artifactId>
336 <version>2.21.0</version>
337 </plugin>
338
339 <plugin>
340 <groupId>com.spotify</groupId>
341 <artifactId>docker-maven-plugin</artifactId>
342 <version>${docker.maven.version}</version>
343 <configuration>
344 <skipDockerBuild>true</skipDockerBuild>
345 </configuration>
346 </plugin>
347 <plugin>
348 <groupId>org.apache.maven.plugins</groupId>
349 <artifactId>maven-resources-plugin</artifactId>
350 <version>${resource.maven.plugin.version}</version>
351 </plugin>
352 <plugin>
353 <groupId>org.jacoco</groupId>
354 <artifactId>jacoco-maven-plugin</artifactId>
355 <configuration>
356 <excludes>
357 <exclude>**/Immutable*</exclude>
358 <exclude>**/GsonAdapters*</exclude>
359 <exclude>**/*ForUnitTest*</exclude>
360 </excludes>
361 </configuration>
362 <executions>
363 <execution>
364 <id>default-prepare-agent</id>
365 <goals>
366 <goal>prepare-agent</goal>
367 </goals>
368 </execution>
369 <execution>
370 <id>report</id>
371 <phase>prepare-package</phase>
372 <goals>
373 <goal>report</goal>
374 </goals>
375 </execution>
376 <execution>
377 <id>check</id>
378 <goals>
379 <goal>check</goal>
380 </goals>
381 <configuration>
382 <excludes>
383 <exclude>**/Immutable*</exclude>
384 <exclude>**/GsonAdapters*</exclude>
385 <exclude>**/*ForUnitTest*</exclude>
386 <exclude>**/AAIConsumer*</exclude>
387 </excludes>
388 <rules>
389 <rule>
390 <element>CLASS</element>
391 <limits>
392 <limit>
393 <value>COVEREDRATIO</value>
394 <!--<minimum>0.70</minimum>-->
395 </limit>
396 <limit>
397 <counter>BRANCH</counter>
398 <value>COVEREDRATIO</value>
399 <!--<minimum>0.70</minimum>-->
400 </limit>
401 </limits>
402 </rule>
403 </rules>
404 </configuration>
405 </execution>
406 </executions>
407 </plugin>
408 <plugin>
409 <groupId>org.apache.maven.plugins</groupId>
410 <artifactId>maven-deploy-plugin</artifactId>
411 <configuration>
412 <skip>true</skip>
413 </configuration>
414 </plugin>
415 </plugins>
416 </pluginManagement>
417 <plugins>
418 <plugin>
419 <groupId>org.apache.maven.plugins</groupId>
420 <artifactId>maven-compiler-plugin</artifactId>
421 </plugin>
422
423 <plugin>
424 <groupId>org.apache.maven.plugins</groupId>
425 <artifactId>maven-jar-plugin</artifactId>
426 </plugin>
427
428 <plugin>
429 <groupId>org.apache.maven.plugins</groupId>
430 <artifactId>maven-surefire-plugin</artifactId>
431 </plugin>
432
433 <plugin>
434 <groupId>org.apache.maven.plugins</groupId>
435 <artifactId>maven-failsafe-plugin</artifactId>
436 </plugin>
437
438 <plugin>
439 <groupId>org.apache.maven.plugins</groupId>
440 <artifactId>maven-source-plugin</artifactId>
441 </plugin>
442
443 <plugin>
444 <groupId>org.apache.maven.plugins</groupId>
445 <artifactId>maven-javadoc-plugin</artifactId>
446 </plugin>
447
448 <plugin>
449 <groupId>org.jacoco</groupId>
450 <artifactId>jacoco-maven-plugin</artifactId>
451 </plugin>
452 </plugins>
453 </build>
454
455 <reporting>
456 <plugins>
457
458 <plugin>
459 <groupId>org.apache.maven.plugins</groupId>
460 <artifactId>maven-site-plugin</artifactId>
461 </plugin>
462
463 <plugin>
464 <groupId>org.apache.maven.plugins</groupId>
465 <artifactId>maven-jxr-plugin</artifactId>
466 </plugin>
467
468 <plugin>
469 <groupId>org.apache.maven.plugins</groupId>
470 <artifactId>maven-project-info-reports-plugin</artifactId>
471 </plugin>
472
473 <plugin>
474 <groupId>org.apache.maven.plugins</groupId>
475 <artifactId>maven-surefire-report-plugin</artifactId>
476 </plugin>
477
478 <plugin>
479 <groupId>org.apache.maven.plugins</groupId>
480 <artifactId>maven-javadoc-plugin</artifactId>
481 <version>2.10.4</version>
482 <configuration>
483 <failOnError>false</failOnError>
484 <doclet>org.umlgraph.doclet.UmlGraphDoc</doclet>
485 <docletArtifact>
486 <groupId>org.umlgraph</groupId>
487 <artifactId>umlgraph</artifactId>
488 <version>5.6</version>
489 </docletArtifact>
490 <additionalparam>-views</additionalparam>
491 <useStandardDocletOptions>true</useStandardDocletOptions>
492 </configuration>
493 </plugin>
494 </plugins>
495 </reporting>
496
497 <dependencyManagement>
498 <dependencies>
499
500 <!-- DEVELOPMENT TOOLS DEPENDENCIES -->
501 <dependency>
502 <groupId>org.immutables</groupId>
503 <artifactId>value</artifactId>
504 <version>${immutable.version}</version>
505 <scope>provided</scope>
506 </dependency>
507 <dependency>
508 <groupId>org.immutables</groupId>
509 <artifactId>gson</artifactId>
510 <version>${immutable.version}</version>
511 </dependency>
512 <dependency>
513 <groupId>io.projectreactor</groupId>
514 <artifactId>reactor-bom</artifactId>
515 <version>Bismuth-RELEASE</version>
516 <type>pom</type>
517 <scope>import</scope>
518 </dependency>
519 <dependency>
520 <groupId>com.spotify</groupId>
521 <artifactId>docker-maven-plugin</artifactId>
522 <version>${docker.maven.version}</version>
523 </dependency>
524 <dependency>
525 <groupId>org.apache.maven.plugins</groupId>
526 <artifactId>maven-resources-plugin</artifactId>
527 <version>${resource.maven.plugin.version}</version>
528 </dependency>
529 <dependency>
530 <groupId>org.bouncycastle</groupId>
531 <artifactId>bcprov-jdk15on</artifactId>
532 <version>1.59</version>
533 </dependency>
534 <dependency>
535 <groupId>org.bouncycastle</groupId>
536 <artifactId>bcpkix-jdk15on</artifactId>
537 <version>1.59</version>
538 </dependency>
539 <dependency>
540 <groupId>org.codehaus.plexus</groupId>
541 <artifactId>plexus-utils</artifactId>
542 <version>3.1.0</version>
543 </dependency>
544 <dependency>
545 <groupId>org.apache.httpcomponents</groupId>
546 <artifactId>httpclient</artifactId>
547 <version>4.5.4</version>
548 </dependency>
549 <dependency>
550 <groupId>org.apache.commons</groupId>
551 <artifactId>commons-lang3</artifactId>
552 <version>3.6</version>
553 </dependency>
554 <dependency>
555 <groupId>org.springframework</groupId>
556 <artifactId>spring-beans</artifactId>
557 <version>5.0.5.RELEASE</version>
558 </dependency>
559 <dependency>
560 <groupId>org.springframework</groupId>
561 <artifactId>spring-context</artifactId>
562 <version>5.0.5.RELEASE</version>
563 </dependency>
564 <dependency>
565 <groupId>org.apache.tomcat.embed</groupId>
566 <artifactId>tomcat-embed-core</artifactId>
567 <version>${tomcat.version}</version>
568 </dependency>
569 <dependency>
570 <groupId>org.apache.tomcat.embed</groupId>
571 <artifactId>tomcat-embed-el</artifactId>
572 <version>${tomcat.version}</version>
573 </dependency>
574 <dependency>
575 <groupId>org.apache.tomcat.embed</groupId>
576 <artifactId>tomcat-embed-websocket</artifactId>
577 <version>${tomcat.version}</version>
578 </dependency>
579
580 <!-- LOGGING dependencies> -->
581 <dependency>
582 <groupId>ch.qos.logback</groupId>
583 <artifactId>logback-classic</artifactId>
584 <version>${logback.version}</version>
585 <scope>provided</scope>
586 </dependency>
587 <dependency>
588 <groupId>org.slf4j</groupId>
589 <artifactId>jul-to-slf4j</artifactId>
590 <version>1.7.25</version>
591 </dependency>
592 <dependency>
593 <groupId>org.slf4j</groupId>
594 <artifactId>log4j-over-slf4j</artifactId>
595 <version>1.7.25</version>
596 </dependency>
597
598 <!-- TESTING TOOLS DEPENDENCIES -->
599 <dependency>
600 <groupId>org.junit.jupiter</groupId>
601 <artifactId>junit-jupiter-api</artifactId>
602 <version>${junit.jupiter.version}</version>
603 <scope>test</scope>
604 </dependency>
605 <dependency>
606 <groupId>junit</groupId>
607 <artifactId>junit</artifactId>
608 <version>${junit.version}</version>
609 <scope>test</scope>
610 </dependency>
611 <dependency>
612 <groupId>org.junit.jupiter</groupId>
613 <artifactId>junit-jupiter-engine</artifactId>
614 <version>${junit.jupiter.version}</version>
615 <scope>test</scope>
616 </dependency>
617 <dependency>
618 <groupId>org.junit.vintage</groupId>
619 <artifactId>junit-vintage-engine</artifactId>
620 <version>${junit.vintage.version}</version>
621 <scope>test</scope>
622 </dependency>
623 <dependency>
624 <groupId>org.springframework</groupId>
625 <artifactId>spring-test</artifactId>
626 <version>5.0.4.RELEASE</version>
627 <scope>test</scope>
628 </dependency>
629 <dependency>
630 <groupId>org.mockito</groupId>
631 <artifactId>mockito-core</artifactId>
632 <version>2.16.0</version>
633 <scope>test</scope>
634 </dependency>
635 <dependency>
636 <groupId>org.testng</groupId>
637 <artifactId>testng</artifactId>
638 <version>6.14.2</version>
639 <scope>test</scope>
640 </dependency>
641 <dependency>
642 <groupId>org.glassfish.jersey.connectors</groupId>
643 <artifactId>jersey-apache-connector</artifactId>
644 <version>2.25.1</version>
645 <scope>test</scope>
646 </dependency>
647 <dependency>
648 <groupId>org.springframework.boot</groupId>
649 <artifactId>spring-boot-starter-test</artifactId>
650 <version>2.0.1.RELEASE</version>
651 <scope>test</scope>
652 </dependency>
653
654 <!--REQUIRED TO GENERATE DOCUMENTATION -->
655 <dependency>
656 <groupId>io.springfox</groupId>
657 <artifactId>springfox-swagger2</artifactId>
658 <version>2.8.0</version>
659 </dependency>
660 <dependency>
661 <groupId>io.springfox</groupId>
662 <artifactId>springfox-swagger-ui</artifactId>
663 <version>2.8.0</version>
664 </dependency>
665
666 <!-- ONLY REQUIRED TO RUN TESTS IN AN IDE THAT BUNDLES AN OLDER VERSION -->
667 <dependency>
668 <groupId>org.junit.platform</groupId>
669 <artifactId>junit-platform-launcher</artifactId>
670 <version>${junit.platform.version}</version>
671 <scope>test</scope>
672 </dependency>
673
674 </dependencies>
675 </dependencyManagement>
676
677 <modules>
678 <module>datafile-app-server</module>
679 <module>datafile-aai-client</module>
680 <module>datafile-dmaap-client</module>
681 <module>datafile-commons</module>
682 </modules>
683</project>
684