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