1 <?xml version="1.0" encoding="UTF-8"?>
3 ~ ================================================================================
4 ~ Copyright (c) 2018 AT&T Intellectual Property. All rights reserved.
5 ~ ================================================================================
6 ~ Licensed under the Apache License, Version 2.0 (the "License");
7 ~ you may not use this file except in compliance with the License.
8 ~ You may obtain a copy of the License at
10 ~ http://www.apache.org/licenses/LICENSE-2.0
12 ~ Unless required by applicable law or agreed to in writing, software
13 ~ distributed under the License is distributed on an "AS IS" BASIS,
14 ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 ~ See the License for the specific language governing permissions and
16 ~ limitations under the License.
17 ~ ============LICENSE_END=========================================================
21 <project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
22 xmlns="http://maven.apache.org/POM/4.0.0"
23 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
25 <modelVersion>4.0.0</modelVersion>
28 <groupId>org.onap.dcaegen2.analytics.tca-gen2</groupId>
29 <artifactId>tca-gen2-parent</artifactId>
30 <version>3.0.0-SNAPSHOT</version>
33 <artifactId>dcae-analytics</artifactId>
34 <version>3.0.0-SNAPSHOT</version>
35 <packaging>pom</packaging>
37 <name>DCAE Analytics Parent</name>
38 <description>Parent project for all DCAE Analytics Applications</description>
42 <module>dcae-analytics-test</module>
43 <module>dcae-analytics-model</module>
44 <module>dcae-analytics-tca-model</module>
45 <module>dcae-analytics-tca-core</module>
46 <module>dcae-analytics-web</module>
47 <module>dcae-analytics-tca-web</module>
52 <!-- PROJECT SETTINGS-->
53 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
54 <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
55 <main.basedir>${project.basedir}</main.basedir>
57 <!-- DEPENDENCIES VERSION -->
58 <eelf.logger.version>3.0.0-SNAPSHOT</eelf.logger.version>
59 <spring.boot.version>2.0.5.RELEASE</spring.boot.version>
60 <spring.cloud.version>Finchley.RC2</spring.cloud.version>
61 <commons.text.version>1.4</commons.text.version>
62 <springfox-swagger2.version>2.9.2</springfox-swagger2.version>
63 <findbugs.jsr305.version>3.0.2</findbugs.jsr305.version>
64 <findbugs.annotations.version>3.0.1</findbugs.annotations.version>
66 <!-- TEST DEPENDENCIES -->
67 <junit-jupiter.version>5.0.2</junit-jupiter.version>
68 <junit-platform.version>1.0.2</junit-platform.version>
69 <apiguardian-api.version>1.0.0</apiguardian-api.version>
72 <surefire.redirectTestOutputToFile>true</surefire.redirectTestOutputToFile>
73 <!-- PLUGINS VERSIONS -->
74 <maven-compiler-plugin.version>3.7.0</maven-compiler-plugin.version>
75 <maven-jar-plugin.version>3.0.2</maven-jar-plugin.version>
76 <maven-assembly-plugin.version>3.1.0</maven-assembly-plugin.version>
77 <maven-javadoc-plugin.version>3.0.0-M1</maven-javadoc-plugin.version>
78 <maven-surefire-plugin.version>2.19</maven-surefire-plugin.version>
79 <maven-failsafe-plugin.version>2.19.1</maven-failsafe-plugin.version>
80 <maven-source-plugin.version>3.0.1</maven-source-plugin.version>
81 <maven-deploy-plugin.version>2.8.2</maven-deploy-plugin.version>
82 <jacoco.plugin.version>0.8.1</jacoco.plugin.version>
83 <findbugs.plugin.version>3.0.5</findbugs.plugin.version>
84 <pmd.plugin.version>3.8</pmd.plugin.version>
85 <checkstyle.plugin.version>2.17</checkstyle.plugin.version>
86 <lombok.plugin.version>1.16.18.1</lombok.plugin.version>
87 <gitcommitid.plugin.version>2.2.3</gitcommitid.plugin.version>
88 <maven.build.helper.plugin.version>3.0.0</maven.build.helper.plugin.version>
89 <dockerfile-maven-version>1.4.3</dockerfile-maven-version>
91 <!--PLUGIN SETTINGS -->
92 <compiler.source.version>1.8</compiler.source.version>
93 <compiler.target.version>1.8</compiler.target.version>
94 <unit.test.pattern>**/*Test.java</unit.test.pattern>
95 <skip.unit.tests>false</skip.unit.tests>
96 <integration.test.pattern>**/*IT.java</integration.test.pattern>
97 <skip.integration.tests>false</skip.integration.tests>
98 <pmd.violation.buildfail>true</pmd.violation.buildfail>
99 <findbugs.failOnError>true</findbugs.failOnError>
100 <checkstyle.failOnViolation>false</checkstyle.failOnViolation>
101 <checkstyle.file.name>checkstyle.xml</checkstyle.file.name>
102 <checkstyle.suppression.file.name>checkstyle-suppressions.xml</checkstyle.suppression.file.name>
105 <dependency.locations.enabled>false</dependency.locations.enabled>
106 <nexusproxy>https://nexus.onap.org</nexusproxy>
107 <snapshots.path>content/repositories/snapshots/</snapshots.path>
108 <releases.path>content/repositories/releases/</releases.path>
109 <docker.repository>nexus3.onap.org:10003</docker.repository>
112 <!-- SONAR EXCLUSIONS -->
113 <!-- EXCLUDE TEST COVERAGE ON
114 TEST PACKAGES - USED FOR TESTING - NOT FOR DEPLOYMENT
115 MODEL PACKAGES - MODELS ONLY CONTAINS POJOs AND NO BUSINESS LOGIC,
116 CONFIG PACKAGE - CONTAINS WIRINGS OF SPRING BEANS,
117 EXCEPTIONS PACKAGE - CONTAINS CUSTOM EXCEPTIONS - NO BUSINESS LOGIC,
118 PREFERENCES CLASSES - JUST POJOS
120 <sonar.coverage.exclusions>**/test/**,**/model/**,**/config/**,**/exception/**,**/*Preferences.java</sonar.coverage.exclusions>
126 <dependencyManagement>
130 <!-- PROJECT DEPENDENCIES -->
132 <groupId>${project.groupId}</groupId>
133 <artifactId>dcae-analytics-test</artifactId>
134 <version>${project.version}</version>
139 <groupId>${project.groupId}</groupId>
140 <artifactId>dcae-analytics-model</artifactId>
141 <version>${project.version}</version>
145 <groupId>${project.groupId}</groupId>
146 <artifactId>dcae-analytics-web</artifactId>
147 <version>${project.version}</version>
151 <groupId>${project.groupId}</groupId>
152 <artifactId>dcae-analytics-tca-model</artifactId>
153 <version>${project.version}</version>
157 <groupId>${project.groupId}</groupId>
158 <artifactId>dcae-analytics-tca-core</artifactId>
159 <version>${project.version}</version>
165 <groupId>org.onap.dcaegen2.analytics.tca-gen2</groupId>
166 <artifactId>eelf-logger-logback-impl</artifactId>
167 <version>${eelf.logger.version}</version>
172 <groupId>org.apache.commons</groupId>
173 <artifactId>commons-text</artifactId>
174 <version>${commons.text.version}</version>
177 <!-- REST API SWAGGER -->
179 <groupId>io.springfox</groupId>
180 <artifactId>springfox-swagger2</artifactId>
181 <version>${springfox-swagger2.version}</version>
184 <groupId>io.springfox</groupId>
185 <artifactId>springfox-swagger-ui</artifactId>
186 <version>${springfox-swagger2.version}</version>
191 <groupId>com.google.code.findbugs</groupId>
192 <artifactId>jsr305</artifactId>
193 <version>${findbugs.jsr305.version}</version>
194 <scope>provided</scope>
197 <groupId>com.google.code.findbugs</groupId>
198 <artifactId>annotations</artifactId>
199 <version>${findbugs.annotations.version}</version>
200 <scope>provided</scope>
203 <!-- JUNIT 5 DEPENDENCIES -->
205 <groupId>org.junit.jupiter</groupId>
206 <artifactId>junit-jupiter-api</artifactId>
207 <version>${junit-jupiter.version}</version>
211 <groupId>org.junit.jupiter</groupId>
212 <artifactId>junit-jupiter-engine</artifactId>
213 <version>${junit-jupiter.version}</version>
217 <groupId>org.junit.jupiter</groupId>
218 <artifactId>junit-jupiter-params</artifactId>
219 <version>${junit-jupiter.version}</version>
223 <groupId>org.junit.platform</groupId>
224 <artifactId>junit-platform-engine</artifactId>
225 <version>${junit-platform.version}</version>
229 <groupId>org.junit.platform</groupId>
230 <artifactId>junit-platform-launcher</artifactId>
231 <version>${junit-platform.version}</version>
235 <groupId>org.apiguardian</groupId>
236 <artifactId>apiguardian-api</artifactId>
237 <version>${apiguardian-api.version}</version>
241 <!-- IMPORT DEPENDENCY MANAGEMENT FROM SPRING BOOT -->
243 <groupId>org.springframework.boot</groupId>
244 <artifactId>spring-boot-dependencies</artifactId>
245 <version>${spring.boot.version}</version>
247 <scope>import</scope>
249 <!-- IMPORT DEPENDENCY MANAGEMENT FROM SPRING CLOUD -->
251 <groupId>org.springframework.cloud</groupId>
252 <artifactId>spring-cloud-dependencies</artifactId>
253 <version>${spring.cloud.version}</version>
255 <scope>import</scope>
259 </dependencyManagement>
267 <!-- COMPILER PLUGIN -->
269 <groupId>org.apache.maven.plugins</groupId>
270 <artifactId>maven-compiler-plugin</artifactId>
271 <version>${maven-compiler-plugin.version}</version>
275 <meminitial>256m</meminitial>
276 <maxmem>1024m</maxmem>
277 <source>${compiler.target.version}</source>
278 <target>${compiler.source.version}</target>
279 <showWarnings>true</showWarnings>
280 <showDeprecation>true</showDeprecation>
284 <!-- MAVEN SOURCE PLUGIN -->
286 <groupId>org.apache.maven.plugins</groupId>
287 <artifactId>maven-source-plugin</artifactId>
288 <version>${maven-source-plugin.version}</version>
290 <excludeResources>true</excludeResources>
294 <id>attach-sources</id>
295 <phase>verify</phase>
297 <goal>jar-no-fork</goal>
303 <!-- MAVEN JAVADOC PLUGIN -->
305 <groupId>org.apache.maven.plugins</groupId>
306 <artifactId>maven-javadoc-plugin</artifactId>
307 <version>${maven-javadoc-plugin.version}</version>
309 <!-- minimize console output messages -->
311 <verbose>false</verbose>
312 <useStandardDocletOptions>false</useStandardDocletOptions>
319 <goal>aggregate</goal>
323 <id>attach-javadoc</id>
331 <!-- MAVEN DEPLOY PLUGIN -->
333 <artifactId>maven-deploy-plugin</artifactId>
334 <version>${maven-deploy-plugin.version}</version>
336 <deployAtEnd>true</deployAtEnd>
340 <!-- SUREFIRE TEST PLUGIN -->
342 <groupId>org.apache.maven.plugins</groupId>
343 <artifactId>maven-surefire-plugin</artifactId>
344 <version>${maven-surefire-plugin.version}</version>
346 <skipTests>${skip.unit.tests}</skipTests>
347 <argLine>-Xmx2048m -Djava.awt.headless=true -XX:+UseConcMarkSweepGC
348 -XX:OnOutOfMemoryError="kill -9 %p" -XX:+HeapDumpOnOutOfMemoryError ${surefireArgLine}
350 <redirectTestOutputToFile>${surefire.redirectTestOutputToFile}</redirectTestOutputToFile>
351 <parallel>classesAndMethods</parallel>
352 <threadCount>4</threadCount>
353 <forkCount>4</forkCount>
354 <reuseForks>false</reuseForks>
355 <reportFormat>xml</reportFormat>
356 <trimStackTrace>false</trimStackTrace>
357 <systemPropertyVariables>
358 <java.io.tmpdir>${project.build.directory}</java.io.tmpdir>
359 <logback.configurationFile>
360 ${basedir}/src/test/resources/logback-test.xml
361 </logback.configurationFile>
362 <logging.config>classpath:logback-test.xml</logging.config>
363 </systemPropertyVariables>
365 <include>${unit.test.pattern}</include>
368 <exclude>${integration.test.pattern}</exclude>
373 <groupId>org.junit.platform</groupId>
374 <artifactId>junit-platform-surefire-provider</artifactId>
375 <version>${junit-platform.version}</version>
380 <!-- FAIL SAFE PLUGIN FOR INTEGRATION TEST -->
382 <groupId>org.apache.maven.plugins</groupId>
383 <artifactId>maven-failsafe-plugin</artifactId>
384 <version>${maven-failsafe-plugin.version}</version>
387 <groupId>org.junit.platform</groupId>
388 <artifactId>junit-platform-surefire-provider</artifactId>
389 <version>${junit-platform.version}</version>
394 <id>integration-tests</id>
396 <goal>integration-test</goal>
400 <argLine>${failsafeArgLine}</argLine>
401 <redirectTestOutputToFile>true</redirectTestOutputToFile>
402 <skipTests>${skip.integration.tests}</skipTests>
404 <include>${integration.test.pattern}</include>
407 <exclude>${unit.test.pattern}</exclude>
409 <systemPropertyVariables>
410 <java.io.tmpdir>${project.build.directory}</java.io.tmpdir>
411 <logging.config>classpath:logback-test.xml</logging.config>
412 </systemPropertyVariables>
419 <!-- FIND BUGS (STATIC CODE ANALYSIS) PLUGIN -->
421 <groupId>org.codehaus.mojo</groupId>
422 <artifactId>findbugs-maven-plugin</artifactId>
423 <version>${findbugs.plugin.version}</version>
426 <threshold>Low</threshold>
427 <xmlOutput>true</xmlOutput>
428 <!-- BUILD FAIL ON FINDBUGS ERRORS -->
429 <failOnError>${findbugs.failOnError}</failOnError>
430 <excludeFilterFile>${main.basedir}/findbugs-exclude.xml</excludeFilterFile>
431 <outputDirectory>${project.reporting.outputDirectory}/findbugs</outputDirectory>
432 <findbugsXmlOutputDirectory>${project.reporting.outputDirectory}/findbugs
433 </findbugsXmlOutputDirectory>
437 <id>analyze-compile</id>
438 <phase>compile</phase>
446 <!-- PMD PLUGIN SETUP -->
448 <groupId>org.apache.maven.plugins</groupId>
449 <artifactId>maven-pmd-plugin</artifactId>
450 <version>${pmd.plugin.version}</version>
452 <sourceEncoding>${project.build.sourceEncoding}</sourceEncoding>
453 <targetJdk>${compiler.target.version}</targetJdk>
454 <linkXRef>false</linkXRef>
456 <exclude>**/*Mixin.java</exclude>
458 <!-- BUILD FAIL ON PMD VIOLATION -->
459 <failOnViolation>${pmd.violation.buildfail}</failOnViolation>
460 <targetDirectory>${project.reporting.outputDirectory}/pmd</targetDirectory>
469 <printFailingErrors>true</printFailingErrors>
470 <excludeFromFailureFile>${main.basedir}/pmd-exclude.properties</excludeFromFailureFile>
476 <goal>cpd-check</goal>
479 <printFailingErrors>true</printFailingErrors>
480 <excludeFromFailureFile>${main.basedir}/cpd-exclude.properties</excludeFromFailureFile>
486 <!-- CHECKSTYLE PLUGIN -->
488 <groupId>org.apache.maven.plugins</groupId>
489 <artifactId>maven-checkstyle-plugin</artifactId>
490 <version>${checkstyle.plugin.version}</version>
494 <phase>validate</phase>
496 <configLocation>${checkstyle.file.name}</configLocation>
497 <suppressionsLocation>${checkstyle.suppression.file.name}</suppressionsLocation>
498 <encoding>UTF-8</encoding>
499 <consoleOutput>true</consoleOutput>
500 <!-- BUILD FAIL ON CHECKSTYLE VIOLATION -->
501 <failOnViolation>${checkstyle.failOnViolation}</failOnViolation>
502 <includeTestSourceDirectory>true</includeTestSourceDirectory>
503 <outputFile>${project.reporting.outputDirectory}/checkstyle</outputFile>
512 <groupId>com.puppycrawl.tools</groupId>
513 <artifactId>checkstyle</artifactId>
514 <version>6.19</version>
519 <!-- LOMBOK PLUGIN -->
521 <groupId>org.projectlombok</groupId>
522 <artifactId>lombok-maven-plugin</artifactId>
523 <version>${lombok.plugin.version}</version>
527 <phase>generate-sources</phase>
529 <goal>delombok</goal>
532 <addOutputDirectory>false</addOutputDirectory>
533 <sourceDirectory>src/main/java</sourceDirectory>
539 <!-- GIT COMMIT ID PLUGIN -->
541 <groupId>pl.project13.maven</groupId>
542 <artifactId>git-commit-id-plugin</artifactId>
543 <version>${gitcommitid.plugin.version}</version>
546 <id>generate-git-properties</id>
547 <phase>generate-resources</phase>
549 <goal>revision</goal>
552 <failOnNoGitDirectory>false</failOnNoGitDirectory>
553 <generateGitPropertiesFile>true</generateGitPropertiesFile>
554 <generateGitPropertiesFilename>
555 ${project.build.directory}/git/git.properties
556 </generateGitPropertiesFilename>
564 <groupId>org.apache.maven.plugins</groupId>
565 <artifactId>maven-jar-plugin</artifactId>
566 <version>${maven-jar-plugin.version}</version>
570 <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
573 <Implementation-Build-Version>${project.version}</Implementation-Build-Version>
580 <!-- ASSEMBLY PLUGIN -->
582 <groupId>org.apache.maven.plugins</groupId>
583 <artifactId>maven-assembly-plugin</artifactId>
584 <version>${maven-assembly-plugin.version}</version>
587 <descriptor>${main.basedir}/assembly/cdp-assembly-descriptor.xml</descriptor>
592 <id>cdp-assembly</id>
593 <phase>package</phase>
601 <!-- BUILD HELPER PLUGIN -->
603 <groupId>org.codehaus.mojo</groupId>
604 <artifactId>build-helper-maven-plugin</artifactId>
605 <version>${maven.build.helper.plugin.version}</version>
608 <!-- SPRING BOOT PLUGIN -->
610 <groupId>org.springframework.boot</groupId>
611 <artifactId>spring-boot-maven-plugin</artifactId>
612 <version>${spring.boot.version}</version>
617 <goal>build-info</goal>
621 <id>spring-boot-uber-jar</id>
623 <goal>repackage</goal>
629 <!-- DOCKER PLUGIN -->
631 <groupId>com.spotify</groupId>
632 <artifactId>dockerfile-maven-plugin</artifactId>
633 <version>${dockerfile-maven-version}</version>
635 <repository>${docker.repository}/onap/${project.groupId}.${project.artifactId}</repository>
636 <tag>${project.version}</tag>
648 <groupId>org.apache.maven.plugins</groupId>
649 <artifactId>maven-compiler-plugin</artifactId>
653 <groupId>org.apache.maven.plugins</groupId>
654 <artifactId>maven-jar-plugin</artifactId>
658 <groupId>org.apache.maven.plugins</groupId>
659 <artifactId>maven-surefire-plugin</artifactId>
663 <groupId>org.apache.maven.plugins</groupId>
664 <artifactId>maven-failsafe-plugin</artifactId>
668 <groupId>org.apache.maven.plugins</groupId>
669 <artifactId>maven-source-plugin</artifactId>
673 <groupId>org.apache.maven.plugins</groupId>
674 <artifactId>maven-javadoc-plugin</artifactId>
678 <groupId>org.apache.maven.plugins</groupId>
679 <artifactId>maven-deploy-plugin</artifactId>
683 <groupId>org.apache.maven.plugins</groupId>
684 <artifactId>maven-pmd-plugin</artifactId>
688 <groupId>org.codehaus.mojo</groupId>
689 <artifactId>findbugs-maven-plugin</artifactId>
693 <groupId>org.apache.maven.plugins</groupId>
694 <artifactId>maven-checkstyle-plugin</artifactId>
698 <groupId>org.jacoco</groupId>
699 <artifactId>jacoco-maven-plugin</artifactId>