Vulnerability removal for TCAgen2
[dcaegen2/analytics/tca-gen2.git] / dcae-analytics / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3   ~ ================================================================================
4   ~ Copyright (c) 2018-2020 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
9   ~
10   ~      http://www.apache.org/licenses/LICENSE-2.0
11   ~
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=========================================================
18   ~
19   -->
20
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">
24
25     <modelVersion>4.0.0</modelVersion>
26
27     <parent>
28         <groupId>org.onap.dcaegen2.analytics.tca-gen2</groupId>
29         <artifactId>tca-gen2-parent</artifactId>
30         <version>1.2.2-SNAPSHOT</version>
31     </parent>
32
33     <artifactId>dcae-analytics</artifactId>
34     <packaging>pom</packaging>
35
36     <name>DCAE Analytics Parent</name>
37     <description>Parent project for all DCAE Analytics Applications</description>
38
39
40     <modules>
41         <module>dcae-analytics-test</module>
42         <module>dcae-analytics-model</module>
43         <module>dcae-analytics-tca-model</module>
44         <module>dcae-analytics-tca-core</module>
45         <module>dcae-analytics-web</module>
46         <module>dcae-analytics-tca-web</module>
47     </modules>
48
49     <properties>
50
51         <!-- PROJECT SETTINGS -->
52         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
53         <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
54         <main.basedir>${project.basedir}</main.basedir>
55
56         <!-- DEPENDENCIES VERSION -->
57         <eelf.logger.version>1.0.1-SNAPSHOT</eelf.logger.version>
58         <spring.boot.version>2.0.9.RELEASE</spring.boot.version>
59         <spring.cloud.version>Finchley.RC2</spring.cloud.version>
60         <spring.version>5.0.11.RELEASE</spring.version>
61         <commons.text.version>1.4</commons.text.version>
62         <springfox-swagger2.version>3.0.0</springfox-swagger2.version>
63         <findbugs.jsr305.version>3.0.2</findbugs.jsr305.version>
64         <findbugs.annotations.version>3.0.1</findbugs.annotations.version>
65
66         <!-- TEST DEPENDENCIES -->
67         <junit-jupiter.version>5.6.2</junit-jupiter.version>
68         <junit-platform.version>1.6.2</junit-platform.version>
69         <apiguardian-api.version>1.0.0</apiguardian-api.version>
70
71         <!--TEST SETTINGS -->
72         <surefire.redirectTestOutputToFile>true</surefire.redirectTestOutputToFile>
73         <!-- PLUGINS VERSIONS -->
74         <maven-compiler-plugin.version>3.8.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</maven-javadoc-plugin.version>
78         <maven-surefire-plugin.version>2.22.2</maven-surefire-plugin.version>
79         <maven-failsafe-plugin.version>2.22.2</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         <sonar.coverage.jacoco.xmlReportPaths>${project.reporting.outputDirectory}/jacoco-ut/jacoco.xml
84         </sonar.coverage.jacoco.xmlReportPaths>
85         <pmd.plugin.version>3.11.0</pmd.plugin.version>
86         <checkstyle.plugin.version>2.17</checkstyle.plugin.version>
87         <lombok.plugin.version>1.18.0.0</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         <docker-maven-version>1.0.0</docker-maven-version>
91
92         <!--PLUGIN SETTINGS -->
93         <compiler.source.version>11</compiler.source.version>
94         <compiler.target.version>11</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>
104
105
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>
111         <jackson.version>2.11.0</jackson.version>
112         <undertow.version>2.2.2.Final</undertow.version>
113         <spring-webflux.version>5.2.7.RELEASE</spring-webflux.version>
114
115         <!-- SONAR EXCLUSIONS -->
116         <!-- EXCLUDE TEST COVERAGE ON
117           TEST PACKAGES - USED FOR TESTING - NOT FOR DEPLOYMENT
118           MODEL PACKAGES - MODELS ONLY CONTAINS POJOs AND NO BUSINESS LOGIC,
119           CONFIG PACKAGE -  CONTAINS WIRINGS OF SPRING BEANS,
120           EXCEPTIONS PACKAGE - CONTAINS CUSTOM EXCEPTIONS - NO BUSINESS LOGIC,
121           PREFERENCES CLASSES - JUST POJOS
122           CONTEXTS CLASSES - JUST POJOS
123           ENTITY CLASSES - JUST POJOS
124           -->
125         <sonar.coverage.exclusions>**/test/**,**/model/**,**/config/**,**/exception/**,**/*Preferences.java,**/*Context*.java,**/*Entity.java</sonar.coverage.exclusions>
126
127     </properties>
128
129
130
131     <dependencyManagement>
132
133         <dependencies>
134
135             <!-- PROJECT DEPENDENCIES -->
136             <dependency>
137                 <groupId>${project.groupId}</groupId>
138                 <artifactId>dcae-analytics-test</artifactId>
139                 <version>${project.version}</version>
140                 <scope>test</scope>
141             </dependency>
142
143             <dependency>
144                 <groupId>${project.groupId}</groupId>
145                 <artifactId>dcae-analytics-model</artifactId>
146                 <version>${project.version}</version>
147             </dependency>
148
149             <dependency>
150                 <groupId>${project.groupId}</groupId>
151                 <artifactId>dcae-analytics-web</artifactId>
152                 <version>${project.version}</version>
153             </dependency>
154
155             <dependency>
156                 <groupId>${project.groupId}</groupId>
157                 <artifactId>dcae-analytics-tca-model</artifactId>
158                 <version>${project.version}</version>
159             </dependency>
160
161             <dependency>
162                 <groupId>${project.groupId}</groupId>
163                 <artifactId>dcae-analytics-tca-core</artifactId>
164                 <version>${project.version}</version>
165             </dependency>
166
167             <!-- EELF LOGGER -->
168             <dependency>
169                 <groupId>org.onap.dcaegen2.analytics.tca-gen2</groupId>
170                 <artifactId>eelf-logger-logback-impl</artifactId>
171                 <version>${project.version}</version>
172             </dependency>
173
174             <!-- UTILITIES -->
175             <dependency>
176                 <groupId>org.apache.commons</groupId>
177                 <artifactId>commons-text</artifactId>
178                 <version>${commons.text.version}</version>
179             </dependency>
180
181             <!-- REST API SWAGGER -->
182             <dependency>
183                 <groupId>io.springfox</groupId>
184                 <artifactId>springfox-swagger2</artifactId>
185                 <version>${springfox-swagger2.version}</version>
186             </dependency>
187             <dependency>
188                 <groupId>io.springfox</groupId>
189                 <artifactId>springfox-swagger-ui</artifactId>
190                 <version>${springfox-swagger2.version}</version>
191             </dependency>
192             <dependency>
193                 <groupId>org.springframework.plugin</groupId>
194                 <artifactId>spring-plugin-core</artifactId>
195                 <version>2.0.0.RELEASE</version>
196             </dependency>
197             <dependency>
198                 <groupId>org.springframework.plugin</groupId>
199                 <artifactId>spring-plugin-metadata</artifactId>
200                 <version>2.0.0.RELEASE</version>
201             </dependency>
202
203             <!-- FIND BUGS -->
204             <dependency>
205                 <groupId>com.google.code.findbugs</groupId>
206                 <artifactId>jsr305</artifactId>
207                 <version>${findbugs.jsr305.version}</version>
208                 <scope>provided</scope>
209             </dependency>
210             <dependency>
211                 <groupId>com.google.code.findbugs</groupId>
212                 <artifactId>annotations</artifactId>
213                 <version>${findbugs.annotations.version}</version>
214                 <scope>provided</scope>
215             </dependency>
216
217             <!-- JUNIT 5 DEPENDENCIES -->
218             <dependency>
219                 <groupId>org.junit.jupiter</groupId>
220                 <artifactId>junit-jupiter-api</artifactId>
221                 <version>${junit-jupiter.version}</version>
222                 <scope>test</scope>
223             </dependency>
224             <dependency>
225                 <groupId>org.junit.jupiter</groupId>
226                 <artifactId>junit-jupiter-engine</artifactId>
227                 <version>${junit-jupiter.version}</version>
228                 <scope>test</scope>
229             </dependency>
230             <dependency>
231                 <groupId>org.junit.jupiter</groupId>
232                 <artifactId>junit-jupiter-params</artifactId>
233                 <version>${junit-jupiter.version}</version>
234                 <scope>test</scope>
235             </dependency>
236             <dependency>
237                 <groupId>junit</groupId>
238                 <artifactId>junit</artifactId>
239                 <version>4.13</version>
240                 <scope>test</scope>
241             </dependency>
242             <dependency>
243                 <groupId>org.junit.vintage</groupId>
244                 <artifactId>junit-vintage-engine</artifactId>
245                 <version>5.6.2</version>
246                 <scope>test</scope>
247             </dependency>
248             <dependency>
249                 <groupId>org.junit.platform</groupId>
250                 <artifactId>junit-platform-engine</artifactId>
251                 <version>1.6.2</version>
252                 <scope>test</scope>
253             </dependency>
254             <dependency>
255                 <groupId>org.junit.platform</groupId>
256                 <artifactId>junit-platform-launcher</artifactId>
257                 <version>1.6.2</version>
258                 <scope>test</scope>
259             </dependency>
260             <dependency>
261                 <groupId>org.apiguardian</groupId>
262                 <artifactId>apiguardian-api</artifactId>
263                 <version>${apiguardian-api.version}</version>
264                 <scope>test</scope>
265             </dependency>
266
267             <!-- IMPORT DEPENDENCY MANAGEMENT FROM SPRING BOOT -->
268             <dependency>
269                 <groupId>org.springframework.boot</groupId>
270                 <artifactId>spring-boot-dependencies</artifactId>
271                 <version>${spring.boot.version}</version>
272                 <exclusions>
273                     <exclusion>
274                         <groupId>org.springframework</groupId>
275                         <artifactId>spring-web</artifactId>
276                     </exclusion>
277                     <exclusion>
278                         <groupId>org.springframework.boot</groupId>
279                         <artifactId>spring-boot-starter-test</artifactId>
280                     </exclusion>
281                     <exclusion>
282                         <groupId>org.mockito</groupId>
283                         <artifactId>mockito-core</artifactId>
284                     </exclusion>
285                     <exclusion>
286                         <groupId>io.undertow</groupId>
287                         <artifactId>undertow-core</artifactId>
288                     </exclusion>
289                     <exclusion>
290                         <groupId>org.springframework</groupId>
291                         <artifactId>spring-webflux</artifactId>
292                     </exclusion>
293                     <exclusion>
294                         <groupId>com.fasterxml.jackson.core</groupId>
295                         <artifactId>jackson-databind</artifactId>
296                     </exclusion>
297                     <exclusion>
298                         <groupId>com.fasterxml.jackson.core</groupId>
299                         <artifactId>jackson-core</artifactId>
300                     </exclusion>
301                     <exclusion>
302                         <groupId>com.fasterxml.jackson.dataformat</groupId>
303                         <artifactId>jackson-dataformat-smile</artifactId>
304                     </exclusion>
305                 </exclusions>
306                 <type>pom</type>
307                 <scope>import</scope>
308             </dependency>
309             <!-- IMPORT DEPENDENCY MANAGEMENT FROM SPRING CLOUD -->
310             <dependency>
311                 <groupId>org.springframework.cloud</groupId>
312                 <artifactId>spring-cloud-dependencies</artifactId>
313                 <version>${spring.cloud.version}</version>
314                 <type>pom</type>
315                 <scope>import</scope>
316             </dependency>
317             <dependency>
318                 <groupId>org.springframework</groupId>
319                 <artifactId>spring-webflux</artifactId>
320                 <version>${spring-webflux.version}</version>
321             </dependency>
322             <dependency>
323                 <groupId>org.springframework</groupId>
324                 <artifactId>spring-web</artifactId>
325                 <version>${spring.version}</version>
326             </dependency>
327             <dependency>
328                 <groupId>org.springframework.boot</groupId>
329                 <artifactId>spring-boot-starter-test</artifactId>
330                 <version>2.2.0.RELEASE</version>
331             </dependency>
332             <dependency>
333                 <groupId>org.mockito</groupId>
334                 <artifactId>mockito-core</artifactId>
335                 <version>2.23.4</version>
336             </dependency>
337             <dependency>
338                 <groupId>io.undertow</groupId>
339                 <artifactId>undertow-core</artifactId>
340                 <version>${undertow.version}</version>
341             </dependency>
342             <dependency>
343                 <groupId>com.fasterxml.jackson.core</groupId>
344                 <artifactId>jackson-databind</artifactId>
345                 <version>${jackson.version}</version>
346             </dependency>
347             <dependency>
348                 <groupId>com.fasterxml.jackson.core</groupId>
349                 <artifactId>jackson-core</artifactId>
350                 <version>${jackson.version}</version>
351             </dependency>
352             <dependency>
353                 <groupId>com.fasterxml.jackson.dataformat</groupId>
354                 <artifactId>jackson-dataformat-smile</artifactId>
355                 <version>${jackson.version}</version>
356             </dependency>
357
358         </dependencies>
359     </dependencyManagement>
360
361     <build>
362
363         <pluginManagement>
364
365             <plugins>
366
367                 <!-- COMPILER PLUGIN -->
368                 <plugin>
369                     <groupId>org.apache.maven.plugins</groupId>
370                     <artifactId>maven-compiler-plugin</artifactId>
371                     <version>${maven-compiler-plugin.version}</version>
372                     <configuration>
373                         <fork>true</fork>
374                         <debug>true</debug>
375                         <meminitial>256m</meminitial>
376                         <maxmem>1024m</maxmem>
377                         <source>${compiler.target.version}</source>
378                         <target>${compiler.source.version}</target>
379                         <showWarnings>true</showWarnings>
380                         <showDeprecation>true</showDeprecation>
381                     </configuration>
382                 </plugin>
383
384                 <!-- MAVEN SOURCE PLUGIN -->
385                 <plugin>
386                     <groupId>org.apache.maven.plugins</groupId>
387                     <artifactId>maven-source-plugin</artifactId>
388                     <version>${maven-source-plugin.version}</version>
389                     <configuration>
390                         <excludeResources>true</excludeResources>
391                     </configuration>
392                     <executions>
393                         <execution>
394                             <id>attach-sources</id>
395                             <phase>verify</phase>
396                             <goals>
397                                 <goal>jar-no-fork</goal>
398                             </goals>
399                         </execution>
400                     </executions>
401                 </plugin>
402
403                 <!-- MAVEN JAVADOC PLUGIN -->
404                 <plugin>
405                     <groupId>org.apache.maven.plugins</groupId>
406                     <artifactId>maven-javadoc-plugin</artifactId>
407                     <version>${maven-javadoc-plugin.version}</version>
408                     <configuration>
409                         <!-- minimize console output messages -->
410                         <quiet>true</quiet>
411                         <verbose>false</verbose>
412                         <useStandardDocletOptions>false</useStandardDocletOptions>
413                     </configuration>
414                     <executions>
415                         <execution>
416                             <id>aggregate</id>
417                             <phase>site</phase>
418                             <goals>
419                                 <goal>aggregate</goal>
420                             </goals>
421                         </execution>
422                         <execution>
423                             <id>attach-javadoc</id>
424                             <goals>
425                                 <goal>jar</goal>
426                             </goals>
427                         </execution>
428                     </executions>
429                 </plugin>
430
431                 <!-- MAVEN DEPLOY PLUGIN -->
432                 <plugin>
433                     <artifactId>maven-deploy-plugin</artifactId>
434                     <version>${maven-deploy-plugin.version}</version>
435                     <configuration>
436                         <deployAtEnd>true</deployAtEnd>
437                     </configuration>
438                 </plugin>
439
440                 <!-- SUREFIRE TEST PLUGIN -->
441                 <plugin>
442                     <groupId>org.apache.maven.plugins</groupId>
443                     <artifactId>maven-surefire-plugin</artifactId>
444                     <version>${maven-surefire-plugin.version}</version>
445                     <configuration>
446                         <skipTests>${skip.unit.tests}</skipTests>
447                         <argLine>-Xmx2048m -Djava.awt.headless=true
448                             -XX:+UseConcMarkSweepGC
449                             -XX:OnOutOfMemoryError="kill -9 %p" -XX:+HeapDumpOnOutOfMemoryError ${surefireArgLine}
450                         </argLine>
451                         <redirectTestOutputToFile>${surefire.redirectTestOutputToFile}</redirectTestOutputToFile>
452                         <parallel>classesAndMethods</parallel>
453                         <threadCount>4</threadCount>
454                         <forkCount>4</forkCount>
455                         <reuseForks>false</reuseForks>
456                         <reportFormat>xml</reportFormat>
457                         <trimStackTrace>false</trimStackTrace>
458                         <systemPropertyVariables>
459                             <java.io.tmpdir>${project.build.directory}</java.io.tmpdir>
460                             <logback.configurationFile>
461                                 ${basedir}/src/test/resources/logback-test.xml
462                             </logback.configurationFile>
463                             <logging.config>classpath:logback-test.xml</logging.config>
464                         </systemPropertyVariables>
465                         <includes>
466                             <include>${unit.test.pattern}</include>
467                         </includes>
468                         <excludes>
469                             <exclude>${integration.test.pattern}</exclude>
470                         </excludes>
471                     </configuration>
472                 </plugin>
473
474                 <!-- FAIL SAFE PLUGIN FOR INTEGRATION TEST -->
475                 <plugin>
476                     <groupId>org.apache.maven.plugins</groupId>
477                     <artifactId>maven-failsafe-plugin</artifactId>
478                     <version>${maven-failsafe-plugin.version}</version>
479                     <executions>
480                         <execution>
481                             <id>integration-tests</id>
482                             <goals>
483                                 <goal>integration-test</goal>
484                                 <goal>verify</goal>
485                             </goals>
486                             <configuration>
487                                 <argLine>${failsafeArgLine}</argLine>
488                                 <redirectTestOutputToFile>true</redirectTestOutputToFile>
489                                 <skipTests>${skip.integration.tests}</skipTests>
490                                 <includes>
491                                     <include>${integration.test.pattern}</include>
492                                 </includes>
493                                 <excludes>
494                                     <exclude>${unit.test.pattern}</exclude>
495                                 </excludes>
496                                 <systemPropertyVariables>
497                                     <java.io.tmpdir>${project.build.directory}</java.io.tmpdir>
498                                     <logging.config>classpath:logback-test.xml</logging.config>
499                                 </systemPropertyVariables>
500                             </configuration>
501                         </execution>
502                     </executions>
503                 </plugin>
504
505                 <!-- PMD PLUGIN SETUP -->
506                 <plugin>
507                     <groupId>org.apache.maven.plugins</groupId>
508                     <artifactId>maven-pmd-plugin</artifactId>
509                     <version>${pmd.plugin.version}</version>
510                     <configuration>
511                         <sourceEncoding>${project.build.sourceEncoding}</sourceEncoding>
512                         <targetJdk>${compiler.target.version}</targetJdk>
513                         <linkXRef>false</linkXRef>
514                         <excludes>
515                             <exclude>**/*Mixin.java</exclude>
516                         </excludes>
517                         <!-- BUILD FAIL ON PMD VIOLATION -->
518                         <failOnViolation>${pmd.violation.buildfail}</failOnViolation>
519                         <targetDirectory>${project.reporting.outputDirectory}/pmd</targetDirectory>
520                     </configuration>
521                     <executions>
522                         <execution>
523                             <id>pmd-check</id>
524                             <goals>
525                                 <goal>check</goal>
526                             </goals>
527                             <configuration>
528                                 <printFailingErrors>true</printFailingErrors>
529                                 <excludeFromFailureFile>${main.basedir}/pmd-exclude.properties</excludeFromFailureFile>
530                             </configuration>
531                         </execution>
532                         <execution>
533                             <id>cpd-check</id>
534                             <goals>
535                                 <goal>cpd-check</goal>
536                             </goals>
537                             <configuration>
538                                 <printFailingErrors>true</printFailingErrors>
539                                 <excludeFromFailureFile>${main.basedir}/cpd-exclude.properties</excludeFromFailureFile>
540                             </configuration>
541                         </execution>
542                     </executions>
543                 </plugin>
544
545                 <!-- CHECKSTYLE PLUGIN -->
546                 <plugin>
547                     <groupId>org.apache.maven.plugins</groupId>
548                     <artifactId>maven-checkstyle-plugin</artifactId>
549                     <version>${checkstyle.plugin.version}</version>
550                     <executions>
551                         <execution>
552                             <id>validate</id>
553                             <phase>validate</phase>
554                             <configuration>
555                                 <skip>true</skip>
556                                 <configLocation>${checkstyle.file.name}</configLocation>
557                                 <suppressionsLocation>${checkstyle.suppression.file.name}</suppressionsLocation>
558                                 <encoding>UTF-8</encoding>
559                                 <consoleOutput>true</consoleOutput>
560                                 <!-- BUILD FAIL ON CHECKSTYLE VIOLATION -->
561                                 <failOnViolation>${checkstyle.failOnViolation}</failOnViolation>
562                                 <includeTestSourceDirectory>true</includeTestSourceDirectory>
563                                 <outputFile>${project.reporting.outputDirectory}/checkstyle</outputFile>
564                             </configuration>
565                             <goals>
566                                 <goal>check</goal>
567                             </goals>
568                         </execution>
569                     </executions>
570                     <dependencies>
571                         <dependency>
572                             <groupId>com.puppycrawl.tools</groupId>
573                             <artifactId>checkstyle</artifactId>
574                             <version>6.19</version>
575                         </dependency>
576                     </dependencies>
577                 </plugin>
578
579                 <!-- LOMBOK PLUGIN -->
580                 <plugin>
581                     <groupId>org.projectlombok</groupId>
582                     <artifactId>lombok-maven-plugin</artifactId>
583                     <version>${lombok.plugin.version}</version>
584                     <executions>
585                         <execution>
586                             <id>delombok</id>
587                             <phase>generate-sources</phase>
588                             <goals>
589                                 <goal>delombok</goal>
590                             </goals>
591                             <configuration>
592                                 <addOutputDirectory>false</addOutputDirectory>
593                                 <sourceDirectory>src/main/java</sourceDirectory>
594                             </configuration>
595                         </execution>
596                     </executions>
597                 </plugin>
598
599                 <!-- GIT COMMIT ID PLUGIN -->
600                 <plugin>
601                     <groupId>pl.project13.maven</groupId>
602                     <artifactId>git-commit-id-plugin</artifactId>
603                     <version>${gitcommitid.plugin.version}</version>
604                     <executions>
605                         <execution>
606                             <id>generate-git-properties</id>
607                             <phase>generate-resources</phase>
608                             <goals>
609                                 <goal>revision</goal>
610                             </goals>
611                             <configuration>
612                                 <failOnNoGitDirectory>false</failOnNoGitDirectory>
613                                 <generateGitPropertiesFile>true</generateGitPropertiesFile>
614                                 <generateGitPropertiesFilename>
615                                     ${project.build.directory}/git/git.properties
616                                 </generateGitPropertiesFilename>
617                             </configuration>
618                         </execution>
619                     </executions>
620                 </plugin>
621
622                 <!-- JAR PLUGIN -->
623                 <plugin>
624                     <groupId>org.apache.maven.plugins</groupId>
625                     <artifactId>maven-jar-plugin</artifactId>
626                     <version>${maven-jar-plugin.version}</version>
627                     <configuration>
628                         <archive>
629                             <manifest>
630                                 <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
631                             </manifest>
632                             <manifestEntries>
633                                 <Implementation-Build-Version>${project.version}</Implementation-Build-Version>
634                             </manifestEntries>
635                         </archive>
636                     </configuration>
637                 </plugin>
638
639
640                 <!-- ASSEMBLY PLUGIN -->
641                 <plugin>
642                     <groupId>org.apache.maven.plugins</groupId>
643                     <artifactId>maven-assembly-plugin</artifactId>
644                     <version>${maven-assembly-plugin.version}</version>
645                     <configuration>
646                         <descriptors>
647                             <descriptor>${main.basedir}/assembly/cdp-assembly-descriptor.xml</descriptor>
648                         </descriptors>
649                     </configuration>
650                     <executions>
651                         <execution>
652                             <id>cdp-assembly</id>
653                             <phase>package</phase>
654                             <goals>
655                                 <goal>single</goal>
656                             </goals>
657                         </execution>
658                     </executions>
659                 </plugin>
660
661                 <!-- BUILD HELPER PLUGIN -->
662                 <plugin>
663                     <groupId>org.codehaus.mojo</groupId>
664                     <artifactId>build-helper-maven-plugin</artifactId>
665                     <version>${maven.build.helper.plugin.version}</version>
666                 </plugin>
667
668                 <!-- SPRING BOOT PLUGIN -->
669                 <plugin>
670                     <groupId>org.springframework.boot</groupId>
671                     <artifactId>spring-boot-maven-plugin</artifactId>
672                     <version>${spring.boot.version}</version>
673                     <executions>
674                         <execution>
675                             <id>build-info</id>
676                             <goals>
677                                 <goal>build-info</goal>
678                             </goals>
679                         </execution>
680                         <execution>
681                             <id>spring-boot-uber-jar</id>
682                             <goals>
683                                 <goal>repackage</goal>
684                             </goals>
685                         </execution>
686                     </executions>
687                 </plugin>
688
689                 <!-- DOCKER PLUGIN -->
690                 <!-- <plugin> <groupId>com.spotify</groupId> <artifactId>docker-maven-plugin</artifactId> 
691                     <version>${docker-maven-version}</version> <configuration> <repository>${docker.repository}/onap/${project.groupId}.${project.artifactId}</repository> 
692                     <tag>${project.version}</tag> </configuration> </plugin> -->
693
694             </plugins>
695
696         </pluginManagement>
697
698
699         <plugins>
700
701             <plugin>
702                 <groupId>org.apache.maven.plugins</groupId>
703                 <artifactId>maven-compiler-plugin</artifactId>
704             </plugin>
705
706             <plugin>
707                 <groupId>org.apache.maven.plugins</groupId>
708                 <artifactId>maven-jar-plugin</artifactId>
709             </plugin>
710
711             <plugin>
712                 <groupId>org.apache.maven.plugins</groupId>
713                 <artifactId>maven-surefire-plugin</artifactId>
714             </plugin>
715
716             <plugin>
717                 <groupId>org.apache.maven.plugins</groupId>
718                 <artifactId>maven-failsafe-plugin</artifactId>
719             </plugin>
720
721             <plugin>
722                 <groupId>org.apache.maven.plugins</groupId>
723                 <artifactId>maven-source-plugin</artifactId>
724             </plugin>
725
726             <plugin>
727                 <groupId>org.apache.maven.plugins</groupId>
728                 <artifactId>maven-javadoc-plugin</artifactId>
729             </plugin>
730
731             <plugin>
732                 <groupId>org.apache.maven.plugins</groupId>
733                 <artifactId>maven-deploy-plugin</artifactId>
734             </plugin>
735
736             <plugin>
737                 <groupId>org.apache.maven.plugins</groupId>
738                 <artifactId>maven-pmd-plugin</artifactId>
739             </plugin>
740
741             <plugin>
742                 <groupId>org.apache.maven.plugins</groupId>
743                 <artifactId>maven-checkstyle-plugin</artifactId>
744             </plugin>
745
746             <plugin>
747                 <groupId>org.jacoco</groupId>
748                 <artifactId>jacoco-maven-plugin</artifactId>
749             </plugin>
750
751         </plugins>
752     </build>
753
754 </project>