1 <?xml version="1.0" encoding="UTF-8"?>
3 ~ ============LICENSE_START=======================================================
5 ~ ================================================================================
6 ~ Copyright (c) 2018-2020 AT&T Intellectual Property. All rights reserved.
7 ~ Copyright (c) 2021 Samsung Electronics. All rights reserved.
8 ~ Copyright (c) 2021 China Mobile Property. All rights reserved.
9 ~ Copyright (c) 2022 Wipro Limited.
10 ~ ================================================================================
11 ~ Licensed under the Apache License, Version 2.0 (the "License");
12 ~ you may not use this file except in compliance with the License.
13 ~ You may obtain a copy of the License at
15 ~ http://www.apache.org/licenses/LICENSE-2.0
17 ~ Unless required by applicable law or agreed to in writing, software
18 ~ distributed under the License is distributed on an "AS IS" BASIS,
19 ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
20 ~ See the License for the specific language governing permissions and
21 ~ limitations under the License.
22 ~ ============LICENSE_END=========================================================
26 <project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
27 xmlns="http://maven.apache.org/POM/4.0.0"
28 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
30 <modelVersion>4.0.0</modelVersion>
33 <groupId>org.onap.dcaegen2.analytics.tca-gen2</groupId>
34 <artifactId>tca-gen2-parent</artifactId>
35 <version>${revision}</version>
38 <artifactId>dcae-analytics</artifactId>
39 <packaging>pom</packaging>
41 <name>DCAE Analytics Parent</name>
42 <description>Parent project for all DCAE Analytics Applications</description>
46 <module>dcae-analytics-test</module>
47 <module>dcae-analytics-model</module>
48 <module>dcae-analytics-tca-model</module>
49 <module>dcae-analytics-tca-core</module>
50 <module>dcae-analytics-web</module>
51 <module>dcae-analytics-tca-web</module>
56 <!-- PROJECT SETTINGS -->
57 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
58 <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
59 <main.basedir>${project.basedir}</main.basedir>
61 <!-- DEPENDENCIES VERSION -->
62 <eelf.logger.version>1.0.1-SNAPSHOT</eelf.logger.version>
63 <spring.boot.version>2.4.4</spring.boot.version>
64 <spring.cloud.version>Finchley.RC2</spring.cloud.version>
65 <commons.text.version>1.4</commons.text.version>
66 <springfox-swagger2.version>3.0.0</springfox-swagger2.version>
67 <findbugs.jsr305.version>3.0.2</findbugs.jsr305.version>
68 <findbugs.annotations.version>3.0.1</findbugs.annotations.version>
70 <!-- TEST DEPENDENCIES -->
71 <junit-jupiter.version>5.6.2</junit-jupiter.version>
72 <junit-platform.version>1.6.2</junit-platform.version>
73 <apiguardian-api.version>1.0.0</apiguardian-api.version>
76 <surefire.redirectTestOutputToFile>true</surefire.redirectTestOutputToFile>
77 <!-- PLUGINS VERSIONS -->
78 <maven-compiler-plugin.version>3.8.0</maven-compiler-plugin.version>
79 <maven-jar-plugin.version>3.0.2</maven-jar-plugin.version>
80 <maven-assembly-plugin.version>3.1.0</maven-assembly-plugin.version>
81 <maven-javadoc-plugin.version>3.0.0</maven-javadoc-plugin.version>
82 <maven-surefire-plugin.version>2.22.2</maven-surefire-plugin.version>
83 <maven-failsafe-plugin.version>2.22.2</maven-failsafe-plugin.version>
84 <maven-source-plugin.version>3.0.1</maven-source-plugin.version>
85 <maven-deploy-plugin.version>2.8.2</maven-deploy-plugin.version>
86 <jacoco.plugin.version>0.8.1</jacoco.plugin.version>
87 <sonar.coverage.jacoco.xmlReportPaths>${project.reporting.outputDirectory}/jacoco-ut/jacoco.xml
88 </sonar.coverage.jacoco.xmlReportPaths>
89 <pmd.plugin.version>3.11.0</pmd.plugin.version>
90 <checkstyle.plugin.version>2.17</checkstyle.plugin.version>
91 <lombok.plugin.version>1.18.0.0</lombok.plugin.version>
92 <gitcommitid.plugin.version>2.2.3</gitcommitid.plugin.version>
93 <maven.build.helper.plugin.version>3.0.0</maven.build.helper.plugin.version>
94 <docker-maven-version>1.0.0</docker-maven-version>
96 <!--PLUGIN SETTINGS -->
97 <compiler.source.version>11</compiler.source.version>
98 <compiler.target.version>11</compiler.target.version>
99 <unit.test.pattern>**/*Test.java</unit.test.pattern>
100 <skip.unit.tests>false</skip.unit.tests>
101 <integration.test.pattern>**/*IT.java</integration.test.pattern>
102 <skip.integration.tests>false</skip.integration.tests>
103 <pmd.violation.buildfail>true</pmd.violation.buildfail>
104 <findbugs.failOnError>true</findbugs.failOnError>
105 <checkstyle.failOnViolation>false</checkstyle.failOnViolation>
106 <checkstyle.file.name>checkstyle.xml</checkstyle.file.name>
107 <checkstyle.suppression.file.name>checkstyle-suppressions.xml</checkstyle.suppression.file.name>
110 <dependency.locations.enabled>false</dependency.locations.enabled>
111 <nexusproxy>https://nexus.onap.org</nexusproxy>
112 <snapshots.path>content/repositories/snapshots/</snapshots.path>
113 <releases.path>content/repositories/releases/</releases.path>
114 <docker.repository>nexus3.onap.org:10003</docker.repository>
115 <spring-swagger-ui.version>2.10.5</spring-swagger-ui.version>
116 <onap-gerrit-review>-changelog-missing</onap-gerrit-review>
118 <!-- SONAR EXCLUSIONS -->
119 <!-- EXCLUDE TEST COVERAGE ON
120 TEST PACKAGES - USED FOR TESTING - NOT FOR DEPLOYMENT
121 MODEL PACKAGES - MODELS ONLY CONTAINS POJOs AND NO BUSINESS LOGIC,
122 CONFIG PACKAGE - CONTAINS WIRINGS OF SPRING BEANS,
123 EXCEPTIONS PACKAGE - CONTAINS CUSTOM EXCEPTIONS - NO BUSINESS LOGIC,
124 PREFERENCES CLASSES - JUST POJOS
125 CONTEXTS CLASSES - JUST POJOS
126 ENTITY CLASSES - JUST POJOS
128 <sonar.coverage.exclusions>**/test/**,**/model/**,**/config/**,**/exception/**,**/*Preferences.java,**/*Context*.java,**/*Entity.java</sonar.coverage.exclusions>
132 <dependencyManagement>
136 <!-- PROJECT DEPENDENCIES -->
138 <groupId>${project.groupId}</groupId>
139 <artifactId>dcae-analytics-test</artifactId>
140 <version>${project.version}</version>
145 <groupId>${project.groupId}</groupId>
146 <artifactId>dcae-analytics-model</artifactId>
147 <version>${project.version}</version>
151 <groupId>${project.groupId}</groupId>
152 <artifactId>dcae-analytics-web</artifactId>
153 <version>${project.version}</version>
157 <groupId>${project.groupId}</groupId>
158 <artifactId>dcae-analytics-tca-model</artifactId>
159 <version>${project.version}</version>
163 <groupId>${project.groupId}</groupId>
164 <artifactId>dcae-analytics-tca-core</artifactId>
165 <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>org.springframework.plugin</groupId>
190 <artifactId>spring-plugin-core</artifactId>
195 <groupId>org.springframework.plugin</groupId>
196 <artifactId>spring-plugin-core</artifactId>
197 <version>2.0.0.RELEASE</version>
200 <groupId>io.springfox</groupId>
201 <artifactId>springfox-swagger-ui</artifactId>
202 <version>${spring-swagger-ui.version}</version>
207 <groupId>com.google.code.findbugs</groupId>
208 <artifactId>jsr305</artifactId>
209 <version>${findbugs.jsr305.version}</version>
210 <scope>provided</scope>
213 <groupId>com.google.code.findbugs</groupId>
214 <artifactId>annotations</artifactId>
215 <version>${findbugs.annotations.version}</version>
216 <scope>provided</scope>
219 <!-- JUNIT 5 DEPENDENCIES -->
221 <groupId>org.junit.jupiter</groupId>
222 <artifactId>junit-jupiter-api</artifactId>
223 <version>${junit-jupiter.version}</version>
227 <groupId>org.junit.jupiter</groupId>
228 <artifactId>junit-jupiter-engine</artifactId>
229 <version>${junit-jupiter.version}</version>
233 <groupId>org.junit.jupiter</groupId>
234 <artifactId>junit-jupiter-params</artifactId>
235 <version>${junit-jupiter.version}</version>
239 <groupId>junit</groupId>
240 <artifactId>junit</artifactId>
241 <version>4.13</version>
245 <groupId>org.junit.vintage</groupId>
246 <artifactId>junit-vintage-engine</artifactId>
247 <version>5.6.2</version>
251 <groupId>org.junit.platform</groupId>
252 <artifactId>junit-platform-engine</artifactId>
253 <version>1.6.2</version>
257 <groupId>org.junit.platform</groupId>
258 <artifactId>junit-platform-launcher</artifactId>
259 <version>1.6.2</version>
263 <groupId>org.apiguardian</groupId>
264 <artifactId>apiguardian-api</artifactId>
265 <version>${apiguardian-api.version}</version>
269 <!-- IMPORT DEPENDENCY MANAGEMENT FROM SPRING BOOT -->
271 <groupId>org.springframework.boot</groupId>
272 <artifactId>spring-boot-dependencies</artifactId>
273 <version>${spring.boot.version}</version>
275 <scope>import</scope>
277 <!-- IMPORT DEPENDENCY MANAGEMENT FROM SPRING CLOUD -->
279 <groupId>org.springframework.cloud</groupId>
280 <artifactId>spring-cloud-dependencies</artifactId>
281 <version>${spring.cloud.version}</version>
283 <scope>import</scope>
287 </dependencyManagement>
295 <!-- COMPILER PLUGIN -->
297 <groupId>org.apache.maven.plugins</groupId>
298 <artifactId>maven-compiler-plugin</artifactId>
299 <version>${maven-compiler-plugin.version}</version>
303 <meminitial>256m</meminitial>
304 <maxmem>1024m</maxmem>
305 <source>${compiler.target.version}</source>
306 <target>${compiler.source.version}</target>
307 <showWarnings>true</showWarnings>
308 <showDeprecation>true</showDeprecation>
312 <!-- MAVEN SOURCE PLUGIN -->
314 <groupId>org.apache.maven.plugins</groupId>
315 <artifactId>maven-source-plugin</artifactId>
316 <version>${maven-source-plugin.version}</version>
318 <excludeResources>true</excludeResources>
322 <id>attach-sources</id>
323 <phase>verify</phase>
325 <goal>jar-no-fork</goal>
331 <!-- MAVEN JAVADOC PLUGIN -->
333 <groupId>org.apache.maven.plugins</groupId>
334 <artifactId>maven-javadoc-plugin</artifactId>
335 <version>${maven-javadoc-plugin.version}</version>
337 <!-- minimize console output messages -->
339 <verbose>false</verbose>
340 <useStandardDocletOptions>false</useStandardDocletOptions>
347 <goal>aggregate</goal>
351 <id>attach-javadoc</id>
359 <!-- MAVEN DEPLOY PLUGIN -->
361 <artifactId>maven-deploy-plugin</artifactId>
362 <version>${maven-deploy-plugin.version}</version>
364 <deployAtEnd>true</deployAtEnd>
368 <!-- SUREFIRE TEST PLUGIN -->
370 <groupId>org.apache.maven.plugins</groupId>
371 <artifactId>maven-surefire-plugin</artifactId>
372 <version>${maven-surefire-plugin.version}</version>
374 <skipTests>${skip.unit.tests}</skipTests>
375 <argLine>-Xmx2048m -Djava.awt.headless=true -XX:+UseConcMarkSweepGC
376 -XX:OnOutOfMemoryError="kill -9 %p" -XX:+HeapDumpOnOutOfMemoryError ${surefireArgLine}
378 <redirectTestOutputToFile>${surefire.redirectTestOutputToFile}</redirectTestOutputToFile>
379 <parallel>classesAndMethods</parallel>
380 <threadCount>4</threadCount>
381 <forkCount>4</forkCount>
382 <reuseForks>false</reuseForks>
383 <reportFormat>xml</reportFormat>
384 <trimStackTrace>false</trimStackTrace>
385 <systemPropertyVariables>
386 <java.io.tmpdir>${project.build.directory}</java.io.tmpdir>
387 <logback.configurationFile>
388 ${basedir}/src/test/resources/logback-test.xml
389 </logback.configurationFile>
390 <logging.config>classpath:logback-test.xml</logging.config>
391 </systemPropertyVariables>
393 <include>${unit.test.pattern}</include>
396 <exclude>${integration.test.pattern}</exclude>
401 <!-- FAIL SAFE PLUGIN FOR INTEGRATION TEST -->
403 <groupId>org.apache.maven.plugins</groupId>
404 <artifactId>maven-failsafe-plugin</artifactId>
405 <version>${maven-failsafe-plugin.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>
432 <!-- PMD PLUGIN SETUP -->
434 <groupId>org.apache.maven.plugins</groupId>
435 <artifactId>maven-pmd-plugin</artifactId>
436 <version>${pmd.plugin.version}</version>
438 <sourceEncoding>${project.build.sourceEncoding}</sourceEncoding>
439 <targetJdk>${compiler.target.version}</targetJdk>
440 <linkXRef>false</linkXRef>
442 <exclude>**/*Mixin.java</exclude>
444 <!-- BUILD FAIL ON PMD VIOLATION -->
445 <failOnViolation>${pmd.violation.buildfail}</failOnViolation>
446 <targetDirectory>${project.reporting.outputDirectory}/pmd</targetDirectory>
455 <printFailingErrors>true</printFailingErrors>
456 <excludeFromFailureFile>${main.basedir}/pmd-exclude.properties</excludeFromFailureFile>
462 <goal>cpd-check</goal>
465 <printFailingErrors>true</printFailingErrors>
466 <excludeFromFailureFile>${main.basedir}/cpd-exclude.properties</excludeFromFailureFile>
472 <!-- CHECKSTYLE PLUGIN -->
474 <groupId>org.apache.maven.plugins</groupId>
475 <artifactId>maven-checkstyle-plugin</artifactId>
476 <version>${checkstyle.plugin.version}</version>
480 <phase>validate</phase>
483 <configLocation>${checkstyle.file.name}</configLocation>
484 <suppressionsLocation>${checkstyle.suppression.file.name}</suppressionsLocation>
485 <encoding>UTF-8</encoding>
486 <consoleOutput>true</consoleOutput>
487 <!-- BUILD FAIL ON CHECKSTYLE VIOLATION -->
488 <failOnViolation>${checkstyle.failOnViolation}</failOnViolation>
489 <includeTestSourceDirectory>true</includeTestSourceDirectory>
490 <outputFile>${project.reporting.outputDirectory}/checkstyle</outputFile>
499 <groupId>com.puppycrawl.tools</groupId>
500 <artifactId>checkstyle</artifactId>
501 <version>6.19</version>
506 <!-- LOMBOK PLUGIN -->
508 <groupId>org.projectlombok</groupId>
509 <artifactId>lombok-maven-plugin</artifactId>
510 <version>${lombok.plugin.version}</version>
514 <phase>generate-sources</phase>
516 <goal>delombok</goal>
519 <addOutputDirectory>false</addOutputDirectory>
520 <sourceDirectory>src/main/java</sourceDirectory>
526 <!-- GIT COMMIT ID PLUGIN -->
528 <groupId>pl.project13.maven</groupId>
529 <artifactId>git-commit-id-plugin</artifactId>
530 <version>${gitcommitid.plugin.version}</version>
533 <id>generate-git-properties</id>
534 <phase>generate-resources</phase>
536 <goal>revision</goal>
539 <failOnNoGitDirectory>false</failOnNoGitDirectory>
540 <generateGitPropertiesFile>true</generateGitPropertiesFile>
541 <generateGitPropertiesFilename>
542 ${project.build.directory}/git/git.properties
543 </generateGitPropertiesFilename>
551 <groupId>org.apache.maven.plugins</groupId>
552 <artifactId>maven-jar-plugin</artifactId>
553 <version>${maven-jar-plugin.version}</version>
557 <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
560 <Implementation-Build-Version>${project.version}</Implementation-Build-Version>
567 <!-- ASSEMBLY PLUGIN -->
569 <groupId>org.apache.maven.plugins</groupId>
570 <artifactId>maven-assembly-plugin</artifactId>
571 <version>${maven-assembly-plugin.version}</version>
574 <descriptor>${main.basedir}/assembly/cdp-assembly-descriptor.xml</descriptor>
579 <id>cdp-assembly</id>
580 <phase>package</phase>
588 <!-- BUILD HELPER PLUGIN -->
590 <groupId>org.codehaus.mojo</groupId>
591 <artifactId>build-helper-maven-plugin</artifactId>
592 <version>${maven.build.helper.plugin.version}</version>
595 <!-- SPRING BOOT PLUGIN -->
597 <groupId>org.springframework.boot</groupId>
598 <artifactId>spring-boot-maven-plugin</artifactId>
599 <version>${spring.boot.version}</version>
604 <goal>build-info</goal>
608 <id>spring-boot-uber-jar</id>
610 <goal>repackage</goal>
623 <groupId>org.apache.maven.plugins</groupId>
624 <artifactId>maven-compiler-plugin</artifactId>
628 <groupId>org.apache.maven.plugins</groupId>
629 <artifactId>maven-jar-plugin</artifactId>
633 <groupId>org.apache.maven.plugins</groupId>
634 <artifactId>maven-surefire-plugin</artifactId>
638 <groupId>org.apache.maven.plugins</groupId>
639 <artifactId>maven-failsafe-plugin</artifactId>
643 <groupId>org.apache.maven.plugins</groupId>
644 <artifactId>maven-source-plugin</artifactId>
648 <groupId>org.apache.maven.plugins</groupId>
649 <artifactId>maven-javadoc-plugin</artifactId>
653 <groupId>org.apache.maven.plugins</groupId>
654 <artifactId>maven-deploy-plugin</artifactId>
658 <groupId>org.apache.maven.plugins</groupId>
659 <artifactId>maven-pmd-plugin</artifactId>
663 <groupId>org.apache.maven.plugins</groupId>
664 <artifactId>maven-checkstyle-plugin</artifactId>
668 <groupId>org.jacoco</groupId>
669 <artifactId>jacoco-maven-plugin</artifactId>