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.1.0-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.5.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>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 <sonar.coverage.jacoco.xmlReportPaths>${project.reporting.outputDirectory}/jacoco-ut/jacoco.xml
84 </sonar.coverage.jacoco.xmlReportPaths>
85 <findbugs.plugin.version>3.0.5</findbugs.plugin.version>
86 <pmd.plugin.version>3.8</pmd.plugin.version>
87 <checkstyle.plugin.version>2.17</checkstyle.plugin.version>
88 <lombok.plugin.version>1.16.18.1</lombok.plugin.version>
89 <gitcommitid.plugin.version>2.2.3</gitcommitid.plugin.version>
90 <maven.build.helper.plugin.version>3.0.0</maven.build.helper.plugin.version>
91 <!--<dockerfile-maven-version>1.4.3</dockerfile-maven-version>-->
92 <docker-maven-version>1.0.0</docker-maven-version>
94 <!--PLUGIN SETTINGS -->
95 <compiler.source.version>1.8</compiler.source.version>
96 <compiler.target.version>1.8</compiler.target.version>
97 <unit.test.pattern>**/*Test.java</unit.test.pattern>
98 <skip.unit.tests>false</skip.unit.tests>
99 <integration.test.pattern>**/*IT.java</integration.test.pattern>
100 <skip.integration.tests>false</skip.integration.tests>
101 <pmd.violation.buildfail>true</pmd.violation.buildfail>
102 <findbugs.failOnError>true</findbugs.failOnError>
103 <checkstyle.failOnViolation>false</checkstyle.failOnViolation>
104 <checkstyle.file.name>checkstyle.xml</checkstyle.file.name>
105 <checkstyle.suppression.file.name>checkstyle-suppressions.xml</checkstyle.suppression.file.name>
108 <dependency.locations.enabled>false</dependency.locations.enabled>
109 <nexusproxy>https://nexus.onap.org</nexusproxy>
110 <snapshots.path>content/repositories/snapshots/</snapshots.path>
111 <releases.path>content/repositories/releases/</releases.path>
112 <docker.repository>nexus3.onap.org:10003</docker.repository>
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>
170 <groupId>org.onap.dcaegen2.analytics.tca-gen2</groupId>
171 <artifactId>eelf-logger-logback-impl</artifactId>
172 <version>${project.version}</version>
177 <groupId>org.apache.commons</groupId>
178 <artifactId>commons-text</artifactId>
179 <version>${commons.text.version}</version>
182 <!-- REST API SWAGGER -->
184 <groupId>io.springfox</groupId>
185 <artifactId>springfox-swagger2</artifactId>
186 <version>${springfox-swagger2.version}</version>
189 <groupId>io.springfox</groupId>
190 <artifactId>springfox-swagger-ui</artifactId>
191 <version>${springfox-swagger2.version}</version>
196 <groupId>com.google.code.findbugs</groupId>
197 <artifactId>jsr305</artifactId>
198 <version>${findbugs.jsr305.version}</version>
199 <scope>provided</scope>
202 <groupId>com.google.code.findbugs</groupId>
203 <artifactId>annotations</artifactId>
204 <version>${findbugs.annotations.version}</version>
205 <scope>provided</scope>
208 <!-- JUNIT 5 DEPENDENCIES -->
210 <groupId>org.junit.jupiter</groupId>
211 <artifactId>junit-jupiter-api</artifactId>
212 <version>${junit-jupiter.version}</version>
216 <groupId>org.junit.jupiter</groupId>
217 <artifactId>junit-jupiter-engine</artifactId>
218 <version>${junit-jupiter.version}</version>
222 <groupId>org.junit.jupiter</groupId>
223 <artifactId>junit-jupiter-params</artifactId>
224 <version>${junit-jupiter.version}</version>
228 <groupId>org.junit.platform</groupId>
229 <artifactId>junit-platform-engine</artifactId>
230 <version>${junit-platform.version}</version>
234 <groupId>org.junit.platform</groupId>
235 <artifactId>junit-platform-launcher</artifactId>
236 <version>${junit-platform.version}</version>
240 <groupId>org.apiguardian</groupId>
241 <artifactId>apiguardian-api</artifactId>
242 <version>${apiguardian-api.version}</version>
246 <!-- IMPORT DEPENDENCY MANAGEMENT FROM SPRING BOOT -->
248 <groupId>org.springframework.boot</groupId>
249 <artifactId>spring-boot-dependencies</artifactId>
250 <version>${spring.boot.version}</version>
253 <groupId>org.springframework</groupId>
254 <artifactId>spring-web</artifactId>
258 <scope>import</scope>
260 <!-- IMPORT DEPENDENCY MANAGEMENT FROM SPRING CLOUD -->
262 <groupId>org.springframework.cloud</groupId>
263 <artifactId>spring-cloud-dependencies</artifactId>
264 <version>${spring.cloud.version}</version>
266 <scope>import</scope>
269 <groupId>org.springframework</groupId>
270 <artifactId>spring-web</artifactId>
271 <version>${spring.version}</version>
274 </dependencyManagement>
282 <!-- COMPILER PLUGIN -->
284 <groupId>org.apache.maven.plugins</groupId>
285 <artifactId>maven-compiler-plugin</artifactId>
286 <version>${maven-compiler-plugin.version}</version>
290 <meminitial>256m</meminitial>
291 <maxmem>1024m</maxmem>
292 <source>${compiler.target.version}</source>
293 <target>${compiler.source.version}</target>
294 <showWarnings>true</showWarnings>
295 <showDeprecation>true</showDeprecation>
299 <!-- MAVEN SOURCE PLUGIN -->
301 <groupId>org.apache.maven.plugins</groupId>
302 <artifactId>maven-source-plugin</artifactId>
303 <version>${maven-source-plugin.version}</version>
305 <excludeResources>true</excludeResources>
309 <id>attach-sources</id>
310 <phase>verify</phase>
312 <goal>jar-no-fork</goal>
318 <!-- MAVEN JAVADOC PLUGIN -->
320 <groupId>org.apache.maven.plugins</groupId>
321 <artifactId>maven-javadoc-plugin</artifactId>
322 <version>${maven-javadoc-plugin.version}</version>
324 <!-- minimize console output messages -->
326 <verbose>false</verbose>
327 <useStandardDocletOptions>false</useStandardDocletOptions>
334 <goal>aggregate</goal>
338 <id>attach-javadoc</id>
346 <!-- MAVEN DEPLOY PLUGIN -->
348 <artifactId>maven-deploy-plugin</artifactId>
349 <version>${maven-deploy-plugin.version}</version>
351 <deployAtEnd>true</deployAtEnd>
355 <!-- SUREFIRE TEST PLUGIN -->
357 <groupId>org.apache.maven.plugins</groupId>
358 <artifactId>maven-surefire-plugin</artifactId>
359 <version>${maven-surefire-plugin.version}</version>
361 <skipTests>${skip.unit.tests}</skipTests>
362 <argLine>-Xmx2048m -Djava.awt.headless=true -XX:+UseConcMarkSweepGC
363 -XX:OnOutOfMemoryError="kill -9 %p" -XX:+HeapDumpOnOutOfMemoryError ${surefireArgLine}
365 <redirectTestOutputToFile>${surefire.redirectTestOutputToFile}</redirectTestOutputToFile>
366 <parallel>classesAndMethods</parallel>
367 <threadCount>4</threadCount>
368 <forkCount>4</forkCount>
369 <reuseForks>false</reuseForks>
370 <reportFormat>xml</reportFormat>
371 <trimStackTrace>false</trimStackTrace>
372 <systemPropertyVariables>
373 <java.io.tmpdir>${project.build.directory}</java.io.tmpdir>
374 <logback.configurationFile>
375 ${basedir}/src/test/resources/logback-test.xml
376 </logback.configurationFile>
377 <logging.config>classpath:logback-test.xml</logging.config>
378 </systemPropertyVariables>
380 <include>${unit.test.pattern}</include>
383 <exclude>${integration.test.pattern}</exclude>
388 <groupId>org.junit.platform</groupId>
389 <artifactId>junit-platform-surefire-provider</artifactId>
390 <version>${junit-platform.version}</version>
395 <!-- FAIL SAFE PLUGIN FOR INTEGRATION TEST -->
397 <groupId>org.apache.maven.plugins</groupId>
398 <artifactId>maven-failsafe-plugin</artifactId>
399 <version>${maven-failsafe-plugin.version}</version>
402 <groupId>org.junit.platform</groupId>
403 <artifactId>junit-platform-surefire-provider</artifactId>
404 <version>${junit-platform.version}</version>
409 <id>integration-tests</id>
411 <goal>integration-test</goal>
415 <argLine>${failsafeArgLine}</argLine>
416 <redirectTestOutputToFile>true</redirectTestOutputToFile>
417 <skipTests>${skip.integration.tests}</skipTests>
419 <include>${integration.test.pattern}</include>
422 <exclude>${unit.test.pattern}</exclude>
424 <systemPropertyVariables>
425 <java.io.tmpdir>${project.build.directory}</java.io.tmpdir>
426 <logging.config>classpath:logback-test.xml</logging.config>
427 </systemPropertyVariables>
434 <!-- FIND BUGS (STATIC CODE ANALYSIS) PLUGIN -->
436 <groupId>org.codehaus.mojo</groupId>
437 <artifactId>findbugs-maven-plugin</artifactId>
438 <version>${findbugs.plugin.version}</version>
441 <threshold>Low</threshold>
442 <xmlOutput>true</xmlOutput>
443 <!-- BUILD FAIL ON FINDBUGS ERRORS -->
444 <failOnError>${findbugs.failOnError}</failOnError>
445 <excludeFilterFile>${main.basedir}/findbugs-exclude.xml</excludeFilterFile>
446 <outputDirectory>${project.reporting.outputDirectory}/findbugs</outputDirectory>
447 <findbugsXmlOutputDirectory>${project.reporting.outputDirectory}/findbugs
448 </findbugsXmlOutputDirectory>
452 <id>analyze-compile</id>
453 <phase>compile</phase>
461 <!-- PMD PLUGIN SETUP -->
463 <groupId>org.apache.maven.plugins</groupId>
464 <artifactId>maven-pmd-plugin</artifactId>
465 <version>${pmd.plugin.version}</version>
467 <sourceEncoding>${project.build.sourceEncoding}</sourceEncoding>
468 <targetJdk>${compiler.target.version}</targetJdk>
469 <linkXRef>false</linkXRef>
471 <exclude>**/*Mixin.java</exclude>
473 <!-- BUILD FAIL ON PMD VIOLATION -->
474 <failOnViolation>${pmd.violation.buildfail}</failOnViolation>
475 <targetDirectory>${project.reporting.outputDirectory}/pmd</targetDirectory>
484 <printFailingErrors>true</printFailingErrors>
485 <excludeFromFailureFile>${main.basedir}/pmd-exclude.properties</excludeFromFailureFile>
491 <goal>cpd-check</goal>
494 <printFailingErrors>true</printFailingErrors>
495 <excludeFromFailureFile>${main.basedir}/cpd-exclude.properties</excludeFromFailureFile>
501 <!-- CHECKSTYLE PLUGIN -->
503 <groupId>org.apache.maven.plugins</groupId>
504 <artifactId>maven-checkstyle-plugin</artifactId>
505 <version>${checkstyle.plugin.version}</version>
509 <phase>validate</phase>
512 <configLocation>${checkstyle.file.name}</configLocation>
513 <suppressionsLocation>${checkstyle.suppression.file.name}</suppressionsLocation>
514 <encoding>UTF-8</encoding>
515 <consoleOutput>true</consoleOutput>
516 <!-- BUILD FAIL ON CHECKSTYLE VIOLATION -->
517 <failOnViolation>${checkstyle.failOnViolation}</failOnViolation>
518 <includeTestSourceDirectory>true</includeTestSourceDirectory>
519 <outputFile>${project.reporting.outputDirectory}/checkstyle</outputFile>
528 <groupId>com.puppycrawl.tools</groupId>
529 <artifactId>checkstyle</artifactId>
530 <version>6.19</version>
535 <!-- LOMBOK PLUGIN -->
537 <groupId>org.projectlombok</groupId>
538 <artifactId>lombok-maven-plugin</artifactId>
539 <version>${lombok.plugin.version}</version>
543 <phase>generate-sources</phase>
545 <goal>delombok</goal>
548 <addOutputDirectory>false</addOutputDirectory>
549 <sourceDirectory>src/main/java</sourceDirectory>
555 <!-- GIT COMMIT ID PLUGIN -->
557 <groupId>pl.project13.maven</groupId>
558 <artifactId>git-commit-id-plugin</artifactId>
559 <version>${gitcommitid.plugin.version}</version>
562 <id>generate-git-properties</id>
563 <phase>generate-resources</phase>
565 <goal>revision</goal>
568 <failOnNoGitDirectory>false</failOnNoGitDirectory>
569 <generateGitPropertiesFile>true</generateGitPropertiesFile>
570 <generateGitPropertiesFilename>
571 ${project.build.directory}/git/git.properties
572 </generateGitPropertiesFilename>
580 <groupId>org.apache.maven.plugins</groupId>
581 <artifactId>maven-jar-plugin</artifactId>
582 <version>${maven-jar-plugin.version}</version>
586 <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
589 <Implementation-Build-Version>${project.version}</Implementation-Build-Version>
596 <!-- ASSEMBLY PLUGIN -->
598 <groupId>org.apache.maven.plugins</groupId>
599 <artifactId>maven-assembly-plugin</artifactId>
600 <version>${maven-assembly-plugin.version}</version>
603 <descriptor>${main.basedir}/assembly/cdp-assembly-descriptor.xml</descriptor>
608 <id>cdp-assembly</id>
609 <phase>package</phase>
617 <!-- BUILD HELPER PLUGIN -->
619 <groupId>org.codehaus.mojo</groupId>
620 <artifactId>build-helper-maven-plugin</artifactId>
621 <version>${maven.build.helper.plugin.version}</version>
624 <!-- SPRING BOOT PLUGIN -->
626 <groupId>org.springframework.boot</groupId>
627 <artifactId>spring-boot-maven-plugin</artifactId>
628 <version>${spring.boot.version}</version>
633 <goal>build-info</goal>
637 <id>spring-boot-uber-jar</id>
639 <goal>repackage</goal>
645 <!-- DOCKER PLUGIN -->
648 <groupId>com.spotify</groupId>
649 <artifactId>docker-maven-plugin</artifactId>
650 <version>${docker-maven-version}</version>
652 <repository>${docker.repository}/onap/${project.groupId}.${project.artifactId}</repository>
653 <tag>${project.version}</tag>
666 <groupId>org.apache.maven.plugins</groupId>
667 <artifactId>maven-compiler-plugin</artifactId>
671 <groupId>org.apache.maven.plugins</groupId>
672 <artifactId>maven-jar-plugin</artifactId>
676 <groupId>org.apache.maven.plugins</groupId>
677 <artifactId>maven-surefire-plugin</artifactId>
681 <groupId>org.apache.maven.plugins</groupId>
682 <artifactId>maven-failsafe-plugin</artifactId>
686 <groupId>org.apache.maven.plugins</groupId>
687 <artifactId>maven-source-plugin</artifactId>
691 <groupId>org.apache.maven.plugins</groupId>
692 <artifactId>maven-javadoc-plugin</artifactId>
696 <groupId>org.apache.maven.plugins</groupId>
697 <artifactId>maven-deploy-plugin</artifactId>
701 <groupId>org.apache.maven.plugins</groupId>
702 <artifactId>maven-pmd-plugin</artifactId>
706 <groupId>org.codehaus.mojo</groupId>
707 <artifactId>findbugs-maven-plugin</artifactId>
711 <groupId>org.apache.maven.plugins</groupId>
712 <artifactId>maven-checkstyle-plugin</artifactId>
716 <groupId>org.jacoco</groupId>
717 <artifactId>jacoco-maven-plugin</artifactId>