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 <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 <findbugs.plugin.version>3.0.5</findbugs.plugin.version>
85 <pmd.plugin.version>3.8</pmd.plugin.version>
86 <checkstyle.plugin.version>2.17</checkstyle.plugin.version>
87 <lombok.plugin.version>1.16.18.1</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 <!--<dockerfile-maven-version>1.4.3</dockerfile-maven-version>-->
91 <docker-maven-version>1.0.0</docker-maven-version>
93 <!--PLUGIN SETTINGS -->
94 <compiler.source.version>1.8</compiler.source.version>
95 <compiler.target.version>1.8</compiler.target.version>
96 <unit.test.pattern>**/*Test.java</unit.test.pattern>
97 <skip.unit.tests>false</skip.unit.tests>
98 <integration.test.pattern>**/*IT.java</integration.test.pattern>
99 <skip.integration.tests>false</skip.integration.tests>
100 <pmd.violation.buildfail>true</pmd.violation.buildfail>
101 <findbugs.failOnError>true</findbugs.failOnError>
102 <checkstyle.failOnViolation>false</checkstyle.failOnViolation>
103 <checkstyle.file.name>checkstyle.xml</checkstyle.file.name>
104 <checkstyle.suppression.file.name>checkstyle-suppressions.xml</checkstyle.suppression.file.name>
107 <dependency.locations.enabled>false</dependency.locations.enabled>
108 <nexusproxy>https://nexus.onap.org</nexusproxy>
109 <snapshots.path>content/repositories/snapshots/</snapshots.path>
110 <releases.path>content/repositories/releases/</releases.path>
111 <docker.repository>nexus3.onap.org:10003</docker.repository>
114 <!-- SONAR EXCLUSIONS -->
115 <!-- EXCLUDE TEST COVERAGE ON
116 TEST PACKAGES - USED FOR TESTING - NOT FOR DEPLOYMENT
117 MODEL PACKAGES - MODELS ONLY CONTAINS POJOs AND NO BUSINESS LOGIC,
118 CONFIG PACKAGE - CONTAINS WIRINGS OF SPRING BEANS,
119 EXCEPTIONS PACKAGE - CONTAINS CUSTOM EXCEPTIONS - NO BUSINESS LOGIC,
120 PREFERENCES CLASSES - JUST POJOS
121 CONTEXTS CLASSES - JUST POJOS
122 ENTITY CLASSES - JUST POJOS
124 <sonar.coverage.exclusions>**/test/**,**/model/**,**/config/**,**/exception/**,**/*Preferences.java,**/*Context*.java,**/*Entity.java</sonar.coverage.exclusions>
130 <dependencyManagement>
134 <!-- PROJECT DEPENDENCIES -->
136 <groupId>${project.groupId}</groupId>
137 <artifactId>dcae-analytics-test</artifactId>
138 <version>${project.version}</version>
143 <groupId>${project.groupId}</groupId>
144 <artifactId>dcae-analytics-model</artifactId>
145 <version>${project.version}</version>
149 <groupId>${project.groupId}</groupId>
150 <artifactId>dcae-analytics-web</artifactId>
151 <version>${project.version}</version>
155 <groupId>${project.groupId}</groupId>
156 <artifactId>dcae-analytics-tca-model</artifactId>
157 <version>${project.version}</version>
161 <groupId>${project.groupId}</groupId>
162 <artifactId>dcae-analytics-tca-core</artifactId>
163 <version>${project.version}</version>
169 <groupId>org.onap.dcaegen2.analytics.tca-gen2</groupId>
170 <artifactId>eelf-logger-logback-impl</artifactId>
171 <version>${eelf.logger.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>
195 <groupId>com.google.code.findbugs</groupId>
196 <artifactId>jsr305</artifactId>
197 <version>${findbugs.jsr305.version}</version>
198 <scope>provided</scope>
201 <groupId>com.google.code.findbugs</groupId>
202 <artifactId>annotations</artifactId>
203 <version>${findbugs.annotations.version}</version>
204 <scope>provided</scope>
207 <!-- JUNIT 5 DEPENDENCIES -->
209 <groupId>org.junit.jupiter</groupId>
210 <artifactId>junit-jupiter-api</artifactId>
211 <version>${junit-jupiter.version}</version>
215 <groupId>org.junit.jupiter</groupId>
216 <artifactId>junit-jupiter-engine</artifactId>
217 <version>${junit-jupiter.version}</version>
221 <groupId>org.junit.jupiter</groupId>
222 <artifactId>junit-jupiter-params</artifactId>
223 <version>${junit-jupiter.version}</version>
227 <groupId>org.junit.platform</groupId>
228 <artifactId>junit-platform-engine</artifactId>
229 <version>${junit-platform.version}</version>
233 <groupId>org.junit.platform</groupId>
234 <artifactId>junit-platform-launcher</artifactId>
235 <version>${junit-platform.version}</version>
239 <groupId>org.apiguardian</groupId>
240 <artifactId>apiguardian-api</artifactId>
241 <version>${apiguardian-api.version}</version>
245 <!-- IMPORT DEPENDENCY MANAGEMENT FROM SPRING BOOT -->
247 <groupId>org.springframework.boot</groupId>
248 <artifactId>spring-boot-dependencies</artifactId>
249 <version>${spring.boot.version}</version>
252 <groupId>org.springframework</groupId>
253 <artifactId>spring-web</artifactId>
257 <scope>import</scope>
259 <!-- IMPORT DEPENDENCY MANAGEMENT FROM SPRING CLOUD -->
261 <groupId>org.springframework.cloud</groupId>
262 <artifactId>spring-cloud-dependencies</artifactId>
263 <version>${spring.cloud.version}</version>
265 <scope>import</scope>
268 <groupId>org.springframework</groupId>
269 <artifactId>spring-web</artifactId>
270 <version>${spring.version}</version>
273 </dependencyManagement>
281 <!-- COMPILER PLUGIN -->
283 <groupId>org.apache.maven.plugins</groupId>
284 <artifactId>maven-compiler-plugin</artifactId>
285 <version>${maven-compiler-plugin.version}</version>
289 <meminitial>256m</meminitial>
290 <maxmem>1024m</maxmem>
291 <source>${compiler.target.version}</source>
292 <target>${compiler.source.version}</target>
293 <showWarnings>true</showWarnings>
294 <showDeprecation>true</showDeprecation>
298 <!-- MAVEN SOURCE PLUGIN -->
300 <groupId>org.apache.maven.plugins</groupId>
301 <artifactId>maven-source-plugin</artifactId>
302 <version>${maven-source-plugin.version}</version>
304 <excludeResources>true</excludeResources>
308 <id>attach-sources</id>
309 <phase>verify</phase>
311 <goal>jar-no-fork</goal>
317 <!-- MAVEN JAVADOC PLUGIN -->
319 <groupId>org.apache.maven.plugins</groupId>
320 <artifactId>maven-javadoc-plugin</artifactId>
321 <version>${maven-javadoc-plugin.version}</version>
323 <!-- minimize console output messages -->
325 <verbose>false</verbose>
326 <useStandardDocletOptions>false</useStandardDocletOptions>
333 <goal>aggregate</goal>
337 <id>attach-javadoc</id>
345 <!-- MAVEN DEPLOY PLUGIN -->
347 <artifactId>maven-deploy-plugin</artifactId>
348 <version>${maven-deploy-plugin.version}</version>
350 <deployAtEnd>true</deployAtEnd>
354 <!-- SUREFIRE TEST PLUGIN -->
356 <groupId>org.apache.maven.plugins</groupId>
357 <artifactId>maven-surefire-plugin</artifactId>
358 <version>${maven-surefire-plugin.version}</version>
360 <skipTests>${skip.unit.tests}</skipTests>
361 <argLine>-Xmx2048m -Djava.awt.headless=true -XX:+UseConcMarkSweepGC
362 -XX:OnOutOfMemoryError="kill -9 %p" -XX:+HeapDumpOnOutOfMemoryError ${surefireArgLine}
364 <redirectTestOutputToFile>${surefire.redirectTestOutputToFile}</redirectTestOutputToFile>
365 <parallel>classesAndMethods</parallel>
366 <threadCount>4</threadCount>
367 <forkCount>4</forkCount>
368 <reuseForks>false</reuseForks>
369 <reportFormat>xml</reportFormat>
370 <trimStackTrace>false</trimStackTrace>
371 <systemPropertyVariables>
372 <java.io.tmpdir>${project.build.directory}</java.io.tmpdir>
373 <logback.configurationFile>
374 ${basedir}/src/test/resources/logback-test.xml
375 </logback.configurationFile>
376 <logging.config>classpath:logback-test.xml</logging.config>
377 </systemPropertyVariables>
379 <include>${unit.test.pattern}</include>
382 <exclude>${integration.test.pattern}</exclude>
387 <groupId>org.junit.platform</groupId>
388 <artifactId>junit-platform-surefire-provider</artifactId>
389 <version>${junit-platform.version}</version>
394 <!-- FAIL SAFE PLUGIN FOR INTEGRATION TEST -->
396 <groupId>org.apache.maven.plugins</groupId>
397 <artifactId>maven-failsafe-plugin</artifactId>
398 <version>${maven-failsafe-plugin.version}</version>
401 <groupId>org.junit.platform</groupId>
402 <artifactId>junit-platform-surefire-provider</artifactId>
403 <version>${junit-platform.version}</version>
408 <id>integration-tests</id>
410 <goal>integration-test</goal>
414 <argLine>${failsafeArgLine}</argLine>
415 <redirectTestOutputToFile>true</redirectTestOutputToFile>
416 <skipTests>${skip.integration.tests}</skipTests>
418 <include>${integration.test.pattern}</include>
421 <exclude>${unit.test.pattern}</exclude>
423 <systemPropertyVariables>
424 <java.io.tmpdir>${project.build.directory}</java.io.tmpdir>
425 <logging.config>classpath:logback-test.xml</logging.config>
426 </systemPropertyVariables>
433 <!-- FIND BUGS (STATIC CODE ANALYSIS) PLUGIN -->
435 <groupId>org.codehaus.mojo</groupId>
436 <artifactId>findbugs-maven-plugin</artifactId>
437 <version>${findbugs.plugin.version}</version>
440 <threshold>Low</threshold>
441 <xmlOutput>true</xmlOutput>
442 <!-- BUILD FAIL ON FINDBUGS ERRORS -->
443 <failOnError>${findbugs.failOnError}</failOnError>
444 <excludeFilterFile>${main.basedir}/findbugs-exclude.xml</excludeFilterFile>
445 <outputDirectory>${project.reporting.outputDirectory}/findbugs</outputDirectory>
446 <findbugsXmlOutputDirectory>${project.reporting.outputDirectory}/findbugs
447 </findbugsXmlOutputDirectory>
451 <id>analyze-compile</id>
452 <phase>compile</phase>
460 <!-- PMD PLUGIN SETUP -->
462 <groupId>org.apache.maven.plugins</groupId>
463 <artifactId>maven-pmd-plugin</artifactId>
464 <version>${pmd.plugin.version}</version>
466 <sourceEncoding>${project.build.sourceEncoding}</sourceEncoding>
467 <targetJdk>${compiler.target.version}</targetJdk>
468 <linkXRef>false</linkXRef>
470 <exclude>**/*Mixin.java</exclude>
472 <!-- BUILD FAIL ON PMD VIOLATION -->
473 <failOnViolation>${pmd.violation.buildfail}</failOnViolation>
474 <targetDirectory>${project.reporting.outputDirectory}/pmd</targetDirectory>
483 <printFailingErrors>true</printFailingErrors>
484 <excludeFromFailureFile>${main.basedir}/pmd-exclude.properties</excludeFromFailureFile>
490 <goal>cpd-check</goal>
493 <printFailingErrors>true</printFailingErrors>
494 <excludeFromFailureFile>${main.basedir}/cpd-exclude.properties</excludeFromFailureFile>
500 <!-- CHECKSTYLE PLUGIN -->
502 <groupId>org.apache.maven.plugins</groupId>
503 <artifactId>maven-checkstyle-plugin</artifactId>
504 <version>${checkstyle.plugin.version}</version>
508 <phase>validate</phase>
510 <configLocation>${checkstyle.file.name}</configLocation>
511 <suppressionsLocation>${checkstyle.suppression.file.name}</suppressionsLocation>
512 <encoding>UTF-8</encoding>
513 <consoleOutput>true</consoleOutput>
514 <!-- BUILD FAIL ON CHECKSTYLE VIOLATION -->
515 <failOnViolation>${checkstyle.failOnViolation}</failOnViolation>
516 <includeTestSourceDirectory>true</includeTestSourceDirectory>
517 <outputFile>${project.reporting.outputDirectory}/checkstyle</outputFile>
526 <groupId>com.puppycrawl.tools</groupId>
527 <artifactId>checkstyle</artifactId>
528 <version>6.19</version>
533 <!-- LOMBOK PLUGIN -->
535 <groupId>org.projectlombok</groupId>
536 <artifactId>lombok-maven-plugin</artifactId>
537 <version>${lombok.plugin.version}</version>
541 <phase>generate-sources</phase>
543 <goal>delombok</goal>
546 <addOutputDirectory>false</addOutputDirectory>
547 <sourceDirectory>src/main/java</sourceDirectory>
553 <!-- GIT COMMIT ID PLUGIN -->
555 <groupId>pl.project13.maven</groupId>
556 <artifactId>git-commit-id-plugin</artifactId>
557 <version>${gitcommitid.plugin.version}</version>
560 <id>generate-git-properties</id>
561 <phase>generate-resources</phase>
563 <goal>revision</goal>
566 <failOnNoGitDirectory>false</failOnNoGitDirectory>
567 <generateGitPropertiesFile>true</generateGitPropertiesFile>
568 <generateGitPropertiesFilename>
569 ${project.build.directory}/git/git.properties
570 </generateGitPropertiesFilename>
578 <groupId>org.apache.maven.plugins</groupId>
579 <artifactId>maven-jar-plugin</artifactId>
580 <version>${maven-jar-plugin.version}</version>
584 <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
587 <Implementation-Build-Version>${project.version}</Implementation-Build-Version>
594 <!-- ASSEMBLY PLUGIN -->
596 <groupId>org.apache.maven.plugins</groupId>
597 <artifactId>maven-assembly-plugin</artifactId>
598 <version>${maven-assembly-plugin.version}</version>
601 <descriptor>${main.basedir}/assembly/cdp-assembly-descriptor.xml</descriptor>
606 <id>cdp-assembly</id>
607 <phase>package</phase>
615 <!-- BUILD HELPER PLUGIN -->
617 <groupId>org.codehaus.mojo</groupId>
618 <artifactId>build-helper-maven-plugin</artifactId>
619 <version>${maven.build.helper.plugin.version}</version>
622 <!-- SPRING BOOT PLUGIN -->
624 <groupId>org.springframework.boot</groupId>
625 <artifactId>spring-boot-maven-plugin</artifactId>
626 <version>${spring.boot.version}</version>
631 <goal>build-info</goal>
635 <id>spring-boot-uber-jar</id>
637 <goal>repackage</goal>
643 <!-- DOCKER PLUGIN -->
646 <groupId>com.spotify</groupId>
647 <artifactId>docker-maven-plugin</artifactId>
648 <version>${docker-maven-version}</version>
650 <repository>${docker.repository}/onap/${project.groupId}.${project.artifactId}</repository>
651 <tag>${project.version}</tag>
664 <groupId>org.apache.maven.plugins</groupId>
665 <artifactId>maven-compiler-plugin</artifactId>
669 <groupId>org.apache.maven.plugins</groupId>
670 <artifactId>maven-jar-plugin</artifactId>
674 <groupId>org.apache.maven.plugins</groupId>
675 <artifactId>maven-surefire-plugin</artifactId>
679 <groupId>org.apache.maven.plugins</groupId>
680 <artifactId>maven-failsafe-plugin</artifactId>
684 <groupId>org.apache.maven.plugins</groupId>
685 <artifactId>maven-source-plugin</artifactId>
689 <groupId>org.apache.maven.plugins</groupId>
690 <artifactId>maven-javadoc-plugin</artifactId>
694 <groupId>org.apache.maven.plugins</groupId>
695 <artifactId>maven-deploy-plugin</artifactId>
699 <groupId>org.apache.maven.plugins</groupId>
700 <artifactId>maven-pmd-plugin</artifactId>
704 <groupId>org.codehaus.mojo</groupId>
705 <artifactId>findbugs-maven-plugin</artifactId>
709 <groupId>org.apache.maven.plugins</groupId>
710 <artifactId>maven-checkstyle-plugin</artifactId>
714 <groupId>org.jacoco</groupId>
715 <artifactId>jacoco-maven-plugin</artifactId>