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