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>-->
90 <docker-maven-version>1.0.0</docker-maven-version>
92 <!--PLUGIN SETTINGS -->
93 <compiler.source.version>1.8</compiler.source.version>
94 <compiler.target.version>1.8</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>
113 <!-- SONAR EXCLUSIONS -->
114 <!-- EXCLUDE TEST COVERAGE ON
115 TEST PACKAGES - USED FOR TESTING - NOT FOR DEPLOYMENT
116 MODEL PACKAGES - MODELS ONLY CONTAINS POJOs AND NO BUSINESS LOGIC,
117 CONFIG PACKAGE - CONTAINS WIRINGS OF SPRING BEANS,
118 EXCEPTIONS PACKAGE - CONTAINS CUSTOM EXCEPTIONS - NO BUSINESS LOGIC,
119 PREFERENCES CLASSES - JUST POJOS
120 CONTEXTS CLASSES - JUST POJOS
121 ENTITY CLASSES - JUST POJOS
123 <sonar.coverage.exclusions>**/test/**,**/model/**,**/config/**,**/exception/**,**/*Preferences.java,**/*Context*.java,**/*Entity.java</sonar.coverage.exclusions>
129 <dependencyManagement>
133 <!-- PROJECT DEPENDENCIES -->
135 <groupId>${project.groupId}</groupId>
136 <artifactId>dcae-analytics-test</artifactId>
137 <version>${project.version}</version>
142 <groupId>${project.groupId}</groupId>
143 <artifactId>dcae-analytics-model</artifactId>
144 <version>${project.version}</version>
148 <groupId>${project.groupId}</groupId>
149 <artifactId>dcae-analytics-web</artifactId>
150 <version>${project.version}</version>
154 <groupId>${project.groupId}</groupId>
155 <artifactId>dcae-analytics-tca-model</artifactId>
156 <version>${project.version}</version>
160 <groupId>${project.groupId}</groupId>
161 <artifactId>dcae-analytics-tca-core</artifactId>
162 <version>${project.version}</version>
168 <groupId>org.onap.dcaegen2.analytics.tca-gen2</groupId>
169 <artifactId>eelf-logger-logback-impl</artifactId>
170 <version>${eelf.logger.version}</version>
175 <groupId>org.apache.commons</groupId>
176 <artifactId>commons-text</artifactId>
177 <version>${commons.text.version}</version>
180 <!-- REST API SWAGGER -->
182 <groupId>io.springfox</groupId>
183 <artifactId>springfox-swagger2</artifactId>
184 <version>${springfox-swagger2.version}</version>
187 <groupId>io.springfox</groupId>
188 <artifactId>springfox-swagger-ui</artifactId>
189 <version>${springfox-swagger2.version}</version>
194 <groupId>com.google.code.findbugs</groupId>
195 <artifactId>jsr305</artifactId>
196 <version>${findbugs.jsr305.version}</version>
197 <scope>provided</scope>
200 <groupId>com.google.code.findbugs</groupId>
201 <artifactId>annotations</artifactId>
202 <version>${findbugs.annotations.version}</version>
203 <scope>provided</scope>
206 <!-- JUNIT 5 DEPENDENCIES -->
208 <groupId>org.junit.jupiter</groupId>
209 <artifactId>junit-jupiter-api</artifactId>
210 <version>${junit-jupiter.version}</version>
214 <groupId>org.junit.jupiter</groupId>
215 <artifactId>junit-jupiter-engine</artifactId>
216 <version>${junit-jupiter.version}</version>
220 <groupId>org.junit.jupiter</groupId>
221 <artifactId>junit-jupiter-params</artifactId>
222 <version>${junit-jupiter.version}</version>
226 <groupId>org.junit.platform</groupId>
227 <artifactId>junit-platform-engine</artifactId>
228 <version>${junit-platform.version}</version>
232 <groupId>org.junit.platform</groupId>
233 <artifactId>junit-platform-launcher</artifactId>
234 <version>${junit-platform.version}</version>
238 <groupId>org.apiguardian</groupId>
239 <artifactId>apiguardian-api</artifactId>
240 <version>${apiguardian-api.version}</version>
244 <!-- IMPORT DEPENDENCY MANAGEMENT FROM SPRING BOOT -->
246 <groupId>org.springframework.boot</groupId>
247 <artifactId>spring-boot-dependencies</artifactId>
248 <version>${spring.boot.version}</version>
250 <scope>import</scope>
252 <!-- IMPORT DEPENDENCY MANAGEMENT FROM SPRING CLOUD -->
254 <groupId>org.springframework.cloud</groupId>
255 <artifactId>spring-cloud-dependencies</artifactId>
256 <version>${spring.cloud.version}</version>
258 <scope>import</scope>
262 </dependencyManagement>
270 <!-- COMPILER PLUGIN -->
272 <groupId>org.apache.maven.plugins</groupId>
273 <artifactId>maven-compiler-plugin</artifactId>
274 <version>${maven-compiler-plugin.version}</version>
278 <meminitial>256m</meminitial>
279 <maxmem>1024m</maxmem>
280 <source>${compiler.target.version}</source>
281 <target>${compiler.source.version}</target>
282 <showWarnings>true</showWarnings>
283 <showDeprecation>true</showDeprecation>
287 <!-- MAVEN SOURCE PLUGIN -->
289 <groupId>org.apache.maven.plugins</groupId>
290 <artifactId>maven-source-plugin</artifactId>
291 <version>${maven-source-plugin.version}</version>
293 <excludeResources>true</excludeResources>
297 <id>attach-sources</id>
298 <phase>verify</phase>
300 <goal>jar-no-fork</goal>
306 <!-- MAVEN JAVADOC PLUGIN -->
308 <groupId>org.apache.maven.plugins</groupId>
309 <artifactId>maven-javadoc-plugin</artifactId>
310 <version>${maven-javadoc-plugin.version}</version>
312 <!-- minimize console output messages -->
314 <verbose>false</verbose>
315 <useStandardDocletOptions>false</useStandardDocletOptions>
322 <goal>aggregate</goal>
326 <id>attach-javadoc</id>
334 <!-- MAVEN DEPLOY PLUGIN -->
336 <artifactId>maven-deploy-plugin</artifactId>
337 <version>${maven-deploy-plugin.version}</version>
339 <deployAtEnd>true</deployAtEnd>
343 <!-- SUREFIRE TEST PLUGIN -->
345 <groupId>org.apache.maven.plugins</groupId>
346 <artifactId>maven-surefire-plugin</artifactId>
347 <version>${maven-surefire-plugin.version}</version>
349 <skipTests>${skip.unit.tests}</skipTests>
350 <argLine>-Xmx2048m -Djava.awt.headless=true -XX:+UseConcMarkSweepGC
351 -XX:OnOutOfMemoryError="kill -9 %p" -XX:+HeapDumpOnOutOfMemoryError ${surefireArgLine}
353 <redirectTestOutputToFile>${surefire.redirectTestOutputToFile}</redirectTestOutputToFile>
354 <parallel>classesAndMethods</parallel>
355 <threadCount>4</threadCount>
356 <forkCount>4</forkCount>
357 <reuseForks>false</reuseForks>
358 <reportFormat>xml</reportFormat>
359 <trimStackTrace>false</trimStackTrace>
360 <systemPropertyVariables>
361 <java.io.tmpdir>${project.build.directory}</java.io.tmpdir>
362 <logback.configurationFile>
363 ${basedir}/src/test/resources/logback-test.xml
364 </logback.configurationFile>
365 <logging.config>classpath:logback-test.xml</logging.config>
366 </systemPropertyVariables>
368 <include>${unit.test.pattern}</include>
371 <exclude>${integration.test.pattern}</exclude>
376 <groupId>org.junit.platform</groupId>
377 <artifactId>junit-platform-surefire-provider</artifactId>
378 <version>${junit-platform.version}</version>
383 <!-- FAIL SAFE PLUGIN FOR INTEGRATION TEST -->
385 <groupId>org.apache.maven.plugins</groupId>
386 <artifactId>maven-failsafe-plugin</artifactId>
387 <version>${maven-failsafe-plugin.version}</version>
390 <groupId>org.junit.platform</groupId>
391 <artifactId>junit-platform-surefire-provider</artifactId>
392 <version>${junit-platform.version}</version>
397 <id>integration-tests</id>
399 <goal>integration-test</goal>
403 <argLine>${failsafeArgLine}</argLine>
404 <redirectTestOutputToFile>true</redirectTestOutputToFile>
405 <skipTests>${skip.integration.tests}</skipTests>
407 <include>${integration.test.pattern}</include>
410 <exclude>${unit.test.pattern}</exclude>
412 <systemPropertyVariables>
413 <java.io.tmpdir>${project.build.directory}</java.io.tmpdir>
414 <logging.config>classpath:logback-test.xml</logging.config>
415 </systemPropertyVariables>
422 <!-- FIND BUGS (STATIC CODE ANALYSIS) PLUGIN -->
424 <groupId>org.codehaus.mojo</groupId>
425 <artifactId>findbugs-maven-plugin</artifactId>
426 <version>${findbugs.plugin.version}</version>
429 <threshold>Low</threshold>
430 <xmlOutput>true</xmlOutput>
431 <!-- BUILD FAIL ON FINDBUGS ERRORS -->
432 <failOnError>${findbugs.failOnError}</failOnError>
433 <excludeFilterFile>${main.basedir}/findbugs-exclude.xml</excludeFilterFile>
434 <outputDirectory>${project.reporting.outputDirectory}/findbugs</outputDirectory>
435 <findbugsXmlOutputDirectory>${project.reporting.outputDirectory}/findbugs
436 </findbugsXmlOutputDirectory>
440 <id>analyze-compile</id>
441 <phase>compile</phase>
449 <!-- PMD PLUGIN SETUP -->
451 <groupId>org.apache.maven.plugins</groupId>
452 <artifactId>maven-pmd-plugin</artifactId>
453 <version>${pmd.plugin.version}</version>
455 <sourceEncoding>${project.build.sourceEncoding}</sourceEncoding>
456 <targetJdk>${compiler.target.version}</targetJdk>
457 <linkXRef>false</linkXRef>
459 <exclude>**/*Mixin.java</exclude>
461 <!-- BUILD FAIL ON PMD VIOLATION -->
462 <failOnViolation>${pmd.violation.buildfail}</failOnViolation>
463 <targetDirectory>${project.reporting.outputDirectory}/pmd</targetDirectory>
472 <printFailingErrors>true</printFailingErrors>
473 <excludeFromFailureFile>${main.basedir}/pmd-exclude.properties</excludeFromFailureFile>
479 <goal>cpd-check</goal>
482 <printFailingErrors>true</printFailingErrors>
483 <excludeFromFailureFile>${main.basedir}/cpd-exclude.properties</excludeFromFailureFile>
489 <!-- CHECKSTYLE PLUGIN -->
491 <groupId>org.apache.maven.plugins</groupId>
492 <artifactId>maven-checkstyle-plugin</artifactId>
493 <version>${checkstyle.plugin.version}</version>
497 <phase>validate</phase>
499 <configLocation>${checkstyle.file.name}</configLocation>
500 <suppressionsLocation>${checkstyle.suppression.file.name}</suppressionsLocation>
501 <encoding>UTF-8</encoding>
502 <consoleOutput>true</consoleOutput>
503 <!-- BUILD FAIL ON CHECKSTYLE VIOLATION -->
504 <failOnViolation>${checkstyle.failOnViolation}</failOnViolation>
505 <includeTestSourceDirectory>true</includeTestSourceDirectory>
506 <outputFile>${project.reporting.outputDirectory}/checkstyle</outputFile>
515 <groupId>com.puppycrawl.tools</groupId>
516 <artifactId>checkstyle</artifactId>
517 <version>6.19</version>
522 <!-- LOMBOK PLUGIN -->
524 <groupId>org.projectlombok</groupId>
525 <artifactId>lombok-maven-plugin</artifactId>
526 <version>${lombok.plugin.version}</version>
530 <phase>generate-sources</phase>
532 <goal>delombok</goal>
535 <addOutputDirectory>false</addOutputDirectory>
536 <sourceDirectory>src/main/java</sourceDirectory>
542 <!-- GIT COMMIT ID PLUGIN -->
544 <groupId>pl.project13.maven</groupId>
545 <artifactId>git-commit-id-plugin</artifactId>
546 <version>${gitcommitid.plugin.version}</version>
549 <id>generate-git-properties</id>
550 <phase>generate-resources</phase>
552 <goal>revision</goal>
555 <failOnNoGitDirectory>false</failOnNoGitDirectory>
556 <generateGitPropertiesFile>true</generateGitPropertiesFile>
557 <generateGitPropertiesFilename>
558 ${project.build.directory}/git/git.properties
559 </generateGitPropertiesFilename>
567 <groupId>org.apache.maven.plugins</groupId>
568 <artifactId>maven-jar-plugin</artifactId>
569 <version>${maven-jar-plugin.version}</version>
573 <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
576 <Implementation-Build-Version>${project.version}</Implementation-Build-Version>
583 <!-- ASSEMBLY PLUGIN -->
585 <groupId>org.apache.maven.plugins</groupId>
586 <artifactId>maven-assembly-plugin</artifactId>
587 <version>${maven-assembly-plugin.version}</version>
590 <descriptor>${main.basedir}/assembly/cdp-assembly-descriptor.xml</descriptor>
595 <id>cdp-assembly</id>
596 <phase>package</phase>
604 <!-- BUILD HELPER PLUGIN -->
606 <groupId>org.codehaus.mojo</groupId>
607 <artifactId>build-helper-maven-plugin</artifactId>
608 <version>${maven.build.helper.plugin.version}</version>
611 <!-- SPRING BOOT PLUGIN -->
613 <groupId>org.springframework.boot</groupId>
614 <artifactId>spring-boot-maven-plugin</artifactId>
615 <version>${spring.boot.version}</version>
620 <goal>build-info</goal>
624 <id>spring-boot-uber-jar</id>
626 <goal>repackage</goal>
632 <!-- DOCKER PLUGIN -->
635 <groupId>com.spotify</groupId>
636 <artifactId>docker-maven-plugin</artifactId>
637 <version>${docker-maven-version}</version>
639 <repository>${docker.repository}/onap/${project.groupId}.${project.artifactId}</repository>
640 <tag>${project.version}</tag>
653 <groupId>org.apache.maven.plugins</groupId>
654 <artifactId>maven-compiler-plugin</artifactId>
658 <groupId>org.apache.maven.plugins</groupId>
659 <artifactId>maven-jar-plugin</artifactId>
663 <groupId>org.apache.maven.plugins</groupId>
664 <artifactId>maven-surefire-plugin</artifactId>
668 <groupId>org.apache.maven.plugins</groupId>
669 <artifactId>maven-failsafe-plugin</artifactId>
673 <groupId>org.apache.maven.plugins</groupId>
674 <artifactId>maven-source-plugin</artifactId>
678 <groupId>org.apache.maven.plugins</groupId>
679 <artifactId>maven-javadoc-plugin</artifactId>
683 <groupId>org.apache.maven.plugins</groupId>
684 <artifactId>maven-deploy-plugin</artifactId>
688 <groupId>org.apache.maven.plugins</groupId>
689 <artifactId>maven-pmd-plugin</artifactId>
693 <groupId>org.codehaus.mojo</groupId>
694 <artifactId>findbugs-maven-plugin</artifactId>
698 <groupId>org.apache.maven.plugins</groupId>
699 <artifactId>maven-checkstyle-plugin</artifactId>
703 <groupId>org.jacoco</groupId>
704 <artifactId>jacoco-maven-plugin</artifactId>