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
119 CONTEXTS CLASSES - JUST POJOS
120 ENTITY CLASSES - JUST POJOS
122 <sonar.coverage.exclusions>**/test/**,**/model/**,**/config/**,**/exception/**,**/*Preferences.java,**/*Context*.java,**/*Entity.java</sonar.coverage.exclusions>
128 <dependencyManagement>
132 <!-- PROJECT DEPENDENCIES -->
134 <groupId>${project.groupId}</groupId>
135 <artifactId>dcae-analytics-test</artifactId>
136 <version>${project.version}</version>
141 <groupId>${project.groupId}</groupId>
142 <artifactId>dcae-analytics-model</artifactId>
143 <version>${project.version}</version>
147 <groupId>${project.groupId}</groupId>
148 <artifactId>dcae-analytics-web</artifactId>
149 <version>${project.version}</version>
153 <groupId>${project.groupId}</groupId>
154 <artifactId>dcae-analytics-tca-model</artifactId>
155 <version>${project.version}</version>
159 <groupId>${project.groupId}</groupId>
160 <artifactId>dcae-analytics-tca-core</artifactId>
161 <version>${project.version}</version>
167 <groupId>org.onap.dcaegen2.analytics.tca-gen2</groupId>
168 <artifactId>eelf-logger-logback-impl</artifactId>
169 <version>${eelf.logger.version}</version>
174 <groupId>org.apache.commons</groupId>
175 <artifactId>commons-text</artifactId>
176 <version>${commons.text.version}</version>
179 <!-- REST API SWAGGER -->
181 <groupId>io.springfox</groupId>
182 <artifactId>springfox-swagger2</artifactId>
183 <version>${springfox-swagger2.version}</version>
186 <groupId>io.springfox</groupId>
187 <artifactId>springfox-swagger-ui</artifactId>
188 <version>${springfox-swagger2.version}</version>
193 <groupId>com.google.code.findbugs</groupId>
194 <artifactId>jsr305</artifactId>
195 <version>${findbugs.jsr305.version}</version>
196 <scope>provided</scope>
199 <groupId>com.google.code.findbugs</groupId>
200 <artifactId>annotations</artifactId>
201 <version>${findbugs.annotations.version}</version>
202 <scope>provided</scope>
205 <!-- JUNIT 5 DEPENDENCIES -->
207 <groupId>org.junit.jupiter</groupId>
208 <artifactId>junit-jupiter-api</artifactId>
209 <version>${junit-jupiter.version}</version>
213 <groupId>org.junit.jupiter</groupId>
214 <artifactId>junit-jupiter-engine</artifactId>
215 <version>${junit-jupiter.version}</version>
219 <groupId>org.junit.jupiter</groupId>
220 <artifactId>junit-jupiter-params</artifactId>
221 <version>${junit-jupiter.version}</version>
225 <groupId>org.junit.platform</groupId>
226 <artifactId>junit-platform-engine</artifactId>
227 <version>${junit-platform.version}</version>
231 <groupId>org.junit.platform</groupId>
232 <artifactId>junit-platform-launcher</artifactId>
233 <version>${junit-platform.version}</version>
237 <groupId>org.apiguardian</groupId>
238 <artifactId>apiguardian-api</artifactId>
239 <version>${apiguardian-api.version}</version>
243 <!-- IMPORT DEPENDENCY MANAGEMENT FROM SPRING BOOT -->
245 <groupId>org.springframework.boot</groupId>
246 <artifactId>spring-boot-dependencies</artifactId>
247 <version>${spring.boot.version}</version>
249 <scope>import</scope>
251 <!-- IMPORT DEPENDENCY MANAGEMENT FROM SPRING CLOUD -->
253 <groupId>org.springframework.cloud</groupId>
254 <artifactId>spring-cloud-dependencies</artifactId>
255 <version>${spring.cloud.version}</version>
257 <scope>import</scope>
261 </dependencyManagement>
269 <!-- COMPILER PLUGIN -->
271 <groupId>org.apache.maven.plugins</groupId>
272 <artifactId>maven-compiler-plugin</artifactId>
273 <version>${maven-compiler-plugin.version}</version>
277 <meminitial>256m</meminitial>
278 <maxmem>1024m</maxmem>
279 <source>${compiler.target.version}</source>
280 <target>${compiler.source.version}</target>
281 <showWarnings>true</showWarnings>
282 <showDeprecation>true</showDeprecation>
286 <!-- MAVEN SOURCE PLUGIN -->
288 <groupId>org.apache.maven.plugins</groupId>
289 <artifactId>maven-source-plugin</artifactId>
290 <version>${maven-source-plugin.version}</version>
292 <excludeResources>true</excludeResources>
296 <id>attach-sources</id>
297 <phase>verify</phase>
299 <goal>jar-no-fork</goal>
305 <!-- MAVEN JAVADOC PLUGIN -->
307 <groupId>org.apache.maven.plugins</groupId>
308 <artifactId>maven-javadoc-plugin</artifactId>
309 <version>${maven-javadoc-plugin.version}</version>
311 <!-- minimize console output messages -->
313 <verbose>false</verbose>
314 <useStandardDocletOptions>false</useStandardDocletOptions>
321 <goal>aggregate</goal>
325 <id>attach-javadoc</id>
333 <!-- MAVEN DEPLOY PLUGIN -->
335 <artifactId>maven-deploy-plugin</artifactId>
336 <version>${maven-deploy-plugin.version}</version>
338 <deployAtEnd>true</deployAtEnd>
342 <!-- SUREFIRE TEST PLUGIN -->
344 <groupId>org.apache.maven.plugins</groupId>
345 <artifactId>maven-surefire-plugin</artifactId>
346 <version>${maven-surefire-plugin.version}</version>
348 <skipTests>${skip.unit.tests}</skipTests>
349 <argLine>-Xmx2048m -Djava.awt.headless=true -XX:+UseConcMarkSweepGC
350 -XX:OnOutOfMemoryError="kill -9 %p" -XX:+HeapDumpOnOutOfMemoryError ${surefireArgLine}
352 <redirectTestOutputToFile>${surefire.redirectTestOutputToFile}</redirectTestOutputToFile>
353 <parallel>classesAndMethods</parallel>
354 <threadCount>4</threadCount>
355 <forkCount>4</forkCount>
356 <reuseForks>false</reuseForks>
357 <reportFormat>xml</reportFormat>
358 <trimStackTrace>false</trimStackTrace>
359 <systemPropertyVariables>
360 <java.io.tmpdir>${project.build.directory}</java.io.tmpdir>
361 <logback.configurationFile>
362 ${basedir}/src/test/resources/logback-test.xml
363 </logback.configurationFile>
364 <logging.config>classpath:logback-test.xml</logging.config>
365 </systemPropertyVariables>
367 <include>${unit.test.pattern}</include>
370 <exclude>${integration.test.pattern}</exclude>
375 <groupId>org.junit.platform</groupId>
376 <artifactId>junit-platform-surefire-provider</artifactId>
377 <version>${junit-platform.version}</version>
382 <!-- FAIL SAFE PLUGIN FOR INTEGRATION TEST -->
384 <groupId>org.apache.maven.plugins</groupId>
385 <artifactId>maven-failsafe-plugin</artifactId>
386 <version>${maven-failsafe-plugin.version}</version>
389 <groupId>org.junit.platform</groupId>
390 <artifactId>junit-platform-surefire-provider</artifactId>
391 <version>${junit-platform.version}</version>
396 <id>integration-tests</id>
398 <goal>integration-test</goal>
402 <argLine>${failsafeArgLine}</argLine>
403 <redirectTestOutputToFile>true</redirectTestOutputToFile>
404 <skipTests>${skip.integration.tests}</skipTests>
406 <include>${integration.test.pattern}</include>
409 <exclude>${unit.test.pattern}</exclude>
411 <systemPropertyVariables>
412 <java.io.tmpdir>${project.build.directory}</java.io.tmpdir>
413 <logging.config>classpath:logback-test.xml</logging.config>
414 </systemPropertyVariables>
421 <!-- FIND BUGS (STATIC CODE ANALYSIS) PLUGIN -->
423 <groupId>org.codehaus.mojo</groupId>
424 <artifactId>findbugs-maven-plugin</artifactId>
425 <version>${findbugs.plugin.version}</version>
428 <threshold>Low</threshold>
429 <xmlOutput>true</xmlOutput>
430 <!-- BUILD FAIL ON FINDBUGS ERRORS -->
431 <failOnError>${findbugs.failOnError}</failOnError>
432 <excludeFilterFile>${main.basedir}/findbugs-exclude.xml</excludeFilterFile>
433 <outputDirectory>${project.reporting.outputDirectory}/findbugs</outputDirectory>
434 <findbugsXmlOutputDirectory>${project.reporting.outputDirectory}/findbugs
435 </findbugsXmlOutputDirectory>
439 <id>analyze-compile</id>
440 <phase>compile</phase>
448 <!-- PMD PLUGIN SETUP -->
450 <groupId>org.apache.maven.plugins</groupId>
451 <artifactId>maven-pmd-plugin</artifactId>
452 <version>${pmd.plugin.version}</version>
454 <sourceEncoding>${project.build.sourceEncoding}</sourceEncoding>
455 <targetJdk>${compiler.target.version}</targetJdk>
456 <linkXRef>false</linkXRef>
458 <exclude>**/*Mixin.java</exclude>
460 <!-- BUILD FAIL ON PMD VIOLATION -->
461 <failOnViolation>${pmd.violation.buildfail}</failOnViolation>
462 <targetDirectory>${project.reporting.outputDirectory}/pmd</targetDirectory>
471 <printFailingErrors>true</printFailingErrors>
472 <excludeFromFailureFile>${main.basedir}/pmd-exclude.properties</excludeFromFailureFile>
478 <goal>cpd-check</goal>
481 <printFailingErrors>true</printFailingErrors>
482 <excludeFromFailureFile>${main.basedir}/cpd-exclude.properties</excludeFromFailureFile>
488 <!-- CHECKSTYLE PLUGIN -->
490 <groupId>org.apache.maven.plugins</groupId>
491 <artifactId>maven-checkstyle-plugin</artifactId>
492 <version>${checkstyle.plugin.version}</version>
496 <phase>validate</phase>
498 <configLocation>${checkstyle.file.name}</configLocation>
499 <suppressionsLocation>${checkstyle.suppression.file.name}</suppressionsLocation>
500 <encoding>UTF-8</encoding>
501 <consoleOutput>true</consoleOutput>
502 <!-- BUILD FAIL ON CHECKSTYLE VIOLATION -->
503 <failOnViolation>${checkstyle.failOnViolation}</failOnViolation>
504 <includeTestSourceDirectory>true</includeTestSourceDirectory>
505 <outputFile>${project.reporting.outputDirectory}/checkstyle</outputFile>
514 <groupId>com.puppycrawl.tools</groupId>
515 <artifactId>checkstyle</artifactId>
516 <version>6.19</version>
521 <!-- LOMBOK PLUGIN -->
523 <groupId>org.projectlombok</groupId>
524 <artifactId>lombok-maven-plugin</artifactId>
525 <version>${lombok.plugin.version}</version>
529 <phase>generate-sources</phase>
531 <goal>delombok</goal>
534 <addOutputDirectory>false</addOutputDirectory>
535 <sourceDirectory>src/main/java</sourceDirectory>
541 <!-- GIT COMMIT ID PLUGIN -->
543 <groupId>pl.project13.maven</groupId>
544 <artifactId>git-commit-id-plugin</artifactId>
545 <version>${gitcommitid.plugin.version}</version>
548 <id>generate-git-properties</id>
549 <phase>generate-resources</phase>
551 <goal>revision</goal>
554 <failOnNoGitDirectory>false</failOnNoGitDirectory>
555 <generateGitPropertiesFile>true</generateGitPropertiesFile>
556 <generateGitPropertiesFilename>
557 ${project.build.directory}/git/git.properties
558 </generateGitPropertiesFilename>
566 <groupId>org.apache.maven.plugins</groupId>
567 <artifactId>maven-jar-plugin</artifactId>
568 <version>${maven-jar-plugin.version}</version>
572 <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
575 <Implementation-Build-Version>${project.version}</Implementation-Build-Version>
582 <!-- ASSEMBLY PLUGIN -->
584 <groupId>org.apache.maven.plugins</groupId>
585 <artifactId>maven-assembly-plugin</artifactId>
586 <version>${maven-assembly-plugin.version}</version>
589 <descriptor>${main.basedir}/assembly/cdp-assembly-descriptor.xml</descriptor>
594 <id>cdp-assembly</id>
595 <phase>package</phase>
603 <!-- BUILD HELPER PLUGIN -->
605 <groupId>org.codehaus.mojo</groupId>
606 <artifactId>build-helper-maven-plugin</artifactId>
607 <version>${maven.build.helper.plugin.version}</version>
610 <!-- SPRING BOOT PLUGIN -->
612 <groupId>org.springframework.boot</groupId>
613 <artifactId>spring-boot-maven-plugin</artifactId>
614 <version>${spring.boot.version}</version>
619 <goal>build-info</goal>
623 <id>spring-boot-uber-jar</id>
625 <goal>repackage</goal>
631 <!-- DOCKER PLUGIN -->
633 <groupId>com.spotify</groupId>
634 <artifactId>dockerfile-maven-plugin</artifactId>
635 <version>${dockerfile-maven-version}</version>
637 <repository>${docker.repository}/onap/${project.groupId}.${project.artifactId}</repository>
638 <tag>${project.version}</tag>
650 <groupId>org.apache.maven.plugins</groupId>
651 <artifactId>maven-compiler-plugin</artifactId>
655 <groupId>org.apache.maven.plugins</groupId>
656 <artifactId>maven-jar-plugin</artifactId>
660 <groupId>org.apache.maven.plugins</groupId>
661 <artifactId>maven-surefire-plugin</artifactId>
665 <groupId>org.apache.maven.plugins</groupId>
666 <artifactId>maven-failsafe-plugin</artifactId>
670 <groupId>org.apache.maven.plugins</groupId>
671 <artifactId>maven-source-plugin</artifactId>
675 <groupId>org.apache.maven.plugins</groupId>
676 <artifactId>maven-javadoc-plugin</artifactId>
680 <groupId>org.apache.maven.plugins</groupId>
681 <artifactId>maven-deploy-plugin</artifactId>
685 <groupId>org.apache.maven.plugins</groupId>
686 <artifactId>maven-pmd-plugin</artifactId>
690 <groupId>org.codehaus.mojo</groupId>
691 <artifactId>findbugs-maven-plugin</artifactId>
695 <groupId>org.apache.maven.plugins</groupId>
696 <artifactId>maven-checkstyle-plugin</artifactId>
700 <groupId>org.jacoco</groupId>
701 <artifactId>jacoco-maven-plugin</artifactId>