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>true</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 PACAKGES - MODELS ONLY CONTAINS POJOs AND NO BUSINESS LOGIC,
116 CONFIG PACKAGE - CONATINS WIRINGS OF SPRING BEANS,
118 <sonar.coverage.exclusions>**/test/**,**/model/**,**/config/**</sonar.coverage.exclusions>
124 <dependencyManagement>
128 <!-- PROJECT DEPENDENCIES -->
130 <groupId>${project.groupId}</groupId>
131 <artifactId>dcae-analytics-test</artifactId>
132 <version>${project.version}</version>
137 <groupId>${project.groupId}</groupId>
138 <artifactId>dcae-analytics-model</artifactId>
139 <version>${project.version}</version>
143 <groupId>${project.groupId}</groupId>
144 <artifactId>dcae-analytics-web</artifactId>
145 <version>${project.version}</version>
149 <groupId>${project.groupId}</groupId>
150 <artifactId>dcae-analytics-tca-model</artifactId>
151 <version>${project.version}</version>
155 <groupId>${project.groupId}</groupId>
156 <artifactId>dcae-analytics-tca-core</artifactId>
157 <version>${project.version}</version>
163 <groupId>org.onap.dcaegen2.analytics.tca-gen2</groupId>
164 <artifactId>eelf-logger-logback-impl</artifactId>
165 <version>${eelf.logger.version}</version>
170 <groupId>org.apache.commons</groupId>
171 <artifactId>commons-text</artifactId>
172 <version>${commons.text.version}</version>
175 <!-- REST API SWAGGER -->
177 <groupId>io.springfox</groupId>
178 <artifactId>springfox-swagger2</artifactId>
179 <version>${springfox-swagger2.version}</version>
182 <groupId>io.springfox</groupId>
183 <artifactId>springfox-swagger-ui</artifactId>
184 <version>${springfox-swagger2.version}</version>
189 <groupId>com.google.code.findbugs</groupId>
190 <artifactId>jsr305</artifactId>
191 <version>${findbugs.jsr305.version}</version>
192 <scope>provided</scope>
195 <groupId>com.google.code.findbugs</groupId>
196 <artifactId>annotations</artifactId>
197 <version>${findbugs.annotations.version}</version>
198 <scope>provided</scope>
201 <!-- JUNIT 5 DEPENDENCIES -->
203 <groupId>org.junit.jupiter</groupId>
204 <artifactId>junit-jupiter-api</artifactId>
205 <version>${junit-jupiter.version}</version>
209 <groupId>org.junit.jupiter</groupId>
210 <artifactId>junit-jupiter-engine</artifactId>
211 <version>${junit-jupiter.version}</version>
215 <groupId>org.junit.jupiter</groupId>
216 <artifactId>junit-jupiter-params</artifactId>
217 <version>${junit-jupiter.version}</version>
221 <groupId>org.junit.platform</groupId>
222 <artifactId>junit-platform-engine</artifactId>
223 <version>${junit-platform.version}</version>
227 <groupId>org.junit.platform</groupId>
228 <artifactId>junit-platform-launcher</artifactId>
229 <version>${junit-platform.version}</version>
233 <groupId>org.apiguardian</groupId>
234 <artifactId>apiguardian-api</artifactId>
235 <version>${apiguardian-api.version}</version>
239 <!-- IMPORT DEPENDENCY MANAGEMENT FROM SPRING BOOT -->
241 <groupId>org.springframework.boot</groupId>
242 <artifactId>spring-boot-dependencies</artifactId>
243 <version>${spring.boot.version}</version>
245 <scope>import</scope>
247 <!-- IMPORT DEPENDENCY MANAGEMENT FROM SPRING CLOUD -->
249 <groupId>org.springframework.cloud</groupId>
250 <artifactId>spring-cloud-dependencies</artifactId>
251 <version>${spring.cloud.version}</version>
253 <scope>import</scope>
257 </dependencyManagement>
265 <!-- COMPILER PLUGIN -->
267 <groupId>org.apache.maven.plugins</groupId>
268 <artifactId>maven-compiler-plugin</artifactId>
269 <version>${maven-compiler-plugin.version}</version>
273 <meminitial>256m</meminitial>
274 <maxmem>1024m</maxmem>
275 <source>${compiler.target.version}</source>
276 <target>${compiler.source.version}</target>
277 <showWarnings>true</showWarnings>
278 <showDeprecation>true</showDeprecation>
282 <!-- MAVEN SOURCE PLUGIN -->
284 <groupId>org.apache.maven.plugins</groupId>
285 <artifactId>maven-source-plugin</artifactId>
286 <version>${maven-source-plugin.version}</version>
288 <excludeResources>true</excludeResources>
292 <id>attach-sources</id>
293 <phase>verify</phase>
295 <goal>jar-no-fork</goal>
301 <!-- MAVEN JAVADOC PLUGIN -->
303 <groupId>org.apache.maven.plugins</groupId>
304 <artifactId>maven-javadoc-plugin</artifactId>
305 <version>${maven-javadoc-plugin.version}</version>
307 <!-- minimize console output messages -->
309 <verbose>false</verbose>
310 <useStandardDocletOptions>false</useStandardDocletOptions>
317 <goal>aggregate</goal>
321 <id>attach-javadoc</id>
329 <!-- MAVEN DEPLOY PLUGIN -->
331 <artifactId>maven-deploy-plugin</artifactId>
332 <version>${maven-deploy-plugin.version}</version>
334 <deployAtEnd>true</deployAtEnd>
338 <!-- SUREFIRE TEST PLUGIN -->
340 <groupId>org.apache.maven.plugins</groupId>
341 <artifactId>maven-surefire-plugin</artifactId>
342 <version>${maven-surefire-plugin.version}</version>
344 <skipTests>${skip.unit.tests}</skipTests>
345 <argLine>-Xmx2048m -Djava.awt.headless=true -XX:+UseConcMarkSweepGC
346 -XX:OnOutOfMemoryError="kill -9 %p" -XX:+HeapDumpOnOutOfMemoryError ${surefireArgLine}
348 <redirectTestOutputToFile>${surefire.redirectTestOutputToFile}</redirectTestOutputToFile>
349 <parallel>classesAndMethods</parallel>
350 <threadCount>4</threadCount>
351 <forkCount>4</forkCount>
352 <reuseForks>false</reuseForks>
353 <reportFormat>xml</reportFormat>
354 <trimStackTrace>false</trimStackTrace>
355 <systemPropertyVariables>
356 <java.io.tmpdir>${project.build.directory}</java.io.tmpdir>
357 <logback.configurationFile>
358 ${basedir}/src/test/resources/logback-test.xml
359 </logback.configurationFile>
360 <logging.config>classpath:logback-test.xml</logging.config>
361 </systemPropertyVariables>
363 <include>${unit.test.pattern}</include>
366 <exclude>${integration.test.pattern}</exclude>
371 <groupId>org.junit.platform</groupId>
372 <artifactId>junit-platform-surefire-provider</artifactId>
373 <version>${junit-platform.version}</version>
378 <!-- FAIL SAFE PLUGIN FOR INTEGRATION TEST -->
380 <groupId>org.apache.maven.plugins</groupId>
381 <artifactId>maven-failsafe-plugin</artifactId>
382 <version>${maven-failsafe-plugin.version}</version>
385 <groupId>org.junit.platform</groupId>
386 <artifactId>junit-platform-surefire-provider</artifactId>
387 <version>${junit-platform.version}</version>
392 <id>integration-tests</id>
394 <goal>integration-test</goal>
398 <argLine>${failsafeArgLine}</argLine>
399 <redirectTestOutputToFile>true</redirectTestOutputToFile>
400 <skipTests>${skip.integration.tests}</skipTests>
402 <include>${integration.test.pattern}</include>
405 <exclude>${unit.test.pattern}</exclude>
407 <systemPropertyVariables>
408 <java.io.tmpdir>${project.build.directory}</java.io.tmpdir>
409 <logging.config>classpath:logback-test.xml</logging.config>
410 </systemPropertyVariables>
417 <!-- FIND BUGS (STATIC CODE ANALYSIS) PLUGIN -->
419 <groupId>org.codehaus.mojo</groupId>
420 <artifactId>findbugs-maven-plugin</artifactId>
421 <version>${findbugs.plugin.version}</version>
424 <threshold>Low</threshold>
425 <xmlOutput>true</xmlOutput>
426 <!-- BUILD FAIL ON FINDBUGS ERRORS -->
427 <failOnError>${findbugs.failOnError}</failOnError>
428 <excludeFilterFile>${main.basedir}/findbugs-exclude.xml</excludeFilterFile>
429 <outputDirectory>${project.reporting.outputDirectory}/findbugs</outputDirectory>
430 <findbugsXmlOutputDirectory>${project.reporting.outputDirectory}/findbugs
431 </findbugsXmlOutputDirectory>
435 <id>analyze-compile</id>
436 <phase>compile</phase>
444 <!-- PMD PLUGIN SETUP -->
446 <groupId>org.apache.maven.plugins</groupId>
447 <artifactId>maven-pmd-plugin</artifactId>
448 <version>${pmd.plugin.version}</version>
450 <sourceEncoding>${project.build.sourceEncoding}</sourceEncoding>
451 <targetJdk>${compiler.target.version}</targetJdk>
452 <linkXRef>false</linkXRef>
454 <exclude>**/*Mixin.java</exclude>
456 <!-- BUILD FAIL ON PMD VIOLATION -->
457 <failOnViolation>${pmd.violation.buildfail}</failOnViolation>
458 <targetDirectory>${project.reporting.outputDirectory}/pmd</targetDirectory>
467 <printFailingErrors>true</printFailingErrors>
468 <excludeFromFailureFile>${main.basedir}/pmd-exclude.properties</excludeFromFailureFile>
474 <goal>cpd-check</goal>
477 <printFailingErrors>true</printFailingErrors>
478 <excludeFromFailureFile>${main.basedir}/cpd-exclude.properties</excludeFromFailureFile>
484 <!-- CHECKSTYLE PLUGIN -->
486 <groupId>org.apache.maven.plugins</groupId>
487 <artifactId>maven-checkstyle-plugin</artifactId>
488 <version>${checkstyle.plugin.version}</version>
492 <phase>validate</phase>
494 <configLocation>${checkstyle.file.name}</configLocation>
495 <suppressionsLocation>${checkstyle.suppression.file.name}</suppressionsLocation>
496 <encoding>UTF-8</encoding>
497 <consoleOutput>true</consoleOutput>
498 <!-- BUILD FAIL ON CHECKSTYLE VIOLATION -->
499 <failOnViolation>${checkstyle.failOnViolation}</failOnViolation>
500 <includeTestSourceDirectory>true</includeTestSourceDirectory>
501 <outputFile>${project.reporting.outputDirectory}/checkstyle</outputFile>
510 <groupId>com.puppycrawl.tools</groupId>
511 <artifactId>checkstyle</artifactId>
512 <version>6.19</version>
517 <!-- LOMBOK PLUGIN -->
519 <groupId>org.projectlombok</groupId>
520 <artifactId>lombok-maven-plugin</artifactId>
521 <version>${lombok.plugin.version}</version>
525 <phase>generate-sources</phase>
527 <goal>delombok</goal>
530 <addOutputDirectory>false</addOutputDirectory>
531 <sourceDirectory>src/main/java</sourceDirectory>
537 <!-- GIT COMMIT ID PLUGIN -->
539 <groupId>pl.project13.maven</groupId>
540 <artifactId>git-commit-id-plugin</artifactId>
541 <version>${gitcommitid.plugin.version}</version>
544 <id>generate-git-properties</id>
545 <phase>generate-resources</phase>
547 <goal>revision</goal>
550 <failOnNoGitDirectory>false</failOnNoGitDirectory>
551 <generateGitPropertiesFile>true</generateGitPropertiesFile>
552 <generateGitPropertiesFilename>
553 ${project.build.directory}/git/git.properties
554 </generateGitPropertiesFilename>
562 <groupId>org.apache.maven.plugins</groupId>
563 <artifactId>maven-jar-plugin</artifactId>
564 <version>${maven-jar-plugin.version}</version>
568 <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
571 <Implementation-Build-Version>${project.version}</Implementation-Build-Version>
578 <!-- ASSEMBLY PLUGIN -->
580 <groupId>org.apache.maven.plugins</groupId>
581 <artifactId>maven-assembly-plugin</artifactId>
582 <version>${maven-assembly-plugin.version}</version>
585 <descriptor>${main.basedir}/assembly/cdp-assembly-descriptor.xml</descriptor>
590 <id>cdp-assembly</id>
591 <phase>package</phase>
599 <!-- BUILD HELPER PLUGIN -->
601 <groupId>org.codehaus.mojo</groupId>
602 <artifactId>build-helper-maven-plugin</artifactId>
603 <version>${maven.build.helper.plugin.version}</version>
606 <!-- SPRING BOOT PLUGIN -->
608 <groupId>org.springframework.boot</groupId>
609 <artifactId>spring-boot-maven-plugin</artifactId>
610 <version>${spring.boot.version}</version>
615 <goal>build-info</goal>
619 <id>spring-boot-uber-jar</id>
621 <goal>repackage</goal>
627 <!-- DOCKER PLUGIN -->
629 <groupId>com.spotify</groupId>
630 <artifactId>dockerfile-maven-plugin</artifactId>
631 <version>${dockerfile-maven-version}</version>
633 <repository>${docker.repository}/onap/${project.groupId}.${project.artifactId}</repository>
634 <tag>${project.version}</tag>
646 <groupId>org.apache.maven.plugins</groupId>
647 <artifactId>maven-compiler-plugin</artifactId>
651 <groupId>org.apache.maven.plugins</groupId>
652 <artifactId>maven-jar-plugin</artifactId>
656 <groupId>org.apache.maven.plugins</groupId>
657 <artifactId>maven-surefire-plugin</artifactId>
661 <groupId>org.apache.maven.plugins</groupId>
662 <artifactId>maven-failsafe-plugin</artifactId>
666 <groupId>org.apache.maven.plugins</groupId>
667 <artifactId>maven-source-plugin</artifactId>
671 <groupId>org.apache.maven.plugins</groupId>
672 <artifactId>maven-javadoc-plugin</artifactId>
676 <groupId>org.apache.maven.plugins</groupId>
677 <artifactId>maven-deploy-plugin</artifactId>
681 <groupId>org.apache.maven.plugins</groupId>
682 <artifactId>maven-pmd-plugin</artifactId>
686 <groupId>org.codehaus.mojo</groupId>
687 <artifactId>findbugs-maven-plugin</artifactId>
691 <groupId>org.apache.maven.plugins</groupId>
692 <artifactId>maven-checkstyle-plugin</artifactId>
696 <groupId>org.jacoco</groupId>
697 <artifactId>jacoco-maven-plugin</artifactId>