1 <?xml version="1.0" encoding="UTF-8"?>
3 ~ ================================================================================
4 ~ Copyright (c) 2018-2020 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>1.0.1-SNAPSHOT</version>
33 <artifactId>dcae-analytics</artifactId>
34 <version>1.0.1-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>1.0.1-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 <spring.version>5.0.11.RELEASE</spring.version>
62 <commons.text.version>1.4</commons.text.version>
63 <springfox-swagger2.version>2.9.2</springfox-swagger2.version>
64 <findbugs.jsr305.version>3.0.2</findbugs.jsr305.version>
65 <findbugs.annotations.version>3.0.1</findbugs.annotations.version>
67 <!-- TEST DEPENDENCIES -->
68 <junit-jupiter.version>5.0.2</junit-jupiter.version>
69 <junit-platform.version>1.0.2</junit-platform.version>
70 <apiguardian-api.version>1.0.0</apiguardian-api.version>
73 <surefire.redirectTestOutputToFile>true</surefire.redirectTestOutputToFile>
74 <!-- PLUGINS VERSIONS -->
75 <maven-compiler-plugin.version>3.7.0</maven-compiler-plugin.version>
76 <maven-jar-plugin.version>3.0.2</maven-jar-plugin.version>
77 <maven-assembly-plugin.version>3.1.0</maven-assembly-plugin.version>
78 <maven-javadoc-plugin.version>3.0.0-M1</maven-javadoc-plugin.version>
79 <maven-surefire-plugin.version>2.19</maven-surefire-plugin.version>
80 <maven-failsafe-plugin.version>2.19.1</maven-failsafe-plugin.version>
81 <maven-source-plugin.version>3.0.1</maven-source-plugin.version>
82 <maven-deploy-plugin.version>2.8.2</maven-deploy-plugin.version>
83 <jacoco.plugin.version>0.8.1</jacoco.plugin.version>
84 <sonar.coverage.jacoco.xmlReportPaths>${project.reporting.outputDirectory}/jacoco-ut/jacoco.xml
85 </sonar.coverage.jacoco.xmlReportPaths>
86 <findbugs.plugin.version>3.0.5</findbugs.plugin.version>
87 <pmd.plugin.version>3.8</pmd.plugin.version>
88 <checkstyle.plugin.version>2.17</checkstyle.plugin.version>
89 <lombok.plugin.version>1.16.18.1</lombok.plugin.version>
90 <gitcommitid.plugin.version>2.2.3</gitcommitid.plugin.version>
91 <maven.build.helper.plugin.version>3.0.0</maven.build.helper.plugin.version>
92 <!--<dockerfile-maven-version>1.4.3</dockerfile-maven-version>-->
93 <docker-maven-version>1.0.0</docker-maven-version>
95 <!--PLUGIN SETTINGS -->
96 <compiler.source.version>1.8</compiler.source.version>
97 <compiler.target.version>1.8</compiler.target.version>
98 <unit.test.pattern>**/*Test.java</unit.test.pattern>
99 <skip.unit.tests>false</skip.unit.tests>
100 <integration.test.pattern>**/*IT.java</integration.test.pattern>
101 <skip.integration.tests>false</skip.integration.tests>
102 <pmd.violation.buildfail>true</pmd.violation.buildfail>
103 <findbugs.failOnError>true</findbugs.failOnError>
104 <checkstyle.failOnViolation>false</checkstyle.failOnViolation>
105 <checkstyle.file.name>checkstyle.xml</checkstyle.file.name>
106 <checkstyle.suppression.file.name>checkstyle-suppressions.xml</checkstyle.suppression.file.name>
109 <dependency.locations.enabled>false</dependency.locations.enabled>
110 <nexusproxy>https://nexus.onap.org</nexusproxy>
111 <snapshots.path>content/repositories/snapshots/</snapshots.path>
112 <releases.path>content/repositories/releases/</releases.path>
113 <docker.repository>nexus3.onap.org:10003</docker.repository>
116 <!-- SONAR EXCLUSIONS -->
117 <!-- EXCLUDE TEST COVERAGE ON
118 TEST PACKAGES - USED FOR TESTING - NOT FOR DEPLOYMENT
119 MODEL PACKAGES - MODELS ONLY CONTAINS POJOs AND NO BUSINESS LOGIC,
120 CONFIG PACKAGE - CONTAINS WIRINGS OF SPRING BEANS,
121 EXCEPTIONS PACKAGE - CONTAINS CUSTOM EXCEPTIONS - NO BUSINESS LOGIC,
122 PREFERENCES CLASSES - JUST POJOS
123 CONTEXTS CLASSES - JUST POJOS
124 ENTITY CLASSES - JUST POJOS
126 <sonar.coverage.exclusions>**/test/**,**/model/**,**/config/**,**/exception/**,**/*Preferences.java,**/*Context*.java,**/*Entity.java</sonar.coverage.exclusions>
132 <dependencyManagement>
136 <!-- PROJECT DEPENDENCIES -->
138 <groupId>${project.groupId}</groupId>
139 <artifactId>dcae-analytics-test</artifactId>
140 <version>${project.version}</version>
145 <groupId>${project.groupId}</groupId>
146 <artifactId>dcae-analytics-model</artifactId>
147 <version>${project.version}</version>
151 <groupId>${project.groupId}</groupId>
152 <artifactId>dcae-analytics-web</artifactId>
153 <version>${project.version}</version>
157 <groupId>${project.groupId}</groupId>
158 <artifactId>dcae-analytics-tca-model</artifactId>
159 <version>${project.version}</version>
163 <groupId>${project.groupId}</groupId>
164 <artifactId>dcae-analytics-tca-core</artifactId>
165 <version>${project.version}</version>
171 <groupId>org.onap.dcaegen2.analytics.tca-gen2</groupId>
172 <artifactId>eelf-logger-logback-impl</artifactId>
173 <version>${eelf.logger.version}</version>
178 <groupId>org.apache.commons</groupId>
179 <artifactId>commons-text</artifactId>
180 <version>${commons.text.version}</version>
183 <!-- REST API SWAGGER -->
185 <groupId>io.springfox</groupId>
186 <artifactId>springfox-swagger2</artifactId>
187 <version>${springfox-swagger2.version}</version>
190 <groupId>io.springfox</groupId>
191 <artifactId>springfox-swagger-ui</artifactId>
192 <version>${springfox-swagger2.version}</version>
197 <groupId>com.google.code.findbugs</groupId>
198 <artifactId>jsr305</artifactId>
199 <version>${findbugs.jsr305.version}</version>
200 <scope>provided</scope>
203 <groupId>com.google.code.findbugs</groupId>
204 <artifactId>annotations</artifactId>
205 <version>${findbugs.annotations.version}</version>
206 <scope>provided</scope>
209 <!-- JUNIT 5 DEPENDENCIES -->
211 <groupId>org.junit.jupiter</groupId>
212 <artifactId>junit-jupiter-api</artifactId>
213 <version>${junit-jupiter.version}</version>
217 <groupId>org.junit.jupiter</groupId>
218 <artifactId>junit-jupiter-engine</artifactId>
219 <version>${junit-jupiter.version}</version>
223 <groupId>org.junit.jupiter</groupId>
224 <artifactId>junit-jupiter-params</artifactId>
225 <version>${junit-jupiter.version}</version>
229 <groupId>org.junit.platform</groupId>
230 <artifactId>junit-platform-engine</artifactId>
231 <version>${junit-platform.version}</version>
235 <groupId>org.junit.platform</groupId>
236 <artifactId>junit-platform-launcher</artifactId>
237 <version>${junit-platform.version}</version>
241 <groupId>org.apiguardian</groupId>
242 <artifactId>apiguardian-api</artifactId>
243 <version>${apiguardian-api.version}</version>
247 <!-- IMPORT DEPENDENCY MANAGEMENT FROM SPRING BOOT -->
249 <groupId>org.springframework.boot</groupId>
250 <artifactId>spring-boot-dependencies</artifactId>
251 <version>${spring.boot.version}</version>
254 <groupId>org.springframework</groupId>
255 <artifactId>spring-web</artifactId>
259 <scope>import</scope>
261 <!-- IMPORT DEPENDENCY MANAGEMENT FROM SPRING CLOUD -->
263 <groupId>org.springframework.cloud</groupId>
264 <artifactId>spring-cloud-dependencies</artifactId>
265 <version>${spring.cloud.version}</version>
267 <scope>import</scope>
270 <groupId>org.springframework</groupId>
271 <artifactId>spring-web</artifactId>
272 <version>${spring.version}</version>
275 </dependencyManagement>
283 <!-- COMPILER PLUGIN -->
285 <groupId>org.apache.maven.plugins</groupId>
286 <artifactId>maven-compiler-plugin</artifactId>
287 <version>${maven-compiler-plugin.version}</version>
291 <meminitial>256m</meminitial>
292 <maxmem>1024m</maxmem>
293 <source>${compiler.target.version}</source>
294 <target>${compiler.source.version}</target>
295 <showWarnings>true</showWarnings>
296 <showDeprecation>true</showDeprecation>
300 <!-- MAVEN SOURCE PLUGIN -->
302 <groupId>org.apache.maven.plugins</groupId>
303 <artifactId>maven-source-plugin</artifactId>
304 <version>${maven-source-plugin.version}</version>
306 <excludeResources>true</excludeResources>
310 <id>attach-sources</id>
311 <phase>verify</phase>
313 <goal>jar-no-fork</goal>
319 <!-- MAVEN JAVADOC PLUGIN -->
321 <groupId>org.apache.maven.plugins</groupId>
322 <artifactId>maven-javadoc-plugin</artifactId>
323 <version>${maven-javadoc-plugin.version}</version>
325 <!-- minimize console output messages -->
327 <verbose>false</verbose>
328 <useStandardDocletOptions>false</useStandardDocletOptions>
335 <goal>aggregate</goal>
339 <id>attach-javadoc</id>
347 <!-- MAVEN DEPLOY PLUGIN -->
349 <artifactId>maven-deploy-plugin</artifactId>
350 <version>${maven-deploy-plugin.version}</version>
352 <deployAtEnd>true</deployAtEnd>
356 <!-- SUREFIRE TEST PLUGIN -->
358 <groupId>org.apache.maven.plugins</groupId>
359 <artifactId>maven-surefire-plugin</artifactId>
360 <version>${maven-surefire-plugin.version}</version>
362 <skipTests>${skip.unit.tests}</skipTests>
363 <argLine>-Xmx2048m -Djava.awt.headless=true -XX:+UseConcMarkSweepGC
364 -XX:OnOutOfMemoryError="kill -9 %p" -XX:+HeapDumpOnOutOfMemoryError ${surefireArgLine}
366 <redirectTestOutputToFile>${surefire.redirectTestOutputToFile}</redirectTestOutputToFile>
367 <parallel>classesAndMethods</parallel>
368 <threadCount>4</threadCount>
369 <forkCount>4</forkCount>
370 <reuseForks>false</reuseForks>
371 <reportFormat>xml</reportFormat>
372 <trimStackTrace>false</trimStackTrace>
373 <systemPropertyVariables>
374 <java.io.tmpdir>${project.build.directory}</java.io.tmpdir>
375 <logback.configurationFile>
376 ${basedir}/src/test/resources/logback-test.xml
377 </logback.configurationFile>
378 <logging.config>classpath:logback-test.xml</logging.config>
379 </systemPropertyVariables>
381 <include>${unit.test.pattern}</include>
384 <exclude>${integration.test.pattern}</exclude>
389 <groupId>org.junit.platform</groupId>
390 <artifactId>junit-platform-surefire-provider</artifactId>
391 <version>${junit-platform.version}</version>
396 <!-- FAIL SAFE PLUGIN FOR INTEGRATION TEST -->
398 <groupId>org.apache.maven.plugins</groupId>
399 <artifactId>maven-failsafe-plugin</artifactId>
400 <version>${maven-failsafe-plugin.version}</version>
403 <groupId>org.junit.platform</groupId>
404 <artifactId>junit-platform-surefire-provider</artifactId>
405 <version>${junit-platform.version}</version>
410 <id>integration-tests</id>
412 <goal>integration-test</goal>
416 <argLine>${failsafeArgLine}</argLine>
417 <redirectTestOutputToFile>true</redirectTestOutputToFile>
418 <skipTests>${skip.integration.tests}</skipTests>
420 <include>${integration.test.pattern}</include>
423 <exclude>${unit.test.pattern}</exclude>
425 <systemPropertyVariables>
426 <java.io.tmpdir>${project.build.directory}</java.io.tmpdir>
427 <logging.config>classpath:logback-test.xml</logging.config>
428 </systemPropertyVariables>
435 <!-- FIND BUGS (STATIC CODE ANALYSIS) PLUGIN -->
437 <groupId>org.codehaus.mojo</groupId>
438 <artifactId>findbugs-maven-plugin</artifactId>
439 <version>${findbugs.plugin.version}</version>
442 <threshold>Low</threshold>
443 <xmlOutput>true</xmlOutput>
444 <!-- BUILD FAIL ON FINDBUGS ERRORS -->
445 <failOnError>${findbugs.failOnError}</failOnError>
446 <excludeFilterFile>${main.basedir}/findbugs-exclude.xml</excludeFilterFile>
447 <outputDirectory>${project.reporting.outputDirectory}/findbugs</outputDirectory>
448 <findbugsXmlOutputDirectory>${project.reporting.outputDirectory}/findbugs
449 </findbugsXmlOutputDirectory>
453 <id>analyze-compile</id>
454 <phase>compile</phase>
462 <!-- PMD PLUGIN SETUP -->
464 <groupId>org.apache.maven.plugins</groupId>
465 <artifactId>maven-pmd-plugin</artifactId>
466 <version>${pmd.plugin.version}</version>
468 <sourceEncoding>${project.build.sourceEncoding}</sourceEncoding>
469 <targetJdk>${compiler.target.version}</targetJdk>
470 <linkXRef>false</linkXRef>
472 <exclude>**/*Mixin.java</exclude>
474 <!-- BUILD FAIL ON PMD VIOLATION -->
475 <failOnViolation>${pmd.violation.buildfail}</failOnViolation>
476 <targetDirectory>${project.reporting.outputDirectory}/pmd</targetDirectory>
485 <printFailingErrors>true</printFailingErrors>
486 <excludeFromFailureFile>${main.basedir}/pmd-exclude.properties</excludeFromFailureFile>
492 <goal>cpd-check</goal>
495 <printFailingErrors>true</printFailingErrors>
496 <excludeFromFailureFile>${main.basedir}/cpd-exclude.properties</excludeFromFailureFile>
502 <!-- CHECKSTYLE PLUGIN -->
504 <groupId>org.apache.maven.plugins</groupId>
505 <artifactId>maven-checkstyle-plugin</artifactId>
506 <version>${checkstyle.plugin.version}</version>
510 <phase>validate</phase>
513 <configLocation>${checkstyle.file.name}</configLocation>
514 <suppressionsLocation>${checkstyle.suppression.file.name}</suppressionsLocation>
515 <encoding>UTF-8</encoding>
516 <consoleOutput>true</consoleOutput>
517 <!-- BUILD FAIL ON CHECKSTYLE VIOLATION -->
518 <failOnViolation>${checkstyle.failOnViolation}</failOnViolation>
519 <includeTestSourceDirectory>true</includeTestSourceDirectory>
520 <outputFile>${project.reporting.outputDirectory}/checkstyle</outputFile>
529 <groupId>com.puppycrawl.tools</groupId>
530 <artifactId>checkstyle</artifactId>
531 <version>6.19</version>
536 <!-- LOMBOK PLUGIN -->
538 <groupId>org.projectlombok</groupId>
539 <artifactId>lombok-maven-plugin</artifactId>
540 <version>${lombok.plugin.version}</version>
544 <phase>generate-sources</phase>
546 <goal>delombok</goal>
549 <addOutputDirectory>false</addOutputDirectory>
550 <sourceDirectory>src/main/java</sourceDirectory>
556 <!-- GIT COMMIT ID PLUGIN -->
558 <groupId>pl.project13.maven</groupId>
559 <artifactId>git-commit-id-plugin</artifactId>
560 <version>${gitcommitid.plugin.version}</version>
563 <id>generate-git-properties</id>
564 <phase>generate-resources</phase>
566 <goal>revision</goal>
569 <failOnNoGitDirectory>false</failOnNoGitDirectory>
570 <generateGitPropertiesFile>true</generateGitPropertiesFile>
571 <generateGitPropertiesFilename>
572 ${project.build.directory}/git/git.properties
573 </generateGitPropertiesFilename>
581 <groupId>org.apache.maven.plugins</groupId>
582 <artifactId>maven-jar-plugin</artifactId>
583 <version>${maven-jar-plugin.version}</version>
587 <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
590 <Implementation-Build-Version>${project.version}</Implementation-Build-Version>
597 <!-- ASSEMBLY PLUGIN -->
599 <groupId>org.apache.maven.plugins</groupId>
600 <artifactId>maven-assembly-plugin</artifactId>
601 <version>${maven-assembly-plugin.version}</version>
604 <descriptor>${main.basedir}/assembly/cdp-assembly-descriptor.xml</descriptor>
609 <id>cdp-assembly</id>
610 <phase>package</phase>
618 <!-- BUILD HELPER PLUGIN -->
620 <groupId>org.codehaus.mojo</groupId>
621 <artifactId>build-helper-maven-plugin</artifactId>
622 <version>${maven.build.helper.plugin.version}</version>
625 <!-- SPRING BOOT PLUGIN -->
627 <groupId>org.springframework.boot</groupId>
628 <artifactId>spring-boot-maven-plugin</artifactId>
629 <version>${spring.boot.version}</version>
634 <goal>build-info</goal>
638 <id>spring-boot-uber-jar</id>
640 <goal>repackage</goal>
646 <!-- DOCKER PLUGIN -->
649 <groupId>com.spotify</groupId>
650 <artifactId>docker-maven-plugin</artifactId>
651 <version>${docker-maven-version}</version>
653 <repository>${docker.repository}/onap/${project.groupId}.${project.artifactId}</repository>
654 <tag>${project.version}</tag>
667 <groupId>org.apache.maven.plugins</groupId>
668 <artifactId>maven-compiler-plugin</artifactId>
672 <groupId>org.apache.maven.plugins</groupId>
673 <artifactId>maven-jar-plugin</artifactId>
677 <groupId>org.apache.maven.plugins</groupId>
678 <artifactId>maven-surefire-plugin</artifactId>
682 <groupId>org.apache.maven.plugins</groupId>
683 <artifactId>maven-failsafe-plugin</artifactId>
687 <groupId>org.apache.maven.plugins</groupId>
688 <artifactId>maven-source-plugin</artifactId>
692 <groupId>org.apache.maven.plugins</groupId>
693 <artifactId>maven-javadoc-plugin</artifactId>
697 <groupId>org.apache.maven.plugins</groupId>
698 <artifactId>maven-deploy-plugin</artifactId>
702 <groupId>org.apache.maven.plugins</groupId>
703 <artifactId>maven-pmd-plugin</artifactId>
707 <groupId>org.codehaus.mojo</groupId>
708 <artifactId>findbugs-maven-plugin</artifactId>
712 <groupId>org.apache.maven.plugins</groupId>
713 <artifactId>maven-checkstyle-plugin</artifactId>
717 <groupId>org.jacoco</groupId>
718 <artifactId>jacoco-maven-plugin</artifactId>