Release version 2.5.3
[ccsdk/parent.git] / springboot / springboot1 / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
3     <modelVersion>4.0.0</modelVersion>
4
5     <!-- PLEASE READ !!!!! This file is generated from ccsdk/parent/springboot/spring-boot-setup/src/main/template/pom-template-jdk8.xml
6         Any updates needed should be made to that template and not to the generated
7         pom.xml file -->
8     <parent>
9         <groupId>org.springframework.boot</groupId>
10         <artifactId>spring-boot-starter-parent</artifactId>
11         <version>1.5.22.RELEASE</version>
12         <relativePath/>
13     </parent>
14
15     <groupId>org.onap.ccsdk.parent</groupId>
16     <artifactId>spring-boot-1-starter-parent</artifactId>
17     <version>2.5.4-SNAPSHOT</version>
18     <packaging>pom</packaging>
19
20     <name>ONAP :: ${project.groupId} :: ${project.artifactId}</name>
21     <description>Root POM to be used in place of spring-boot parent for CCSDK based projects</description>
22     <url>http://wiki.onap.org</url>
23     <organization>
24         <name>ONAP</name>
25     </organization>
26
27     <issueManagement>
28         <system>JIRA</system>
29         <url>https://jira.onap.org/</url>
30     </issueManagement>
31
32     <distributionManagement>
33         <repository>
34             <id>ecomp-releases</id>
35             <url>${onap.nexus.release-url}</url>
36         </repository>
37         <snapshotRepository>
38             <id>ecomp-snapshots</id>
39             <url>${onap.nexus.snapshot-url}</url>
40         </snapshotRepository>
41     </distributionManagement>
42
43     <properties>
44         <!-- Sonar properties -->
45         <sonar.scanner.version>3.7.0.1746</sonar.scanner.version>
46         <sonar-jacoco-listeners.version>3.2</sonar-jacoco-listeners.version>
47         <sonar.core.codeCoveragePlugin>jacoco</sonar.core.codeCoveragePlugin>
48         <!-- Default Sonar configuration -->
49         <sonar.coverage.jacoco.xmlReportPaths>${project.reporting.outputDirectory}/jacoco-ut/jacoco.xml,${project.reporting.outputDirectory}/jacoco-it/jacoco.xml</sonar.coverage.jacoco.xmlReportPaths>
50         <!-- Note: This list should match jacoco-maven-plugin's exclusion list below -->
51         <sonar.exclusions>**/gen/**,**/generated-sources/**,**/yang-gen**,**/pax/**</sonar.exclusions>
52
53         <!-- Jacoco properties -->
54         <jacoco.version>0.8.5</jacoco.version>
55         <!-- properties from oparent -->
56
57         <maven.compiler.source>1.8</maven.compiler.source>
58         <maven.compiler.target>1.8</maven.compiler.target>
59         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
60         <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
61         <!-- sitePath may be overridden in the inheriting POM if desired -->
62         <sitePath>/content/sites/site/${project.groupId}/${project.artifactId}/${project.version}</sitePath>
63
64         <!-- If following file exist, auto-generation of swagger.json will be done -->
65         <swagger-properties>${basedir}/src/main/resources/swagger.properties</swagger-properties>
66         <!-- If following file exist, auto-generation of sdk will be done -->
67         <swagger-json>${basedir}/src/main/resources/swagger.json</swagger-json>
68         <!-- end of properties from oparent -->
69
70         <!-- ONAP repositories -->
71         <onap.nexus.url>https://nexus.onap.org</onap.nexus.url>
72         <onap.nexus.host>nexus.onap.org</onap.nexus.host>
73         <onap.nexus.port>443</onap.nexus.port>
74         <onap.nexus.protocol>https</onap.nexus.protocol>
75         <onap.nexus.public-url>https://nexus.onap.org/content/groups/public</onap.nexus.public-url>
76         <onap.nexus.staging-url>https://nexus.onap.org/content/groups/staging</onap.nexus.staging-url>
77         <onap.nexus.release-url>https://nexus.onap.org/content/repositories/releases</onap.nexus.release-url>
78         <onap.nexus.snapshot-url>https://nexus.onap.org/content/repositories/snapshots</onap.nexus.snapshot-url>
79         <onap.nexus.staging.server-id>ecomp-staging</onap.nexus.staging.server-id>
80         <onap.nexus.staging.profile-id>176c31dfe190a</onap.nexus.staging.profile-id>
81
82         <java.version.source>1.8</java.version.source>
83         <java.version.target>1.8</java.version.target>
84         <bundle.plugin.version>2.5.0</bundle.plugin.version>
85         <maven.compile.plugin.version>2.5.1</maven.compile.plugin.version>
86         <features.file>features.xml</features.file>
87         <jmxGeneratorPath>src/main/yang-gen-config</jmxGeneratorPath>
88         <salGeneratorPath>src/main/yang-gen-sal</salGeneratorPath>
89         <checkstyle.skip>true</checkstyle.skip>
90
91         <!-- logging-analytics versions -->
92         <logging-analytics.version>1.6.9</logging-analytics.version>
93
94         <!-- CCSDK component versions -->
95         <ccsdk.cds.version>(1.4.99999,1.5.99999-SNAPSHOT]</ccsdk.cds.version>
96         <ccsdk.features.version>(1.4.99999, 1.5.99999-SNAPSHOT]</ccsdk.features.version>
97         <ccsdk.distribution.version>(1.4.99999, 1.5.99999-SNAPSHOT]</ccsdk.distribution.version>
98         <ccsdk.sli.version>(1.5.99999, 1.6.99999-SNAPSHOT]</ccsdk.sli.version>
99         <ccsdk.sli.core.version>${ccsdk.sli.version}</ccsdk.sli.core.version>
100         <ccsdk.sli.adaptors.version>${ccsdk.sli.version}</ccsdk.sli.adaptors.version>
101         <ccsdk.sli.northbound.version>${ccsdk.sli.version}</ccsdk.sli.northbound.version>
102         <ccsdk.sli.plugins.version>${ccsdk.sli.version}</ccsdk.sli.plugins.version>
103
104         <!-- Spring versions -->
105         <spring.boot.version>1.5.22.RELEASE</spring.boot.version>
106         <spring.version>4.3.25.RELEASE</spring.version>
107
108         <!-- Kotlin versions -->
109         <kotlin.compiler.jvmTarget>1.8</kotlin.compiler.jvmTarget>
110         <kotlin.version>1.3.61</kotlin.version>
111         <kotlin.maven.version>1.3.61</kotlin.maven.version>
112         <kotlin.couroutines.version>1.3.3</kotlin.couroutines.version>
113         <kotlinpoet.version>1.5.0</kotlinpoet.version>
114         <kroto-plus.version>0.5.0</kroto-plus.version>
115         <nats.version>2.6.6</nats.version>
116         <nats.streaming.version>2.2.3</nats.streaming.version>
117         <mockk.version>1.9.3</mockk.version>
118
119         <!-- Managed dependency versions -->
120         <antlr.version>4.8-1</antlr.version>
121         <commons.lang.version>2.6</commons.lang.version>
122         <apache.httpcomponents.core.version>4.4.14</apache.httpcomponents.core.version>
123         <apache.httpcomponents.client.version>4.5.13</apache.httpcomponents.client.version>
124         <derby.version>10.14.2.0</derby.version>
125         <eelf.version>1.0.0</eelf.version>
126         <grpc.version>1.25.0</grpc.version>
127         <netty-ssl>2.0.39.Final</netty-ssl>
128         <protobuff.java.version>3.10.0</protobuff.java.version>
129         <protobuff.java.utils.version>3.10.0</protobuff.java.utils.version>
130         <jersey.version>2.30.1</jersey.version>
131         <jersey.client.version>2.30.1</jersey.client.version>
132         <jettison.version>1.3.8</jettison.version>
133         <log4j.version>2.17.2</log4j.version>
134         <log4j2.version>2.17.2</log4j2.version>
135         <logback.version>1.2.11</logback.version>
136         <mariadb.connector.version>2.7.3</mariadb.connector.version>
137         <mariadb4j.version>2.4.0</mariadb4j.version>
138         <slf4j.version>1.7.25</slf4j.version>
139         <springfox.version>2.9.2</springfox.version>
140         <testng.version>6.14.3</testng.version>
141         <tomcat-jdbc.version>9.0.46</tomcat-jdbc.version>
142         <dependency-list.file>direct-dependencies.txt</dependency-list.file>
143     </properties>
144
145     <dependencyManagement>
146         <dependencies>
147             <!-- Note: If value in BOM conflicts with value inherited from
148             parent pom, inherited value takes precedence.  This seems more like
149             a bug than a feature, but this is how maven 3.6 works -->
150             <dependency>
151                 <groupId>org.onap.ccsdk.parent</groupId>
152                 <artifactId>dependencies-bom</artifactId>
153                 <version>2.5.4-SNAPSHOT</version>
154                 <type>pom</type>
155                 <scope>import</scope>
156             </dependency>
157             <dependency>
158                 <groupId>com.fasterxml.jackson</groupId>
159                 <artifactId>jackson-bom</artifactId>
160                 <version>2.11.4</version>
161                 <type>pom</type>
162                 <scope>import</scope>
163             </dependency>
164             <dependency>
165                 <groupId>org.onap.ccsdk.sli.core</groupId>
166                 <artifactId>sli-common</artifactId>
167                 <version>${ccsdk.sli.core.version}</version>
168             </dependency>
169             <dependency>
170                 <groupId>org.onap.ccsdk.sli.core</groupId>
171                 <artifactId>sli-provider</artifactId>
172                 <version>${ccsdk.sli.core.version}</version>
173             </dependency>
174             <dependency>
175                 <groupId>org.onap.ccsdk.sli.core</groupId>
176                 <artifactId>ccsdk-sli</artifactId>
177                 <version>${ccsdk.sli.core.version}</version>
178                 <type>xml</type>
179                 <classifier>features</classifier>
180             </dependency>
181             <dependency>
182                 <groupId>org.onap.ccsdk.sli.core</groupId>
183                 <artifactId>dblib-provider</artifactId>
184                 <version>${ccsdk.sli.core.version}</version>
185             </dependency>
186             <dependency>
187                 <groupId>org.onap.ccsdk.sli.adaptors</groupId>
188                 <artifactId>aai-service-provider</artifactId>
189                 <version>${ccsdk.sli.adaptors.version}</version>
190             </dependency>
191             <dependency>
192                 <groupId>org.onap.logging-analytics</groupId>
193                 <artifactId>logging-slf4j</artifactId>
194                 <version>${logging-analytics.version}</version>
195             </dependency>
196             <dependency>
197                 <groupId>org.onap.logging-analytics</groupId>
198                 <artifactId>logging-filter-base</artifactId>
199                 <version>${logging-analytics.version}</version>
200             </dependency>
201             <dependency>
202                 <groupId>org.liquibase</groupId>
203                 <artifactId>liquibase-core</artifactId>
204                 <version>4.4.2-nordix</version>
205             </dependency>
206             <dependency>
207                 <groupId>org.apache.logging.log4j</groupId>
208                 <artifactId>log4j-api</artifactId>
209                 <version>${log4j2.version}</version>
210             </dependency>
211             <dependency>
212                 <groupId>org.apache.logging.log4j</groupId>
213                 <artifactId>log4j-core</artifactId>
214                 <version>${log4j2.version}</version>
215             </dependency>
216         </dependencies>
217     </dependencyManagement>
218
219     <repositories>
220         <repository>
221             <id>onap-public</id>
222             <url>${onap.nexus.public-url}</url>
223             <releases>
224                 <enabled>true</enabled>
225                 <updatePolicy>never</updatePolicy>
226             </releases>
227             <snapshots>
228                 <enabled>true</enabled>
229                 <updatePolicy>always</updatePolicy>
230             </snapshots>
231         </repository>
232         <repository>
233             <id>onap-staging</id>
234             <url>${onap.nexus.staging-url}</url>
235             <releases>
236                 <enabled>true</enabled>
237                 <updatePolicy>never</updatePolicy>
238             </releases>
239             <snapshots>
240                 <enabled>true</enabled>
241                 <updatePolicy>always</updatePolicy>
242             </snapshots>
243         </repository>
244         <repository>
245             <id>ecomp-release</id>
246             <name>onap-repository-releases</name>
247             <url>${onap.nexus.release-url}</url>
248             <releases>
249                 <enabled>true</enabled>
250                 <updatePolicy>never</updatePolicy>
251             </releases>
252             <snapshots>
253                 <enabled>false</enabled>
254             </snapshots>
255         </repository>
256         <repository>
257             <id>ecomp-snapshot</id>
258             <name>onap-repository-snapshots</name>
259             <url>${onap.nexus.snapshot-url}</url>
260             <releases>
261                 <enabled>false</enabled>
262             </releases>
263             <snapshots>
264                 <enabled>true</enabled>
265             </snapshots>
266         </repository>
267     </repositories>
268
269     <pluginRepositories>
270         <pluginRepository>
271             <id>onap-public</id>
272             <url>${onap.nexus.public-url}</url>
273             <releases>
274                 <enabled>true</enabled>
275             </releases>
276             <snapshots>
277                 <enabled>true</enabled>
278             </snapshots>
279         </pluginRepository>
280         <pluginRepository>
281             <id>onap-staging</id>
282             <url>${onap.nexus.staging-url}</url>
283             <releases>
284                 <enabled>true</enabled>
285             </releases>
286             <snapshots>
287                 <enabled>true</enabled>
288             </snapshots>
289         </pluginRepository>
290         <pluginRepository>
291             <id>onap-snapshot</id>
292             <url>${onap.nexus.snapshot-url}</url>
293             <releases>
294                 <enabled>false</enabled>
295             </releases>
296             <snapshots>
297                 <enabled>true</enabled>
298             </snapshots>
299         </pluginRepository>
300         <!-- Black Duck plugin dependencies -->
301         <pluginRepository>
302             <id>JCenter</id>
303             <name>JCenter Repository</name>
304             <url>http://jcenter.bintray.com</url>
305         </pluginRepository>
306
307         <pluginRepository>
308             <id>Restlet</id>
309             <name>Restlet Repository</name>
310             <url>http://maven.restlet.com</url>
311         </pluginRepository>
312     </pluginRepositories>
313
314     <build>
315         <pluginManagement>
316             <plugins>
317                 <!-- Plugins from ONAP oparent -->
318                 <plugin>
319                     <groupId>org.apache.maven.plugins</groupId>
320                     <artifactId>maven-deploy-plugin</artifactId>
321                     <!-- This version supports the "deployAtEnd" parameter -->
322                     <version>2.8</version>
323                     <configuration>
324                         <skip/>
325                         <deployAtEnd>true</deployAtEnd>
326                     </configuration>
327                 </plugin>
328                 <plugin>
329                     <groupId>org.apache.maven.plugins</groupId>
330                     <artifactId>maven-site-plugin</artifactId>
331                     <version>3.6</version>
332                     <dependencies>
333                         <dependency>
334                             <groupId>org.apache.maven.wagon</groupId>
335                             <artifactId>wagon-webdav-jackrabbit</artifactId>
336                             <version>2.10</version>
337                         </dependency>
338                         <dependency>
339                             <groupId>org.apache.maven.doxia</groupId>
340                             <artifactId>doxia-core</artifactId>
341                             <version>1.7</version>
342                         </dependency>
343                         <dependency>
344                             <groupId>org.apache.maven.doxia</groupId>
345                             <artifactId>doxia-sink-api</artifactId>
346                             <version>1.7</version>
347                         </dependency>
348                         <dependency>
349                             <groupId>org.apache.maven.doxia</groupId>
350                             <artifactId>doxia-logging-api</artifactId>
351                             <version>1.7</version>
352                         </dependency>
353                     </dependencies>
354                     <executions>
355                         <execution>
356                             <id>attach-descriptor</id>
357                             <goals>
358                                 <goal>attach-descriptor</goal>
359                             </goals>
360                         </execution>
361                     </executions>
362                 </plugin>
363                 <plugin>
364                     <groupId>org.apache.maven.plugins</groupId>
365                     <artifactId>maven-checkstyle-plugin</artifactId>
366                     <version>2.17</version>
367                     <dependencies>
368                         <dependency>
369                             <groupId>org.onap.oparent</groupId>
370                             <artifactId>checkstyle</artifactId>
371                             <version>1.1.1</version>
372                         </dependency>
373                     </dependencies>
374                     <executions>
375                         <execution>
376                             <id>check-license</id>
377                             <goals>
378                                 <goal>check</goal>
379                             </goals>
380                             <phase>process-sources</phase>
381                             <configuration>
382                                 <configLocation>onap-checkstyle/check-license.xml</configLocation>
383                                 <headerLocation>onap-checkstyle/apache-license-2.regexp.txt</headerLocation>
384                                 <includeResources>false</includeResources>
385                                 <includeTestSourceDirectory>true</includeTestSourceDirectory>
386                                 <includeTestResources>false</includeTestResources>
387                                 <sourceDirectory>${project.build.sourceDirectory}</sourceDirectory>
388                                 <excludes>
389                                 </excludes>
390                                 <failsOnError>false</failsOnError>
391                                 <consoleOutput>true</consoleOutput>
392                             </configuration>
393                         </execution>
394                         <execution>
395                             <id>check-style</id>
396                             <goals>
397                                 <goal>check</goal>
398                             </goals>
399                             <phase>process-sources</phase>
400                             <configuration>
401                                 <!-- Use Google Java Style Guide: https://github.com/checkstyle/checkstyle/blob/master/src/main/resources/google_checks.xml
402                                     with minor changes -->
403                                 <configLocation>onap-checkstyle/onap-java-style.xml</configLocation>
404                                 <!-- <sourceDirectory> is needed so that checkstyle ignores the generated sources directory -->
405                                 <sourceDirectory>${project.build.sourceDirectory}/src/main/java</sourceDirectory>
406                                 <includeResources>true</includeResources>
407                                 <includeTestSourceDirectory>true</includeTestSourceDirectory>
408                                 <includeTestResources>true</includeTestResources>
409                                 <excludes>
410                                 </excludes>
411                                 <failsOnError>false</failsOnError>
412                                 <consoleOutput>true</consoleOutput>
413                             </configuration>
414                         </execution>
415                     </executions>
416                 </plugin>
417
418                 <plugin>
419                     <groupId>org.apache.maven.plugins</groupId>
420                     <artifactId>maven-surefire-plugin</artifactId>
421                     <version>2.19.1</version>
422                     <configuration>
423                         <!-- Sets the VM argument line used when unit tests are run. -->
424                         <argLine>${surefireArgLine}</argLine>
425                         <!-- Excludes integration tests when unit tests are run. -->
426                         <excludes>
427                             <exclude>**/IT*.java</exclude>
428                         </excludes>
429                     </configuration>
430                 </plugin>
431                 <plugin>
432                     <groupId>org.apache.maven.plugins</groupId>
433                     <artifactId>maven-failsafe-plugin</artifactId>
434                     <version>2.19.1</version>
435                     <executions>
436                         <!-- Ensures that both integration-test and verify goals of the Failsafe Maven plugin are executed. -->
437                         <execution>
438                             <id>integration-tests</id>
439                             <goals>
440                                 <goal>integration-test</goal>
441                                 <goal>verify</goal>
442                             </goals>
443                             <configuration>
444                                 <!-- Sets the VM argument line used when integration tests are run. -->
445                                 <argLine>${failsafeArgLine}</argLine>
446                             </configuration>
447                         </execution>
448                     </executions>
449                 </plugin>
450                 <plugin>
451                     <groupId>org.apache.maven.plugins</groupId>
452                     <artifactId>maven-compiler-plugin</artifactId>
453                     <version>${maven.compile.plugin.version}</version>
454                     <configuration>
455                         <source>${java.version.source}</source>
456                         <target>${java.version.target}</target>
457                     </configuration>
458                 </plugin>
459                 <plugin>
460                     <groupId>org.sonarsource.scanner.maven</groupId>
461                     <artifactId>sonar-maven-plugin</artifactId>
462                     <version>3.6.0.1398</version>
463                 </plugin>
464
465                 <!-- End of plugins from ONAP oparent -->
466
467                 <plugin>
468                     <groupId>org.apache.maven.plugins</groupId>
469                     <artifactId>maven-javadoc-plugin</artifactId>
470                     <version>3.2.0</version>
471                     <configuration>
472                         <additionalDependencies>
473                             <additionalDependency>
474                                 <groupId>org.slf4j</groupId>
475                                 <artifactId>slf4j-api</artifactId>
476                                 <version>${slf4j.version}</version>
477                             </additionalDependency>
478                             <additionalDependency>
479                                 <groupId>org.antlr</groupId>
480                                 <artifactId>antlr4</artifactId>
481                                 <version>${antlr.version}</version>
482                             </additionalDependency>
483                             <additionalDependency>
484                                 <groupId>org.antlr</groupId>
485                                 <artifactId>antlr4-runtime</artifactId>
486                                 <version>${antlr.version}</version>
487                             </additionalDependency>
488                             <additionalDependency>
489                                 <groupId>com.sun.jersey</groupId>
490                                 <artifactId>jersey-client</artifactId>
491                                 <version>${jersey.client.version}</version>
492                             </additionalDependency>
493                             <additionalDependency>
494                                 <groupId>com.sun.jersey</groupId>
495                                 <artifactId>jersey-core</artifactId>
496                                 <version>${jersey.version}</version>
497                             </additionalDependency>
498                             <additionalDependency>
499                                 <groupId>org.apache.httpcomponents</groupId>
500                                 <artifactId>httpcore-osgi</artifactId>
501                                 <version>${apache.httpcomponents.core.version}</version>
502                             </additionalDependency>
503                             <additionalDependency>
504                                 <groupId>org.apache.httpcomponents</groupId>
505                                 <artifactId>httpclient-osgi</artifactId>
506                                 <version>${apache.httpcomponents.client.version}</version>
507                             </additionalDependency>
508                             <additionalDependency>
509                                 <groupId>commons-lang</groupId>
510                                 <artifactId>commons-lang</artifactId>
511                                 <version>${commons.lang.version}</version>
512                             </additionalDependency>
513                         </additionalDependencies>
514                         <failOnError>false</failOnError>
515                     </configuration>
516                     <executions>
517                         <execution>
518                             <id>aggregate</id>
519                             <goals>
520                                 <goal>aggregate</goal>
521                             </goals>
522                             <phase>site</phase>
523                         </execution>
524                     </executions>
525                 </plugin>
526                 <plugin>
527                     <groupId>com.github.ferstl</groupId>
528                     <artifactId>depgraph-maven-plugin</artifactId>
529                     <version>3.3.0</version>
530                     <configuration>
531                         <graphFormat>text</graphFormat>
532                         <outputFileName>${dependency-list.file}</outputFileName>
533                         <outputDirectory>${project.basedir}</outputDirectory>
534                         <transitiveExcludes>*</transitiveExcludes>
535                         <showVersions>true</showVersions>
536                         <showGroupIds>true</showGroupIds>
537                     </configuration>
538                 </plugin>
539             </plugins>
540         </pluginManagement>
541         <plugins>
542             <!-- Plugins from ONAP oparent -->
543             <!-- Jacoco / Sonar -->
544             <plugin>
545                 <groupId>org.jacoco</groupId>
546                 <artifactId>jacoco-maven-plugin</artifactId>
547                 <version>${jacoco.version}</version>
548                 <executions>
549                     <execution>
550                         <id>pre-unit-test</id>
551                         <goals>
552                             <goal>prepare-agent</goal>
553                         </goals>
554                         <configuration>
555                             <!-- Sets the path to the file which contains the execution data. -->
556                             <destFile>${project.build.directory}/code-coverage/jacoco-ut.exec</destFile>
557                             <!-- Sets the name of the property containing the settings for JaCoCo runtime agent. -->
558                             <propertyName>surefireArgLine</propertyName>
559                         </configuration>
560                     </execution>
561                     <!-- Ensures that the code coverage report for unit tests is created after unit tests have been run. -->
562                     <execution>
563                         <id>post-unit-test</id>
564                         <phase>test</phase>
565                         <goals>
566                             <goal>report</goal>
567                         </goals>
568                         <configuration>
569                             <!-- Sets the path to the file which contains the execution data. -->
570                             <dataFile>${project.build.directory}/code-coverage/jacoco-ut.exec</dataFile>
571                             <!-- Sets the output directory for the code coverage report. -->
572                             <outputDirectory>${project.reporting.outputDirectory}/jacoco-ut</outputDirectory>
573                         </configuration>
574                     </execution>
575                     <execution>
576                         <id>pre-integration-test</id>
577                         <phase>pre-integration-test</phase>
578                         <goals>
579                             <goal>prepare-agent</goal>
580                         </goals>
581                         <configuration>
582                             <!-- Sets the path to the file which contains the execution data. -->
583                             <destFile>${project.build.directory}/code-coverage/jacoco-it.exec</destFile>
584                             <!-- Sets the name of the property containing the settings for JaCoCo runtime agent. -->
585                             <propertyName>failsafeArgLine</propertyName>
586                         </configuration>
587                     </execution>
588                     <!-- Ensures that the code coverage report for integration tests after integration tests have been run. -->
589                     <execution>
590                         <id>post-integration-test</id>
591                         <phase>post-integration-test</phase>
592                         <goals>
593                             <goal>report</goal>
594                         </goals>
595                         <configuration>
596                             <!-- Sets the path to the file which contains the execution data. -->
597                             <dataFile>${project.build.directory}/code-coverage/jacoco-it.exec</dataFile>
598                             <!-- Sets the output directory for the code coverage report. -->
599                             <outputDirectory>${project.reporting.outputDirectory}/jacoco-it</outputDirectory>
600                         </configuration>
601                     </execution>
602                     <execution>
603                         <id>default-prepare-agent</id>
604                         <goals>
605                             <goal>prepare-agent</goal>
606                         </goals>
607                     </execution>
608                     <execution>
609                         <id>default-report</id>
610                         <phase>prepare-package</phase>
611                         <goals>
612                             <goal>report</goal>
613                         </goals>
614                     </execution>
615                     <execution>
616                         <id>default-check</id>
617                         <goals>
618                             <goal>check</goal>
619                         </goals>
620                         <configuration>
621                             <rules>
622                                 <rule>
623                                     <element>PACKAGE</element>
624                                     <limits>
625                                         <limit>
626                                             <counter>COMPLEXITY</counter>
627                                             <value>COVEREDRATIO</value>
628                                             <minimum>0.0</minimum>
629                                         </limit>
630                                     </limits>
631                                 </rule>
632                             </rules>
633                         </configuration>
634                     </execution>
635                 </executions>
636             </plugin>
637             <plugin>
638                 <groupId>org.apache.maven.plugins</groupId>
639                 <artifactId>maven-deploy-plugin</artifactId>
640             </plugin>
641             <plugin>
642                 <groupId>org.apache.maven.plugins</groupId>
643                 <artifactId>maven-checkstyle-plugin</artifactId>
644             </plugin>
645             <plugin>
646                 <groupId>org.codehaus.mojo</groupId>
647                 <artifactId>build-helper-maven-plugin</artifactId>
648                 <version>1.12</version>
649             </plugin>
650             <!-- Jacoco / Sonar -->
651             <plugin>
652                 <groupId>org.apache.maven.plugins</groupId>
653                 <artifactId>maven-surefire-plugin</artifactId>
654             </plugin>
655             <plugin>
656                 <groupId>org.apache.maven.plugins</groupId>
657                 <artifactId>maven-failsafe-plugin</artifactId>
658             </plugin>
659
660             <!-- End of plugins from ONAP oparent -->
661             <plugin>
662                 <groupId>org.codehaus.mojo</groupId>
663                 <artifactId>properties-maven-plugin</artifactId>
664                 <version>1.0.0</version>
665                 <executions>
666                     <execution>
667                         <goals>
668                             <goal>set-system-properties</goal>
669                         </goals>
670                         <configuration>
671                             <properties>
672                                 <property>
673                                     <name>maven.wagon.http.ssl.allowall</name>
674                                     <value>${ssl.allowall}</value>
675                                 </property>
676                                 <property>
677                                     <name>maven.wagon.http.ssl.insecure</name>
678                                     <value>${ssl.insecure}</value>
679                                 </property>
680                             </properties>
681                         </configuration>
682                     </execution>
683                 </executions>
684             </plugin>
685             <plugin>
686                 <groupId>org.codehaus.mojo</groupId>
687                 <artifactId>versions-maven-plugin</artifactId>
688                 <version>2.5</version>
689                 <configuration>
690                     <processAllModules>true</processAllModules>
691                 </configuration>
692             </plugin>
693             <plugin>
694                 <artifactId>maven-scm-plugin</artifactId>
695                 <version>1.8.1</version>
696                 <configuration>
697                     <tag>${project.artifactId}-${project.version}</tag>
698                 </configuration>
699             </plugin>
700             <plugin>
701                 <groupId>pl.project13.maven</groupId>
702                 <artifactId>git-commit-id-plugin</artifactId>
703                 <version>4.0.0</version>
704                 <configuration>
705                     <commitIdGenerationMode>full</commitIdGenerationMode>
706                     <includeOnlyProperties>
707                         <includeOnlyProperty>^git.build.(time|version)$</includeOnlyProperty>
708                         <includeOnlyProperty>^git.commit.id.(abbrev|full)$</includeOnlyProperty>
709                     </includeOnlyProperties>
710                 </configuration>
711             </plugin>
712         </plugins>
713     </build>
714
715     <reporting>
716         <plugins>
717             <plugin>
718                 <artifactId>maven-javadoc-plugin</artifactId>
719                 <version>2.10.4</version>
720                 <configuration>
721                     <failOnError>false</failOnError>
722                     <doclet>org.umlgraph.doclet.UmlGraphDoc</doclet>
723                     <docletArtifact>
724                         <groupId>org.umlgraph</groupId>
725                         <artifactId>umlgraph</artifactId>
726                         <version>5.6</version>
727                     </docletArtifact>
728                     <additionalparam>-views</additionalparam>
729                     <useStandardDocletOptions>true</useStandardDocletOptions>
730                     <excludePackageNames>org.opendaylight.*</excludePackageNames>
731                 </configuration>
732                 <reportSets>
733                     <reportSet>
734                         <reports>
735                             <report>javadoc-no-fork</report>
736                             <report>test-javadoc-no-fork</report>
737                         </reports>
738                     </reportSet>
739                     <reportSet>
740                         <id>aggregate</id>
741                         <reports>
742                             <report>aggregate</report>
743                             <report>test-aggregate</report>
744                         </reports>
745                     </reportSet>
746                 </reportSets>
747             </plugin>
748             <plugin>
749                 <groupId>org.apache.maven.plugins</groupId>
750                 <artifactId>maven-jxr-plugin</artifactId>
751                 <version>2.3</version>
752                 <reportSets>
753                     <reportSet>
754                         <id>aggregate</id>
755                         <reports>
756                             <report>aggregate</report>
757                             <report>test-aggregate</report>
758                         </reports>
759                     </reportSet>
760                 </reportSets>
761             </plugin>
762             <plugin>
763                 <artifactId>maven-surefire-plugin</artifactId>
764                 <version>2.17</version>
765             </plugin>
766             <plugin>
767                 <groupId>org.apache.maven.plugins</groupId>
768                 <artifactId>maven-changelog-plugin</artifactId>
769                 <version>2.3</version>
770                 <reportSets>
771                     <reportSet>
772                         <id>dual-report</id>
773                         <configuration>
774                             <type>range</type>
775                             <range>30</range>
776                         </configuration>
777                         <reports>
778                             <report>changelog</report>
779                             <report>file-activity</report>
780                         </reports>
781                     </reportSet>
782                 </reportSets>
783             </plugin>
784             <plugin>
785                 <groupId>org.codehaus.mojo</groupId>
786                 <artifactId>taglist-maven-plugin</artifactId>
787                 <version>2.4</version>
788             </plugin>
789         </plugins>
790     </reporting>
791
792     <profiles>
793         <!-- Profiles from ONAP oparent -->
794         <profile>
795             <id>generate-json</id>
796             <activation>
797                 <file>
798                     <exists>${swagger-properties}</exists>
799                 </file>
800                 <property>
801                     <name>swagger-sdk.generate-json</name>
802                 </property>
803             </activation>
804             <build>
805                 <plugins>
806                     <plugin>
807                         <groupId>org.codehaus.mojo</groupId>
808                         <artifactId>properties-maven-plugin</artifactId>
809                         <version>1.0.0</version>
810                         <executions>
811                             <execution>
812                                 <phase>initialize</phase>
813                                 <goals>
814                                     <goal>read-project-properties</goal>
815                                 </goals>
816                                 <configuration>
817                                     <files>
818                                         <file>${basedir}/src/main/resources/swagger.properties</file>
819                                     </files>
820                                 </configuration>
821                             </execution>
822                         </executions>
823                     </plugin>
824                     <plugin>
825                         <groupId>com.github.kongchen</groupId>
826                         <artifactId>swagger-maven-plugin</artifactId>
827                         <version>3.1.4</version>
828                         <configuration>
829                             <apiSources>
830                                 <apiSource>
831                                     <locations>${api-rest-package}</locations>
832                                     <schemes>http,https</schemes>
833                                     <host>${api-host-ip}:${api-host-port}</host>
834                                     <basePath>${api-base-path}</basePath>
835                                     <info>
836                                         <title>${api-title}</title>
837                                         <version>${api-version}</version>
838                                         <description>${api-description}</description>
839                                         <license>
840                                             <name>${api-license}</name>
841                                         </license>
842                                     </info>
843                                     <swaggerDirectory>${basedir}/src/main/resources</swaggerDirectory>
844                                 </apiSource>
845                             </apiSources>
846                         </configuration>
847                         <executions>
848                             <execution>
849                                 <phase>compile</phase>
850                                 <goals>
851                                     <goal>generate</goal>
852                                 </goals>
853                             </execution>
854                         </executions>
855                     </plugin>
856                     <plugin>
857                         <groupId>org.apache.maven.plugins</groupId>
858                         <artifactId>maven-install-plugin</artifactId>
859                         <version>2.3.1</version>
860                         <executions>
861                             <execution>
862                                 <id>install-file-id</id>
863                                 <phase>install</phase>
864                                 <goals>
865                                     <goal>install-file</goal>
866                                 </goals>
867                                 <configuration>
868                                     <file>${basedir}/src/main/resources/swagger.json</file>
869                                     <groupId>${project.groupId}</groupId>
870                                     <artifactId>${project.artifactId}-swagger-schema</artifactId>
871                                     <version>${project.version}</version>
872                                     <packaging>json</packaging>
873                                 </configuration>
874                             </execution>
875                         </executions>
876                     </plugin>
877                 </plugins>
878             </build>
879         </profile>
880         <profile>
881             <id>generate-sdk</id>
882             <activation>
883                 <file>
884                     <exists>${swagger-json}</exists>
885                 </file>
886                 <property>
887                     <name>swagger-sdk.generate-java-sdk</name>
888                 </property>
889             </activation>
890             <build>
891                 <plugins>
892                     <plugin>
893                         <groupId>org.apache.maven.plugins</groupId>
894                         <artifactId>maven-antrun-plugin</artifactId>
895                         <version>1.8</version>
896                         <executions>
897                             <execution>
898                                 <phase>initialize</phase>
899                                 <id>ant-create-script</id>
900                                 <configuration>
901                                     <exportAntProperties>true</exportAntProperties>
902                                     <tasks>
903                                         <taskdef resource="net/sf/antcontrib/antlib.xml" classpathref="maven.plugin.classpath"/>
904                                         <condition property="is_windows" value="true">
905                                             <os family="windows"/>
906                                         </condition>
907                                         <condition property="isLinux" value="true">
908                                             <os family="unix"/>
909                                         </condition>
910                                         <if>
911                                             <equals arg1="${is_windows}" arg2="true"/>
912                                             <then>
913                                                 <property name="swagger.sdk.script.file" value="generated-source-script.bat"/>
914                                                 <echo file="${project.build.directory}${file.separator}generated-source-script.bat" append="true" message="cd ${project.build.directory}${file.separator}generated-sources${line.separator}"/>
915                                                 <echo file="${project.build.directory}${file.separator}generated-source-script.bat" append="true" message="mvn clean install -Dmaven.test.skip=true${line.separator}"/>
916                                             </then>
917                                             <else>
918                                                 <property name="swagger.sdk.script.file" value="generated-source-script.sh"/>
919                                                 <echo file="${project.build.directory}${file.separator}generated-source-script.sh" append="true" message="cd ${project.build.directory}${file.separator}generated-sources${line.separator}"/>
920                                                 <echo file="${project.build.directory}${file.separator}generated-source-script.sh" append="true" message="mvn clean install -Dmaven.test.skip=true${line.separator}"/>
921                                                 <chmod file="${project.build.directory}${file.separator}generated-source-script.sh" perm="755"/>
922                                             </else>
923                                         </if>
924                                     </tasks>
925                                 </configuration>
926                                 <goals>
927                                     <goal>run</goal>
928                                 </goals>
929                             </execution>
930                         </executions>
931                         <dependencies>
932                             <dependency>
933                                 <groupId>ant-contrib</groupId>
934                                 <artifactId>ant-contrib</artifactId>
935                                 <version>1.0b3</version>
936                                 <exclusions>
937                                     <exclusion>
938                                         <groupId>ant</groupId>
939                                         <artifactId>ant</artifactId>
940                                     </exclusion>
941                                 </exclusions>
942                             </dependency>
943                         </dependencies>
944                     </plugin>
945                     <plugin>
946                         <groupId>io.swagger</groupId>
947                         <artifactId>swagger-codegen-maven-plugin</artifactId>
948                         <version>2.2.1</version>
949                         <executions>
950                             <execution>
951                                 <goals>
952                                     <goal>generate</goal>
953                                 </goals>
954                                 <configuration>
955                                     <inputSpec>${basedir}/src/main/resources/swagger.json</inputSpec>
956                                     <output>${project.build.directory}/generated-sources</output>
957                                     <language>java</language>
958                                     <configOptions>
959                                         <dateLibrary>joda</dateLibrary>
960                                     </configOptions>
961                                     <library>jersey2</library>
962                                     <groupId>${project.groupId}</groupId>
963                                     <artifactId>${project.artifactId}-java-sdk</artifactId>
964                                     <artifactVersion>${project.version}</artifactVersion>
965                                     <modelPackage>${project.groupId}.${project.artifactId}.client.model</modelPackage>
966                                     <apiPackage>${project.groupId}.${project.artifactId}.client.api</apiPackage>
967                                     <invokerPackage>${project.groupId}.${project.artifactId}.client.invoker</invokerPackage>
968                                 </configuration>
969                             </execution>
970                         </executions>
971                     </plugin>
972                     <plugin>
973                         <groupId>org.codehaus.mojo</groupId>
974                         <artifactId>exec-maven-plugin</artifactId>
975                         <version>1.5.0</version>
976                         <executions>
977                             <execution>
978                                 <id>swagger-generate-sources</id>
979                                 <phase>generate-sources</phase>
980                                 <goals>
981                                     <goal>exec</goal>
982                                 </goals>
983                                 <configuration>
984                                     <executable>${project.build.directory}${file.separator}${swagger.sdk.script.file}</executable>
985                                 </configuration>
986                             </execution>
987                         </executions>
988                     </plugin>
989                     <plugin>
990                         <groupId>org.apache.maven.plugins</groupId>
991                         <artifactId>maven-clean-plugin</artifactId>
992                         <version>3.0.0</version>
993                         <executions>
994                             <execution>
995                                 <id>clean-generated-files</id>
996                                 <phase>generate-sources</phase>
997                                 <goals>
998                                     <goal>clean</goal>
999                                 </goals>
1000                                 <configuration>
1001                                     <filesets>
1002                                         <fileset>
1003                                             <directory>${project.build.directory}/generated-sources</directory>
1004                                         </fileset>
1005                                     </filesets>
1006                                 </configuration>
1007                             </execution>
1008                         </executions>
1009                     </plugin>
1010                 </plugins>
1011             </build>
1012             <dependencies>
1013                 <dependency>
1014                     <groupId>org.onap.msb.swagger-sdk</groupId>
1015                     <artifactId>swagger-sdk</artifactId>
1016                     <version>1.0.0</version>
1017                 </dependency>
1018             </dependencies>
1019         </profile>
1020         <profile>
1021             <!-- http://blog2.vorburger.ch/2016/06/improve-maven-build-speed-with-q.html
1022                  q = http://memory-alpha.wikia.com/wiki/Q ;)
1023
1024                  The Quick profile is used during incremental local development, when you want to "just get that JAR built",
1025                  which is very handy e.g. for fast hot reloading cycles in Karaf with bundle watch.  It (intentionally!) skips
1026                  tests, quality checks etc. which are great and useful to run before finally submitting changes to Gerrit, and
1027                  which all must run on Gerrit, but which are overhead during ongoing fast iterative local development.
1028
1029                  Note that the idea here is that your IDE will already have run quality checks such as e.g. Checkstyle
1030                  while you typed the code anyway.  Similarly, if you wrote a test, you'll probably already have compiled and run it
1031                  from your IDE, so when you want the OSGi bundle JAR for Karaf, ASAP, you typically don't want all that to run again.
1032               -->
1033             <id>q</id>
1034             <properties>
1035                 <skipTests>true</skipTests>
1036                 <skipPush>true</skipPush>
1037                 <docker.skip.push>true</docker.skip.push>
1038                 <!-- But NOT <maven.test.skip>true, as that's for compiling, not running, tests;
1039                      and that's usually quick.  Skipping test compilation with -Pq with maven.test.skip would be
1040                      particularly confusing when used in a project with maven-jar-plugin <goal>test-jar, so don't.)  -->
1041                 <skipIT>true</skipIT>
1042                 <skipITs>true</skipITs>
1043                 <skip.karaf.featureTest>true</skip.karaf.featureTest>
1044                 <jacoco.skip>true</jacoco.skip>
1045                 <maven.javadoc.skip>true</maven.javadoc.skip>
1046                 <maven.source.skip>true</maven.source.skip>
1047                 <checkstyle.skip>true</checkstyle.skip>
1048                 <findbugs.skip>true</findbugs.skip>
1049                 <spotbugs.skip>true</spotbugs.skip>
1050                 <pmd.skip>true</pmd.skip>
1051                 <cpd.skip>true</cpd.skip>
1052                 <maven.site.skip>true</maven.site.skip>
1053                 <invoker.skip>true</invoker.skip>
1054                 <enforcer.skip>true</enforcer.skip>
1055                 <duplicate-finder.skip>true</duplicate-finder.skip>
1056                 <mdsal.skip.verbose>true</mdsal.skip.verbose> <!-- Bug 6236 -->
1057                 <maven.gitcommitid.skip>true</maven.gitcommitid.skip>
1058                 <modernizer.skip>true</modernizer.skip>
1059                 <format.skipExecute>true</format.skipExecute>
1060                 <format.skipValidate>true</format.skipValidate>
1061             </properties>
1062         </profile>
1063         <profile>
1064             <id>sonar-jacoco-aggregate</id>
1065             <activation>
1066                 <property>
1067                     <name>onap.jacoco.aggregateFile</name>
1068                 </property>
1069             </activation>
1070             <build>
1071                 <plugins>
1072                     <plugin>
1073                         <groupId>org.jacoco</groupId>
1074                         <artifactId>jacoco-maven-plugin</artifactId>
1075                         <executions>
1076                             <execution>
1077                                 <id>merge</id>
1078                                 <goals>
1079                                     <goal>merge</goal>
1080                                 </goals>
1081                                 <phase>generate-resources</phase>
1082                                 <configuration>
1083                                     <destFile>${onap.jacoco.aggregateFile}</destFile>
1084                                     <fileSets>
1085                                         <fileSet>
1086                                             <directory>${project.basedir}</directory>
1087                                             <includes>
1088                                                 <include>**/target/code-coverage/*.exec</include>
1089                                             </includes>
1090                                         </fileSet>
1091                                     </fileSets>
1092                                 </configuration>
1093                             </execution>
1094                         </executions>
1095                     </plugin>
1096                 </plugins>
1097             </build>
1098         </profile>
1099         <!-- End of profiles from ONAP oparent -->
1100     </profiles>
1101 </project>