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.2.2-SNAPSHOT</version>
33 <artifactId>dcae-analytics</artifactId>
34 <packaging>pom</packaging>
36 <name>DCAE Analytics Parent</name>
37 <description>Parent project for all DCAE Analytics Applications</description>
41 <module>dcae-analytics-test</module>
42 <module>dcae-analytics-model</module>
43 <module>dcae-analytics-tca-model</module>
44 <module>dcae-analytics-tca-core</module>
45 <module>dcae-analytics-web</module>
46 <module>dcae-analytics-tca-web</module>
51 <!-- PROJECT SETTINGS -->
52 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
53 <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
54 <main.basedir>${project.basedir}</main.basedir>
56 <!-- DEPENDENCIES VERSION -->
57 <eelf.logger.version>1.0.1-SNAPSHOT</eelf.logger.version>
58 <spring.boot.version>2.0.9.RELEASE</spring.boot.version>
59 <spring.cloud.version>Finchley.RC2</spring.cloud.version>
60 <spring.version>5.0.11.RELEASE</spring.version>
61 <commons.text.version>1.4</commons.text.version>
62 <springfox-swagger2.version>3.0.0</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.6.2</junit-jupiter.version>
68 <junit-platform.version>1.6.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.8.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</maven-javadoc-plugin.version>
78 <maven-surefire-plugin.version>2.22.2</maven-surefire-plugin.version>
79 <maven-failsafe-plugin.version>2.22.2</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 <sonar.coverage.jacoco.xmlReportPaths>${project.reporting.outputDirectory}/jacoco-ut/jacoco.xml
84 </sonar.coverage.jacoco.xmlReportPaths>
85 <pmd.plugin.version>3.11.0</pmd.plugin.version>
86 <checkstyle.plugin.version>2.17</checkstyle.plugin.version>
87 <lombok.plugin.version>1.18.0.0</lombok.plugin.version>
88 <gitcommitid.plugin.version>2.2.3</gitcommitid.plugin.version>
89 <maven.build.helper.plugin.version>3.0.0</maven.build.helper.plugin.version>
90 <docker-maven-version>1.0.0</docker-maven-version>
92 <!--PLUGIN SETTINGS -->
93 <compiler.source.version>11</compiler.source.version>
94 <compiler.target.version>11</compiler.target.version>
95 <unit.test.pattern>**/*Test.java</unit.test.pattern>
96 <skip.unit.tests>false</skip.unit.tests>
97 <integration.test.pattern>**/*IT.java</integration.test.pattern>
98 <skip.integration.tests>false</skip.integration.tests>
99 <pmd.violation.buildfail>true</pmd.violation.buildfail>
100 <findbugs.failOnError>true</findbugs.failOnError>
101 <checkstyle.failOnViolation>false</checkstyle.failOnViolation>
102 <checkstyle.file.name>checkstyle.xml</checkstyle.file.name>
103 <checkstyle.suppression.file.name>checkstyle-suppressions.xml</checkstyle.suppression.file.name>
106 <dependency.locations.enabled>false</dependency.locations.enabled>
107 <nexusproxy>https://nexus.onap.org</nexusproxy>
108 <snapshots.path>content/repositories/snapshots/</snapshots.path>
109 <releases.path>content/repositories/releases/</releases.path>
110 <docker.repository>nexus3.onap.org:10003</docker.repository>
111 <jackson.version>2.11.0</jackson.version>
112 <undertow.version>2.2.2.Final</undertow.version>
113 <spring-webflux.version>5.2.7.RELEASE</spring-webflux.version>
115 <!-- SONAR EXCLUSIONS -->
116 <!-- EXCLUDE TEST COVERAGE ON
117 TEST PACKAGES - USED FOR TESTING - NOT FOR DEPLOYMENT
118 MODEL PACKAGES - MODELS ONLY CONTAINS POJOs AND NO BUSINESS LOGIC,
119 CONFIG PACKAGE - CONTAINS WIRINGS OF SPRING BEANS,
120 EXCEPTIONS PACKAGE - CONTAINS CUSTOM EXCEPTIONS - NO BUSINESS LOGIC,
121 PREFERENCES CLASSES - JUST POJOS
122 CONTEXTS CLASSES - JUST POJOS
123 ENTITY CLASSES - JUST POJOS
125 <sonar.coverage.exclusions>**/test/**,**/model/**,**/config/**,**/exception/**,**/*Preferences.java,**/*Context*.java,**/*Entity.java</sonar.coverage.exclusions>
131 <dependencyManagement>
135 <!-- PROJECT DEPENDENCIES -->
137 <groupId>${project.groupId}</groupId>
138 <artifactId>dcae-analytics-test</artifactId>
139 <version>${project.version}</version>
144 <groupId>${project.groupId}</groupId>
145 <artifactId>dcae-analytics-model</artifactId>
146 <version>${project.version}</version>
150 <groupId>${project.groupId}</groupId>
151 <artifactId>dcae-analytics-web</artifactId>
152 <version>${project.version}</version>
156 <groupId>${project.groupId}</groupId>
157 <artifactId>dcae-analytics-tca-model</artifactId>
158 <version>${project.version}</version>
162 <groupId>${project.groupId}</groupId>
163 <artifactId>dcae-analytics-tca-core</artifactId>
164 <version>${project.version}</version>
169 <groupId>org.onap.dcaegen2.analytics.tca-gen2</groupId>
170 <artifactId>eelf-logger-logback-impl</artifactId>
171 <version>${project.version}</version>
176 <groupId>org.apache.commons</groupId>
177 <artifactId>commons-text</artifactId>
178 <version>${commons.text.version}</version>
181 <!-- REST API SWAGGER -->
183 <groupId>io.springfox</groupId>
184 <artifactId>springfox-swagger2</artifactId>
185 <version>${springfox-swagger2.version}</version>
188 <groupId>io.springfox</groupId>
189 <artifactId>springfox-swagger-ui</artifactId>
190 <version>${springfox-swagger2.version}</version>
193 <groupId>org.springframework.plugin</groupId>
194 <artifactId>spring-plugin-core</artifactId>
195 <version>2.0.0.RELEASE</version>
198 <groupId>org.springframework.plugin</groupId>
199 <artifactId>spring-plugin-metadata</artifactId>
200 <version>2.0.0.RELEASE</version>
205 <groupId>com.google.code.findbugs</groupId>
206 <artifactId>jsr305</artifactId>
207 <version>${findbugs.jsr305.version}</version>
208 <scope>provided</scope>
211 <groupId>com.google.code.findbugs</groupId>
212 <artifactId>annotations</artifactId>
213 <version>${findbugs.annotations.version}</version>
214 <scope>provided</scope>
217 <!-- JUNIT 5 DEPENDENCIES -->
219 <groupId>org.junit.jupiter</groupId>
220 <artifactId>junit-jupiter-api</artifactId>
221 <version>${junit-jupiter.version}</version>
225 <groupId>org.junit.jupiter</groupId>
226 <artifactId>junit-jupiter-engine</artifactId>
227 <version>${junit-jupiter.version}</version>
231 <groupId>org.junit.jupiter</groupId>
232 <artifactId>junit-jupiter-params</artifactId>
233 <version>${junit-jupiter.version}</version>
237 <groupId>junit</groupId>
238 <artifactId>junit</artifactId>
239 <version>4.13</version>
243 <groupId>org.junit.vintage</groupId>
244 <artifactId>junit-vintage-engine</artifactId>
245 <version>5.6.2</version>
249 <groupId>org.junit.platform</groupId>
250 <artifactId>junit-platform-engine</artifactId>
251 <version>1.6.2</version>
255 <groupId>org.junit.platform</groupId>
256 <artifactId>junit-platform-launcher</artifactId>
257 <version>1.6.2</version>
261 <groupId>org.apiguardian</groupId>
262 <artifactId>apiguardian-api</artifactId>
263 <version>${apiguardian-api.version}</version>
267 <!-- IMPORT DEPENDENCY MANAGEMENT FROM SPRING BOOT -->
269 <groupId>org.springframework.boot</groupId>
270 <artifactId>spring-boot-dependencies</artifactId>
271 <version>${spring.boot.version}</version>
274 <groupId>org.springframework</groupId>
275 <artifactId>spring-web</artifactId>
278 <groupId>org.springframework.boot</groupId>
279 <artifactId>spring-boot-starter-test</artifactId>
282 <groupId>org.mockito</groupId>
283 <artifactId>mockito-core</artifactId>
286 <groupId>io.undertow</groupId>
287 <artifactId>undertow-core</artifactId>
290 <groupId>org.springframework</groupId>
291 <artifactId>spring-webflux</artifactId>
294 <groupId>com.fasterxml.jackson.core</groupId>
295 <artifactId>jackson-databind</artifactId>
298 <groupId>com.fasterxml.jackson.core</groupId>
299 <artifactId>jackson-core</artifactId>
302 <groupId>com.fasterxml.jackson.dataformat</groupId>
303 <artifactId>jackson-dataformat-smile</artifactId>
307 <scope>import</scope>
309 <!-- IMPORT DEPENDENCY MANAGEMENT FROM SPRING CLOUD -->
311 <groupId>org.springframework.cloud</groupId>
312 <artifactId>spring-cloud-dependencies</artifactId>
313 <version>${spring.cloud.version}</version>
315 <scope>import</scope>
318 <groupId>org.springframework</groupId>
319 <artifactId>spring-webflux</artifactId>
320 <version>${spring-webflux.version}</version>
323 <groupId>org.springframework</groupId>
324 <artifactId>spring-web</artifactId>
325 <version>${spring.version}</version>
328 <groupId>org.springframework.boot</groupId>
329 <artifactId>spring-boot-starter-test</artifactId>
330 <version>2.2.0.RELEASE</version>
333 <groupId>org.mockito</groupId>
334 <artifactId>mockito-core</artifactId>
335 <version>2.23.4</version>
338 <groupId>io.undertow</groupId>
339 <artifactId>undertow-core</artifactId>
340 <version>${undertow.version}</version>
343 <groupId>com.fasterxml.jackson.core</groupId>
344 <artifactId>jackson-databind</artifactId>
345 <version>${jackson.version}</version>
348 <groupId>com.fasterxml.jackson.core</groupId>
349 <artifactId>jackson-core</artifactId>
350 <version>${jackson.version}</version>
353 <groupId>com.fasterxml.jackson.dataformat</groupId>
354 <artifactId>jackson-dataformat-smile</artifactId>
355 <version>${jackson.version}</version>
359 </dependencyManagement>
367 <!-- COMPILER PLUGIN -->
369 <groupId>org.apache.maven.plugins</groupId>
370 <artifactId>maven-compiler-plugin</artifactId>
371 <version>${maven-compiler-plugin.version}</version>
375 <meminitial>256m</meminitial>
376 <maxmem>1024m</maxmem>
377 <source>${compiler.target.version}</source>
378 <target>${compiler.source.version}</target>
379 <showWarnings>true</showWarnings>
380 <showDeprecation>true</showDeprecation>
384 <!-- MAVEN SOURCE PLUGIN -->
386 <groupId>org.apache.maven.plugins</groupId>
387 <artifactId>maven-source-plugin</artifactId>
388 <version>${maven-source-plugin.version}</version>
390 <excludeResources>true</excludeResources>
394 <id>attach-sources</id>
395 <phase>verify</phase>
397 <goal>jar-no-fork</goal>
403 <!-- MAVEN JAVADOC PLUGIN -->
405 <groupId>org.apache.maven.plugins</groupId>
406 <artifactId>maven-javadoc-plugin</artifactId>
407 <version>${maven-javadoc-plugin.version}</version>
409 <!-- minimize console output messages -->
411 <verbose>false</verbose>
412 <useStandardDocletOptions>false</useStandardDocletOptions>
419 <goal>aggregate</goal>
423 <id>attach-javadoc</id>
431 <!-- MAVEN DEPLOY PLUGIN -->
433 <artifactId>maven-deploy-plugin</artifactId>
434 <version>${maven-deploy-plugin.version}</version>
436 <deployAtEnd>true</deployAtEnd>
440 <!-- SUREFIRE TEST PLUGIN -->
442 <groupId>org.apache.maven.plugins</groupId>
443 <artifactId>maven-surefire-plugin</artifactId>
444 <version>${maven-surefire-plugin.version}</version>
446 <skipTests>${skip.unit.tests}</skipTests>
447 <argLine>-Xmx2048m -Djava.awt.headless=true
448 -XX:+UseConcMarkSweepGC
449 -XX:OnOutOfMemoryError="kill -9 %p" -XX:+HeapDumpOnOutOfMemoryError ${surefireArgLine}
451 <redirectTestOutputToFile>${surefire.redirectTestOutputToFile}</redirectTestOutputToFile>
452 <parallel>classesAndMethods</parallel>
453 <threadCount>4</threadCount>
454 <forkCount>4</forkCount>
455 <reuseForks>false</reuseForks>
456 <reportFormat>xml</reportFormat>
457 <trimStackTrace>false</trimStackTrace>
458 <systemPropertyVariables>
459 <java.io.tmpdir>${project.build.directory}</java.io.tmpdir>
460 <logback.configurationFile>
461 ${basedir}/src/test/resources/logback-test.xml
462 </logback.configurationFile>
463 <logging.config>classpath:logback-test.xml</logging.config>
464 </systemPropertyVariables>
466 <include>${unit.test.pattern}</include>
469 <exclude>${integration.test.pattern}</exclude>
474 <!-- FAIL SAFE PLUGIN FOR INTEGRATION TEST -->
476 <groupId>org.apache.maven.plugins</groupId>
477 <artifactId>maven-failsafe-plugin</artifactId>
478 <version>${maven-failsafe-plugin.version}</version>
481 <id>integration-tests</id>
483 <goal>integration-test</goal>
487 <argLine>${failsafeArgLine}</argLine>
488 <redirectTestOutputToFile>true</redirectTestOutputToFile>
489 <skipTests>${skip.integration.tests}</skipTests>
491 <include>${integration.test.pattern}</include>
494 <exclude>${unit.test.pattern}</exclude>
496 <systemPropertyVariables>
497 <java.io.tmpdir>${project.build.directory}</java.io.tmpdir>
498 <logging.config>classpath:logback-test.xml</logging.config>
499 </systemPropertyVariables>
505 <!-- PMD PLUGIN SETUP -->
507 <groupId>org.apache.maven.plugins</groupId>
508 <artifactId>maven-pmd-plugin</artifactId>
509 <version>${pmd.plugin.version}</version>
511 <sourceEncoding>${project.build.sourceEncoding}</sourceEncoding>
512 <targetJdk>${compiler.target.version}</targetJdk>
513 <linkXRef>false</linkXRef>
515 <exclude>**/*Mixin.java</exclude>
517 <!-- BUILD FAIL ON PMD VIOLATION -->
518 <failOnViolation>${pmd.violation.buildfail}</failOnViolation>
519 <targetDirectory>${project.reporting.outputDirectory}/pmd</targetDirectory>
528 <printFailingErrors>true</printFailingErrors>
529 <excludeFromFailureFile>${main.basedir}/pmd-exclude.properties</excludeFromFailureFile>
535 <goal>cpd-check</goal>
538 <printFailingErrors>true</printFailingErrors>
539 <excludeFromFailureFile>${main.basedir}/cpd-exclude.properties</excludeFromFailureFile>
545 <!-- CHECKSTYLE PLUGIN -->
547 <groupId>org.apache.maven.plugins</groupId>
548 <artifactId>maven-checkstyle-plugin</artifactId>
549 <version>${checkstyle.plugin.version}</version>
553 <phase>validate</phase>
556 <configLocation>${checkstyle.file.name}</configLocation>
557 <suppressionsLocation>${checkstyle.suppression.file.name}</suppressionsLocation>
558 <encoding>UTF-8</encoding>
559 <consoleOutput>true</consoleOutput>
560 <!-- BUILD FAIL ON CHECKSTYLE VIOLATION -->
561 <failOnViolation>${checkstyle.failOnViolation}</failOnViolation>
562 <includeTestSourceDirectory>true</includeTestSourceDirectory>
563 <outputFile>${project.reporting.outputDirectory}/checkstyle</outputFile>
572 <groupId>com.puppycrawl.tools</groupId>
573 <artifactId>checkstyle</artifactId>
574 <version>6.19</version>
579 <!-- LOMBOK PLUGIN -->
581 <groupId>org.projectlombok</groupId>
582 <artifactId>lombok-maven-plugin</artifactId>
583 <version>${lombok.plugin.version}</version>
587 <phase>generate-sources</phase>
589 <goal>delombok</goal>
592 <addOutputDirectory>false</addOutputDirectory>
593 <sourceDirectory>src/main/java</sourceDirectory>
599 <!-- GIT COMMIT ID PLUGIN -->
601 <groupId>pl.project13.maven</groupId>
602 <artifactId>git-commit-id-plugin</artifactId>
603 <version>${gitcommitid.plugin.version}</version>
606 <id>generate-git-properties</id>
607 <phase>generate-resources</phase>
609 <goal>revision</goal>
612 <failOnNoGitDirectory>false</failOnNoGitDirectory>
613 <generateGitPropertiesFile>true</generateGitPropertiesFile>
614 <generateGitPropertiesFilename>
615 ${project.build.directory}/git/git.properties
616 </generateGitPropertiesFilename>
624 <groupId>org.apache.maven.plugins</groupId>
625 <artifactId>maven-jar-plugin</artifactId>
626 <version>${maven-jar-plugin.version}</version>
630 <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
633 <Implementation-Build-Version>${project.version}</Implementation-Build-Version>
640 <!-- ASSEMBLY PLUGIN -->
642 <groupId>org.apache.maven.plugins</groupId>
643 <artifactId>maven-assembly-plugin</artifactId>
644 <version>${maven-assembly-plugin.version}</version>
647 <descriptor>${main.basedir}/assembly/cdp-assembly-descriptor.xml</descriptor>
652 <id>cdp-assembly</id>
653 <phase>package</phase>
661 <!-- BUILD HELPER PLUGIN -->
663 <groupId>org.codehaus.mojo</groupId>
664 <artifactId>build-helper-maven-plugin</artifactId>
665 <version>${maven.build.helper.plugin.version}</version>
668 <!-- SPRING BOOT PLUGIN -->
670 <groupId>org.springframework.boot</groupId>
671 <artifactId>spring-boot-maven-plugin</artifactId>
672 <version>${spring.boot.version}</version>
677 <goal>build-info</goal>
681 <id>spring-boot-uber-jar</id>
683 <goal>repackage</goal>
689 <!-- DOCKER PLUGIN -->
690 <!-- <plugin> <groupId>com.spotify</groupId> <artifactId>docker-maven-plugin</artifactId>
691 <version>${docker-maven-version}</version> <configuration> <repository>${docker.repository}/onap/${project.groupId}.${project.artifactId}</repository>
692 <tag>${project.version}</tag> </configuration> </plugin> -->
702 <groupId>org.apache.maven.plugins</groupId>
703 <artifactId>maven-compiler-plugin</artifactId>
707 <groupId>org.apache.maven.plugins</groupId>
708 <artifactId>maven-jar-plugin</artifactId>
712 <groupId>org.apache.maven.plugins</groupId>
713 <artifactId>maven-surefire-plugin</artifactId>
717 <groupId>org.apache.maven.plugins</groupId>
718 <artifactId>maven-failsafe-plugin</artifactId>
722 <groupId>org.apache.maven.plugins</groupId>
723 <artifactId>maven-source-plugin</artifactId>
727 <groupId>org.apache.maven.plugins</groupId>
728 <artifactId>maven-javadoc-plugin</artifactId>
732 <groupId>org.apache.maven.plugins</groupId>
733 <artifactId>maven-deploy-plugin</artifactId>
737 <groupId>org.apache.maven.plugins</groupId>
738 <artifactId>maven-pmd-plugin</artifactId>
742 <groupId>org.apache.maven.plugins</groupId>
743 <artifactId>maven-checkstyle-plugin</artifactId>
747 <groupId>org.jacoco</groupId>
748 <artifactId>jacoco-maven-plugin</artifactId>