Improve code coverage
[dcaegen2/analytics/tca-gen2.git] / dcae-analytics / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
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
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>3.0.0-SNAPSHOT</version>
31         </parent>
32
33     <artifactId>dcae-analytics</artifactId>
34     <version>3.0.0-SNAPSHOT</version>
35     <packaging>pom</packaging>
36
37     <name>DCAE Analytics Parent</name>
38     <description>Parent project for all DCAE Analytics Applications</description>
39
40
41     <modules>
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>
48     </modules>
49
50     <properties>
51
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>
56
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>
65
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>
70
71         <!--TEST SETTINGS -->
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
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>
103
104
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>
110
111
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
121           -->
122         <sonar.coverage.exclusions>**/test/**,**/model/**,**/config/**,**/exception/**,**/*Preferences.java,**/*Context*.java,**/*Entity.java</sonar.coverage.exclusions>
123
124     </properties>
125
126   
127
128     <dependencyManagement>
129
130         <dependencies>
131
132             <!-- PROJECT DEPENDENCIES -->
133             <dependency>
134                 <groupId>${project.groupId}</groupId>
135                 <artifactId>dcae-analytics-test</artifactId>
136                 <version>${project.version}</version>
137                 <scope>test</scope>
138             </dependency>
139
140             <dependency>
141                 <groupId>${project.groupId}</groupId>
142                 <artifactId>dcae-analytics-model</artifactId>
143                 <version>${project.version}</version>
144             </dependency>
145
146             <dependency>
147                 <groupId>${project.groupId}</groupId>
148                 <artifactId>dcae-analytics-web</artifactId>
149                 <version>${project.version}</version>
150             </dependency>
151
152             <dependency>
153                 <groupId>${project.groupId}</groupId>
154                 <artifactId>dcae-analytics-tca-model</artifactId>
155                 <version>${project.version}</version>
156             </dependency>
157
158             <dependency>
159                 <groupId>${project.groupId}</groupId>
160                 <artifactId>dcae-analytics-tca-core</artifactId>
161                 <version>${project.version}</version>
162             </dependency>
163
164
165             <!-- EELF LOGGER -->
166             <dependency>
167                 <groupId>org.onap.dcaegen2.analytics.tca-gen2</groupId>
168                 <artifactId>eelf-logger-logback-impl</artifactId>
169                 <version>${eelf.logger.version}</version>
170             </dependency>
171
172             <!-- UTILITIES -->
173             <dependency>
174                 <groupId>org.apache.commons</groupId>
175                 <artifactId>commons-text</artifactId>
176                 <version>${commons.text.version}</version>
177             </dependency>
178
179             <!-- REST API SWAGGER -->
180             <dependency>
181                 <groupId>io.springfox</groupId>
182                 <artifactId>springfox-swagger2</artifactId>
183                 <version>${springfox-swagger2.version}</version>
184             </dependency>
185             <dependency>
186                 <groupId>io.springfox</groupId>
187                 <artifactId>springfox-swagger-ui</artifactId>
188                 <version>${springfox-swagger2.version}</version>
189             </dependency>
190
191             <!-- FIND BUGS -->
192             <dependency>
193                 <groupId>com.google.code.findbugs</groupId>
194                 <artifactId>jsr305</artifactId>
195                 <version>${findbugs.jsr305.version}</version>
196                 <scope>provided</scope>
197             </dependency>
198             <dependency>
199                 <groupId>com.google.code.findbugs</groupId>
200                 <artifactId>annotations</artifactId>
201                 <version>${findbugs.annotations.version}</version>
202                 <scope>provided</scope>
203             </dependency>
204
205             <!-- JUNIT 5 DEPENDENCIES -->
206             <dependency>
207                 <groupId>org.junit.jupiter</groupId>
208                 <artifactId>junit-jupiter-api</artifactId>
209                 <version>${junit-jupiter.version}</version>
210                 <scope>test</scope>
211             </dependency>
212             <dependency>
213                 <groupId>org.junit.jupiter</groupId>
214                 <artifactId>junit-jupiter-engine</artifactId>
215                 <version>${junit-jupiter.version}</version>
216                 <scope>test</scope>
217             </dependency>
218             <dependency>
219                 <groupId>org.junit.jupiter</groupId>
220                 <artifactId>junit-jupiter-params</artifactId>
221                 <version>${junit-jupiter.version}</version>
222                 <scope>test</scope>
223             </dependency>
224             <dependency>
225                 <groupId>org.junit.platform</groupId>
226                 <artifactId>junit-platform-engine</artifactId>
227                 <version>${junit-platform.version}</version>
228                 <scope>test</scope>
229             </dependency>
230             <dependency>
231                 <groupId>org.junit.platform</groupId>
232                 <artifactId>junit-platform-launcher</artifactId>
233                 <version>${junit-platform.version}</version>
234                 <scope>test</scope>
235             </dependency>
236             <dependency>
237                 <groupId>org.apiguardian</groupId>
238                 <artifactId>apiguardian-api</artifactId>
239                 <version>${apiguardian-api.version}</version>
240                 <scope>test</scope>
241             </dependency>
242
243             <!-- IMPORT DEPENDENCY MANAGEMENT FROM SPRING BOOT -->
244             <dependency>
245                 <groupId>org.springframework.boot</groupId>
246                 <artifactId>spring-boot-dependencies</artifactId>
247                 <version>${spring.boot.version}</version>
248                 <type>pom</type>
249                 <scope>import</scope>
250             </dependency>
251             <!-- IMPORT DEPENDENCY MANAGEMENT FROM SPRING CLOUD -->
252             <dependency>
253                 <groupId>org.springframework.cloud</groupId>
254                 <artifactId>spring-cloud-dependencies</artifactId>
255                 <version>${spring.cloud.version}</version>
256                 <type>pom</type>
257                 <scope>import</scope>
258             </dependency>
259
260         </dependencies>
261     </dependencyManagement>
262
263     <build>
264
265         <pluginManagement>
266
267             <plugins>
268
269                 <!-- COMPILER PLUGIN -->
270                 <plugin>
271                     <groupId>org.apache.maven.plugins</groupId>
272                     <artifactId>maven-compiler-plugin</artifactId>
273                     <version>${maven-compiler-plugin.version}</version>
274                     <configuration>
275                         <fork>true</fork>
276                         <debug>true</debug>
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>
283                     </configuration>
284                 </plugin>
285
286                 <!-- MAVEN SOURCE PLUGIN -->
287                 <plugin>
288                     <groupId>org.apache.maven.plugins</groupId>
289                     <artifactId>maven-source-plugin</artifactId>
290                     <version>${maven-source-plugin.version}</version>
291                     <configuration>
292                         <excludeResources>true</excludeResources>
293                     </configuration>
294                     <executions>
295                         <execution>
296                             <id>attach-sources</id>
297                             <phase>verify</phase>
298                             <goals>
299                                 <goal>jar-no-fork</goal>
300                             </goals>
301                         </execution>
302                     </executions>
303                 </plugin>
304
305                 <!-- MAVEN JAVADOC PLUGIN -->
306                 <plugin>
307                     <groupId>org.apache.maven.plugins</groupId>
308                     <artifactId>maven-javadoc-plugin</artifactId>
309                     <version>${maven-javadoc-plugin.version}</version>
310                     <configuration>
311                         <!-- minimize console output messages -->
312                         <quiet>true</quiet>
313                         <verbose>false</verbose>
314                         <useStandardDocletOptions>false</useStandardDocletOptions>
315                     </configuration>
316                     <executions>
317                         <execution>
318                             <id>aggregate</id>
319                             <phase>site</phase>
320                             <goals>
321                                 <goal>aggregate</goal>
322                             </goals>
323                         </execution>
324                         <execution>
325                             <id>attach-javadoc</id>
326                             <goals>
327                                 <goal>jar</goal>
328                             </goals>
329                         </execution>
330                     </executions>
331                 </plugin>
332
333                 <!-- MAVEN DEPLOY PLUGIN -->
334                 <plugin>
335                     <artifactId>maven-deploy-plugin</artifactId>
336                     <version>${maven-deploy-plugin.version}</version>
337                     <configuration>
338                         <deployAtEnd>true</deployAtEnd>
339                     </configuration>
340                 </plugin>
341
342                 <!-- SUREFIRE TEST PLUGIN -->
343                 <plugin>
344                     <groupId>org.apache.maven.plugins</groupId>
345                     <artifactId>maven-surefire-plugin</artifactId>
346                     <version>${maven-surefire-plugin.version}</version>
347                     <configuration>
348                         <skipTests>${skip.unit.tests}</skipTests>
349                         <argLine>-Xmx2048m -Djava.awt.headless=true -XX:+UseConcMarkSweepGC
350                             -XX:OnOutOfMemoryError="kill -9 %p" -XX:+HeapDumpOnOutOfMemoryError ${surefireArgLine}
351                         </argLine>
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>
366                         <includes>
367                             <include>${unit.test.pattern}</include>
368                         </includes>
369                         <excludes>
370                             <exclude>${integration.test.pattern}</exclude>
371                         </excludes>
372                     </configuration>
373                     <dependencies>
374                         <dependency>
375                             <groupId>org.junit.platform</groupId>
376                             <artifactId>junit-platform-surefire-provider</artifactId>
377                             <version>${junit-platform.version}</version>
378                         </dependency>
379                     </dependencies>
380                 </plugin>
381
382                 <!-- FAIL SAFE PLUGIN FOR INTEGRATION TEST -->
383                 <plugin>
384                     <groupId>org.apache.maven.plugins</groupId>
385                     <artifactId>maven-failsafe-plugin</artifactId>
386                     <version>${maven-failsafe-plugin.version}</version>
387                     <dependencies>
388                         <dependency>
389                             <groupId>org.junit.platform</groupId>
390                             <artifactId>junit-platform-surefire-provider</artifactId>
391                             <version>${junit-platform.version}</version>
392                         </dependency>
393                     </dependencies>
394                     <executions>
395                         <execution>
396                             <id>integration-tests</id>
397                             <goals>
398                                 <goal>integration-test</goal>
399                                 <goal>verify</goal>
400                             </goals>
401                             <configuration>
402                                 <argLine>${failsafeArgLine}</argLine>
403                                 <redirectTestOutputToFile>true</redirectTestOutputToFile>
404                                 <skipTests>${skip.integration.tests}</skipTests>
405                                 <includes>
406                                     <include>${integration.test.pattern}</include>
407                                 </includes>
408                                 <excludes>
409                                     <exclude>${unit.test.pattern}</exclude>
410                                 </excludes>
411                                 <systemPropertyVariables>
412                                     <java.io.tmpdir>${project.build.directory}</java.io.tmpdir>
413                                     <logging.config>classpath:logback-test.xml</logging.config>
414                                 </systemPropertyVariables>
415                             </configuration>
416                         </execution>
417                     </executions>
418                 </plugin>
419
420
421                 <!-- FIND BUGS (STATIC CODE ANALYSIS) PLUGIN -->
422                 <plugin>
423                     <groupId>org.codehaus.mojo</groupId>
424                     <artifactId>findbugs-maven-plugin</artifactId>
425                     <version>${findbugs.plugin.version}</version>
426                     <configuration>
427                         <effort>Max</effort>
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>
436                     </configuration>
437                     <executions>
438                         <execution>
439                             <id>analyze-compile</id>
440                             <phase>compile</phase>
441                             <goals>
442                                 <goal>check</goal>
443                             </goals>
444                         </execution>
445                     </executions>
446                 </plugin>
447
448                 <!-- PMD PLUGIN SETUP -->
449                 <plugin>
450                     <groupId>org.apache.maven.plugins</groupId>
451                     <artifactId>maven-pmd-plugin</artifactId>
452                     <version>${pmd.plugin.version}</version>
453                     <configuration>
454                         <sourceEncoding>${project.build.sourceEncoding}</sourceEncoding>
455                         <targetJdk>${compiler.target.version}</targetJdk>
456                         <linkXRef>false</linkXRef>
457                         <excludes>
458                             <exclude>**/*Mixin.java</exclude>
459                         </excludes>
460                         <!-- BUILD FAIL ON PMD VIOLATION -->
461                         <failOnViolation>${pmd.violation.buildfail}</failOnViolation>
462                         <targetDirectory>${project.reporting.outputDirectory}/pmd</targetDirectory>
463                     </configuration>
464                     <executions>
465                         <execution>
466                             <id>pmd-check</id>
467                             <goals>
468                                 <goal>check</goal>
469                             </goals>
470                             <configuration>
471                                 <printFailingErrors>true</printFailingErrors>
472                                 <excludeFromFailureFile>${main.basedir}/pmd-exclude.properties</excludeFromFailureFile>
473                             </configuration>
474                         </execution>
475                         <execution>
476                             <id>cpd-check</id>
477                             <goals>
478                                 <goal>cpd-check</goal>
479                             </goals>
480                             <configuration>
481                                 <printFailingErrors>true</printFailingErrors>
482                                 <excludeFromFailureFile>${main.basedir}/cpd-exclude.properties</excludeFromFailureFile>
483                             </configuration>
484                         </execution>
485                     </executions>
486                 </plugin>
487
488                 <!-- CHECKSTYLE PLUGIN -->
489                 <plugin>
490                     <groupId>org.apache.maven.plugins</groupId>
491                     <artifactId>maven-checkstyle-plugin</artifactId>
492                     <version>${checkstyle.plugin.version}</version>
493                     <executions>
494                         <execution>
495                             <id>validate</id>
496                             <phase>validate</phase>
497                             <configuration>
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>
506                             </configuration>
507                             <goals>
508                                 <goal>check</goal>
509                             </goals>
510                         </execution>
511                     </executions>
512                     <dependencies>
513                         <dependency>
514                             <groupId>com.puppycrawl.tools</groupId>
515                             <artifactId>checkstyle</artifactId>
516                             <version>6.19</version>
517                         </dependency>
518                     </dependencies>
519                 </plugin>
520
521                 <!-- LOMBOK PLUGIN -->
522                 <plugin>
523                     <groupId>org.projectlombok</groupId>
524                     <artifactId>lombok-maven-plugin</artifactId>
525                     <version>${lombok.plugin.version}</version>
526                     <executions>
527                         <execution>
528                             <id>delombok</id>
529                             <phase>generate-sources</phase>
530                             <goals>
531                                 <goal>delombok</goal>
532                             </goals>
533                             <configuration>
534                                 <addOutputDirectory>false</addOutputDirectory>
535                                 <sourceDirectory>src/main/java</sourceDirectory>
536                             </configuration>
537                         </execution>
538                     </executions>
539                 </plugin>
540
541                 <!-- GIT COMMIT ID PLUGIN -->
542                 <plugin>
543                     <groupId>pl.project13.maven</groupId>
544                     <artifactId>git-commit-id-plugin</artifactId>
545                     <version>${gitcommitid.plugin.version}</version>
546                     <executions>
547                         <execution>
548                             <id>generate-git-properties</id>
549                             <phase>generate-resources</phase>
550                             <goals>
551                                 <goal>revision</goal>
552                             </goals>
553                             <configuration>
554                                 <failOnNoGitDirectory>false</failOnNoGitDirectory>
555                                 <generateGitPropertiesFile>true</generateGitPropertiesFile>
556                                 <generateGitPropertiesFilename>
557                                     ${project.build.directory}/git/git.properties
558                                 </generateGitPropertiesFilename>
559                             </configuration>
560                         </execution>
561                     </executions>
562                 </plugin>
563
564                 <!-- JAR PLUGIN -->
565                 <plugin>
566                     <groupId>org.apache.maven.plugins</groupId>
567                     <artifactId>maven-jar-plugin</artifactId>
568                     <version>${maven-jar-plugin.version}</version>
569                     <configuration>
570                         <archive>
571                             <manifest>
572                                 <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
573                             </manifest>
574                             <manifestEntries>
575                                 <Implementation-Build-Version>${project.version}</Implementation-Build-Version>
576                             </manifestEntries>
577                         </archive>
578                     </configuration>
579                 </plugin>
580
581
582                 <!-- ASSEMBLY PLUGIN -->
583                 <plugin>
584                     <groupId>org.apache.maven.plugins</groupId>
585                     <artifactId>maven-assembly-plugin</artifactId>
586                     <version>${maven-assembly-plugin.version}</version>
587                     <configuration>
588                         <descriptors>
589                             <descriptor>${main.basedir}/assembly/cdp-assembly-descriptor.xml</descriptor>
590                         </descriptors>
591                     </configuration>
592                     <executions>
593                         <execution>
594                             <id>cdp-assembly</id>
595                             <phase>package</phase>
596                             <goals>
597                                 <goal>single</goal>
598                             </goals>
599                         </execution>
600                     </executions>
601                 </plugin>
602
603                 <!-- BUILD HELPER PLUGIN -->
604                 <plugin>
605                     <groupId>org.codehaus.mojo</groupId>
606                     <artifactId>build-helper-maven-plugin</artifactId>
607                     <version>${maven.build.helper.plugin.version}</version>
608                 </plugin>
609
610                 <!-- SPRING BOOT PLUGIN -->
611                 <plugin>
612                     <groupId>org.springframework.boot</groupId>
613                     <artifactId>spring-boot-maven-plugin</artifactId>
614                     <version>${spring.boot.version}</version>
615                     <executions>
616                         <execution>
617                             <id>build-info</id>
618                             <goals>
619                                 <goal>build-info</goal>
620                             </goals>
621                         </execution>
622                         <execution>
623                             <id>spring-boot-uber-jar</id>
624                             <goals>
625                                 <goal>repackage</goal>
626                             </goals>
627                         </execution>
628                     </executions>
629                 </plugin>
630
631                 <!-- DOCKER PLUGIN -->
632                 <plugin>
633                     <groupId>com.spotify</groupId>
634                     <artifactId>dockerfile-maven-plugin</artifactId>
635                     <version>${dockerfile-maven-version}</version>
636                     <configuration>
637                         <repository>${docker.repository}/onap/${project.groupId}.${project.artifactId}</repository>
638                         <tag>${project.version}</tag>
639                     </configuration>
640                 </plugin>
641
642             </plugins>
643
644         </pluginManagement>
645
646
647         <plugins>
648
649             <plugin>
650                 <groupId>org.apache.maven.plugins</groupId>
651                 <artifactId>maven-compiler-plugin</artifactId>
652             </plugin>
653
654             <plugin>
655                 <groupId>org.apache.maven.plugins</groupId>
656                 <artifactId>maven-jar-plugin</artifactId>
657             </plugin>
658
659             <plugin>
660                 <groupId>org.apache.maven.plugins</groupId>
661                 <artifactId>maven-surefire-plugin</artifactId>
662             </plugin>
663
664             <plugin>
665                 <groupId>org.apache.maven.plugins</groupId>
666                 <artifactId>maven-failsafe-plugin</artifactId>
667             </plugin>
668
669             <plugin>
670                 <groupId>org.apache.maven.plugins</groupId>
671                 <artifactId>maven-source-plugin</artifactId>
672             </plugin>
673
674             <plugin>
675                 <groupId>org.apache.maven.plugins</groupId>
676                 <artifactId>maven-javadoc-plugin</artifactId>
677             </plugin>
678
679             <plugin>
680                 <groupId>org.apache.maven.plugins</groupId>
681                 <artifactId>maven-deploy-plugin</artifactId>
682             </plugin>
683
684             <plugin>
685                 <groupId>org.apache.maven.plugins</groupId>
686                 <artifactId>maven-pmd-plugin</artifactId>
687             </plugin>
688
689             <plugin>
690                 <groupId>org.codehaus.mojo</groupId>
691                 <artifactId>findbugs-maven-plugin</artifactId>
692             </plugin>
693
694             <plugin>
695                 <groupId>org.apache.maven.plugins</groupId>
696                 <artifactId>maven-checkstyle-plugin</artifactId>
697             </plugin>
698
699             <plugin>
700                 <groupId>org.jacoco</groupId>
701                 <artifactId>jacoco-maven-plugin</artifactId>
702             </plugin>
703
704         </plugins>
705     </build>
706
707 </project>