253ebe20b764b2829c917bc382f01630b7b9c753
[ccsdk/parent.git] / springboot / springboot2 / 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.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>2.3.12.RELEASE</version>
12         <relativePath/>
13     </parent>
14
15     <groupId>org.onap.ccsdk.parent</groupId>
16     <artifactId>spring-boot-starter-parent</artifactId>
17     <version>2.3.2-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.2.99999,1.3.99999-SNAPSHOT]</ccsdk.cds.version>
96         <ccsdk.features.version>(1.2.99999, 1.3.99999-SNAPSHOT]</ccsdk.features.version>
97         <ccsdk.distribution.version>(1.2.99999, 1.3.99999-SNAPSHOT]</ccsdk.distribution.version>
98         <ccsdk.sli.version>(1.3.99999, 1.4.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>2.3.12.RELEASE</spring.boot.version>
106         <spring.version>5.2.15.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.1</log4j.version>
134         <log4j2.version>2.17.1</log4j2.version>
135         <logback.version>1.2.3</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.3.2-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         <repository>
268             <id>nordix-liquibase-repo</id>
269             <name>liquibase</name>
270             <url>https://artifactory.nordix.org/artifactory/liquibase</url>
271         </repository>
272     </repositories>
273
274     <pluginRepositories>
275         <pluginRepository>
276             <id>onap-public</id>
277             <url>${onap.nexus.public-url}</url>
278             <releases>
279                 <enabled>true</enabled>
280             </releases>
281             <snapshots>
282                 <enabled>true</enabled>
283             </snapshots>
284         </pluginRepository>
285         <pluginRepository>
286             <id>onap-staging</id>
287             <url>${onap.nexus.staging-url}</url>
288             <releases>
289                 <enabled>true</enabled>
290             </releases>
291             <snapshots>
292                 <enabled>true</enabled>
293             </snapshots>
294         </pluginRepository>
295         <pluginRepository>
296             <id>onap-snapshot</id>
297             <url>${onap.nexus.snapshot-url}</url>
298             <releases>
299                 <enabled>false</enabled>
300             </releases>
301             <snapshots>
302                 <enabled>true</enabled>
303             </snapshots>
304         </pluginRepository>
305         <!-- Black Duck plugin dependencies -->
306         <pluginRepository>
307             <id>JCenter</id>
308             <name>JCenter Repository</name>
309             <url>http://jcenter.bintray.com</url>
310         </pluginRepository>
311
312         <pluginRepository>
313             <id>Restlet</id>
314             <name>Restlet Repository</name>
315             <url>http://maven.restlet.com</url>
316         </pluginRepository>
317     </pluginRepositories>
318
319     <build>
320         <pluginManagement>
321             <plugins>
322                 <!-- Plugins from ONAP oparent -->
323                 <plugin>
324                     <groupId>org.apache.maven.plugins</groupId>
325                     <artifactId>maven-deploy-plugin</artifactId>
326                     <!-- This version supports the "deployAtEnd" parameter -->
327                     <version>2.8</version>
328                     <configuration>
329                         <skip/>
330                         <deployAtEnd>true</deployAtEnd>
331                     </configuration>
332                 </plugin>
333                 <plugin>
334                     <groupId>org.apache.maven.plugins</groupId>
335                     <artifactId>maven-site-plugin</artifactId>
336                     <version>3.6</version>
337                     <dependencies>
338                         <dependency>
339                             <groupId>org.apache.maven.wagon</groupId>
340                             <artifactId>wagon-webdav-jackrabbit</artifactId>
341                             <version>2.10</version>
342                         </dependency>
343                         <dependency>
344                             <groupId>org.apache.maven.doxia</groupId>
345                             <artifactId>doxia-core</artifactId>
346                             <version>1.7</version>
347                         </dependency>
348                         <dependency>
349                             <groupId>org.apache.maven.doxia</groupId>
350                             <artifactId>doxia-sink-api</artifactId>
351                             <version>1.7</version>
352                         </dependency>
353                         <dependency>
354                             <groupId>org.apache.maven.doxia</groupId>
355                             <artifactId>doxia-logging-api</artifactId>
356                             <version>1.7</version>
357                         </dependency>
358                     </dependencies>
359                     <executions>
360                         <execution>
361                             <id>attach-descriptor</id>
362                             <goals>
363                                 <goal>attach-descriptor</goal>
364                             </goals>
365                         </execution>
366                     </executions>
367                 </plugin>
368                 <plugin>
369                     <groupId>org.apache.maven.plugins</groupId>
370                     <artifactId>maven-checkstyle-plugin</artifactId>
371                     <version>2.17</version>
372                     <dependencies>
373                         <dependency>
374                             <groupId>org.onap.oparent</groupId>
375                             <artifactId>checkstyle</artifactId>
376                             <version>1.1.1</version>
377                         </dependency>
378                     </dependencies>
379                     <executions>
380                         <execution>
381                             <id>check-license</id>
382                             <goals>
383                                 <goal>check</goal>
384                             </goals>
385                             <phase>process-sources</phase>
386                             <configuration>
387                                 <configLocation>onap-checkstyle/check-license.xml</configLocation>
388                                 <headerLocation>onap-checkstyle/apache-license-2.regexp.txt</headerLocation>
389                                 <includeResources>false</includeResources>
390                                 <includeTestSourceDirectory>true</includeTestSourceDirectory>
391                                 <includeTestResources>false</includeTestResources>
392                                 <sourceDirectory>${project.build.sourceDirectory}</sourceDirectory>
393                                 <excludes>
394                                 </excludes>
395                                 <failsOnError>false</failsOnError>
396                                 <consoleOutput>true</consoleOutput>
397                             </configuration>
398                         </execution>
399                         <execution>
400                             <id>check-style</id>
401                             <goals>
402                                 <goal>check</goal>
403                             </goals>
404                             <phase>process-sources</phase>
405                             <configuration>
406                                 <!-- Use Google Java Style Guide: https://github.com/checkstyle/checkstyle/blob/master/src/main/resources/google_checks.xml
407                                     with minor changes -->
408                                 <configLocation>onap-checkstyle/onap-java-style.xml</configLocation>
409                                 <!-- <sourceDirectory> is needed so that checkstyle ignores the generated sources directory -->
410                                 <sourceDirectory>${project.build.sourceDirectory}/src/main/java</sourceDirectory>
411                                 <includeResources>true</includeResources>
412                                 <includeTestSourceDirectory>true</includeTestSourceDirectory>
413                                 <includeTestResources>true</includeTestResources>
414                                 <excludes>
415                                 </excludes>
416                                 <failsOnError>false</failsOnError>
417                                 <consoleOutput>true</consoleOutput>
418                             </configuration>
419                         </execution>
420                     </executions>
421                 </plugin>
422
423                 <plugin>
424                     <groupId>org.apache.maven.plugins</groupId>
425                     <artifactId>maven-surefire-plugin</artifactId>
426                     <version>2.19.1</version>
427                     <configuration>
428                         <!-- Sets the VM argument line used when unit tests are run. -->
429                         <argLine>${surefireArgLine}</argLine>
430                         <!-- Excludes integration tests when unit tests are run. -->
431                         <excludes>
432                             <exclude>**/IT*.java</exclude>
433                         </excludes>
434                     </configuration>
435                 </plugin>
436                 <plugin>
437                     <groupId>org.apache.maven.plugins</groupId>
438                     <artifactId>maven-failsafe-plugin</artifactId>
439                     <version>2.19.1</version>
440                     <executions>
441                         <!-- Ensures that both integration-test and verify goals of the Failsafe Maven plugin are executed. -->
442                         <execution>
443                             <id>integration-tests</id>
444                             <goals>
445                                 <goal>integration-test</goal>
446                                 <goal>verify</goal>
447                             </goals>
448                             <configuration>
449                                 <!-- Sets the VM argument line used when integration tests are run. -->
450                                 <argLine>${failsafeArgLine}</argLine>
451                             </configuration>
452                         </execution>
453                     </executions>
454                 </plugin>
455                 <plugin>
456                     <groupId>org.apache.maven.plugins</groupId>
457                     <artifactId>maven-compiler-plugin</artifactId>
458                     <version>${maven.compile.plugin.version}</version>
459                     <configuration>
460                         <source>${java.version.source}</source>
461                         <target>${java.version.target}</target>
462                     </configuration>
463                 </plugin>
464                 <plugin>
465                     <groupId>org.sonarsource.scanner.maven</groupId>
466                     <artifactId>sonar-maven-plugin</artifactId>
467                     <version>3.6.0.1398</version>
468                 </plugin>
469
470                 <!-- End of plugins from ONAP oparent -->
471
472                 <plugin>
473                     <groupId>org.apache.maven.plugins</groupId>
474                     <artifactId>maven-javadoc-plugin</artifactId>
475                     <version>3.2.0</version>
476                     <configuration>
477                         <additionalDependencies>
478                             <additionalDependency>
479                                 <groupId>org.slf4j</groupId>
480                                 <artifactId>slf4j-api</artifactId>
481                                 <version>${slf4j.version}</version>
482                             </additionalDependency>
483                             <additionalDependency>
484                                 <groupId>org.antlr</groupId>
485                                 <artifactId>antlr4</artifactId>
486                                 <version>${antlr.version}</version>
487                             </additionalDependency>
488                             <additionalDependency>
489                                 <groupId>org.antlr</groupId>
490                                 <artifactId>antlr4-runtime</artifactId>
491                                 <version>${antlr.version}</version>
492                             </additionalDependency>
493                             <additionalDependency>
494                                 <groupId>com.sun.jersey</groupId>
495                                 <artifactId>jersey-client</artifactId>
496                                 <version>${jersey.client.version}</version>
497                             </additionalDependency>
498                             <additionalDependency>
499                                 <groupId>com.sun.jersey</groupId>
500                                 <artifactId>jersey-core</artifactId>
501                                 <version>${jersey.version}</version>
502                             </additionalDependency>
503                             <additionalDependency>
504                                 <groupId>org.apache.httpcomponents</groupId>
505                                 <artifactId>httpcore-osgi</artifactId>
506                                 <version>${apache.httpcomponents.core.version}</version>
507                             </additionalDependency>
508                             <additionalDependency>
509                                 <groupId>org.apache.httpcomponents</groupId>
510                                 <artifactId>httpclient-osgi</artifactId>
511                                 <version>${apache.httpcomponents.client.version}</version>
512                             </additionalDependency>
513                             <additionalDependency>
514                                 <groupId>commons-lang</groupId>
515                                 <artifactId>commons-lang</artifactId>
516                                 <version>${commons.lang.version}</version>
517                             </additionalDependency>
518                         </additionalDependencies>
519                         <failOnError>false</failOnError>
520                     </configuration>
521                     <executions>
522                         <execution>
523                             <id>aggregate</id>
524                             <goals>
525                                 <goal>aggregate</goal>
526                             </goals>
527                             <phase>site</phase>
528                         </execution>
529                     </executions>
530                 </plugin>
531                 <plugin>
532                     <groupId>com.github.ferstl</groupId>
533                     <artifactId>depgraph-maven-plugin</artifactId>
534                     <version>3.3.0</version>
535                     <configuration>
536                         <graphFormat>text</graphFormat>
537                         <outputFileName>${dependency-list.file}</outputFileName>
538                         <outputDirectory>${project.basedir}</outputDirectory>
539                         <transitiveExcludes>*</transitiveExcludes>
540                         <showVersions>true</showVersions>
541                         <showGroupIds>true</showGroupIds>
542                     </configuration>
543                 </plugin>
544             </plugins>
545         </pluginManagement>
546         <plugins>
547             <!-- Plugins from ONAP oparent -->
548             <!-- Jacoco / Sonar -->
549             <plugin>
550                 <groupId>org.jacoco</groupId>
551                 <artifactId>jacoco-maven-plugin</artifactId>
552                 <version>${jacoco.version}</version>
553                 <executions>
554                     <execution>
555                         <id>pre-unit-test</id>
556                         <goals>
557                             <goal>prepare-agent</goal>
558                         </goals>
559                         <configuration>
560                             <!-- Sets the path to the file which contains the execution data. -->
561                             <destFile>${project.build.directory}/code-coverage/jacoco-ut.exec</destFile>
562                             <!-- Sets the name of the property containing the settings for JaCoCo runtime agent. -->
563                             <propertyName>surefireArgLine</propertyName>
564                         </configuration>
565                     </execution>
566                     <!-- Ensures that the code coverage report for unit tests is created after unit tests have been run. -->
567                     <execution>
568                         <id>post-unit-test</id>
569                         <phase>test</phase>
570                         <goals>
571                             <goal>report</goal>
572                         </goals>
573                         <configuration>
574                             <!-- Sets the path to the file which contains the execution data. -->
575                             <dataFile>${project.build.directory}/code-coverage/jacoco-ut.exec</dataFile>
576                             <!-- Sets the output directory for the code coverage report. -->
577                             <outputDirectory>${project.reporting.outputDirectory}/jacoco-ut</outputDirectory>
578                         </configuration>
579                     </execution>
580                     <execution>
581                         <id>pre-integration-test</id>
582                         <phase>pre-integration-test</phase>
583                         <goals>
584                             <goal>prepare-agent</goal>
585                         </goals>
586                         <configuration>
587                             <!-- Sets the path to the file which contains the execution data. -->
588                             <destFile>${project.build.directory}/code-coverage/jacoco-it.exec</destFile>
589                             <!-- Sets the name of the property containing the settings for JaCoCo runtime agent. -->
590                             <propertyName>failsafeArgLine</propertyName>
591                         </configuration>
592                     </execution>
593                     <!-- Ensures that the code coverage report for integration tests after integration tests have been run. -->
594                     <execution>
595                         <id>post-integration-test</id>
596                         <phase>post-integration-test</phase>
597                         <goals>
598                             <goal>report</goal>
599                         </goals>
600                         <configuration>
601                             <!-- Sets the path to the file which contains the execution data. -->
602                             <dataFile>${project.build.directory}/code-coverage/jacoco-it.exec</dataFile>
603                             <!-- Sets the output directory for the code coverage report. -->
604                             <outputDirectory>${project.reporting.outputDirectory}/jacoco-it</outputDirectory>
605                         </configuration>
606                     </execution>
607                     <execution>
608                         <id>default-prepare-agent</id>
609                         <goals>
610                             <goal>prepare-agent</goal>
611                         </goals>
612                     </execution>
613                     <execution>
614                         <id>default-report</id>
615                         <phase>prepare-package</phase>
616                         <goals>
617                             <goal>report</goal>
618                         </goals>
619                     </execution>
620                     <execution>
621                         <id>default-check</id>
622                         <goals>
623                             <goal>check</goal>
624                         </goals>
625                         <configuration>
626                             <rules>
627                                 <rule>
628                                     <element>PACKAGE</element>
629                                     <limits>
630                                         <limit>
631                                             <counter>COMPLEXITY</counter>
632                                             <value>COVEREDRATIO</value>
633                                             <minimum>0.0</minimum>
634                                         </limit>
635                                     </limits>
636                                 </rule>
637                             </rules>
638                         </configuration>
639                     </execution>
640                 </executions>
641             </plugin>
642             <plugin>
643                 <groupId>org.apache.maven.plugins</groupId>
644                 <artifactId>maven-deploy-plugin</artifactId>
645             </plugin>
646             <plugin>
647                 <groupId>org.apache.maven.plugins</groupId>
648                 <artifactId>maven-checkstyle-plugin</artifactId>
649             </plugin>
650             <plugin>
651                 <groupId>org.codehaus.mojo</groupId>
652                 <artifactId>build-helper-maven-plugin</artifactId>
653                 <version>1.12</version>
654             </plugin>
655             <!-- Jacoco / Sonar -->
656             <plugin>
657                 <groupId>org.apache.maven.plugins</groupId>
658                 <artifactId>maven-surefire-plugin</artifactId>
659             </plugin>
660             <plugin>
661                 <groupId>org.apache.maven.plugins</groupId>
662                 <artifactId>maven-failsafe-plugin</artifactId>
663             </plugin>
664
665             <!-- End of plugins from ONAP oparent -->
666             <plugin>
667                 <groupId>org.codehaus.mojo</groupId>
668                 <artifactId>properties-maven-plugin</artifactId>
669                 <version>1.0.0</version>
670                 <executions>
671                     <execution>
672                         <goals>
673                             <goal>set-system-properties</goal>
674                         </goals>
675                         <configuration>
676                             <properties>
677                                 <property>
678                                     <name>maven.wagon.http.ssl.allowall</name>
679                                     <value>${ssl.allowall}</value>
680                                 </property>
681                                 <property>
682                                     <name>maven.wagon.http.ssl.insecure</name>
683                                     <value>${ssl.insecure}</value>
684                                 </property>
685                             </properties>
686                         </configuration>
687                     </execution>
688                 </executions>
689             </plugin>
690             <plugin>
691                 <groupId>org.codehaus.mojo</groupId>
692                 <artifactId>versions-maven-plugin</artifactId>
693                 <version>2.5</version>
694                 <configuration>
695                     <processAllModules>true</processAllModules>
696                 </configuration>
697             </plugin>
698             <plugin>
699                 <artifactId>maven-scm-plugin</artifactId>
700                 <version>1.8.1</version>
701                 <configuration>
702                     <tag>${project.artifactId}-${project.version}</tag>
703                 </configuration>
704             </plugin>
705             <plugin>
706                 <groupId>pl.project13.maven</groupId>
707                 <artifactId>git-commit-id-plugin</artifactId>
708                 <version>4.0.0</version>
709                 <configuration>
710                     <commitIdGenerationMode>full</commitIdGenerationMode>
711                     <includeOnlyProperties>
712                         <includeOnlyProperty>^git.build.(time|version)$</includeOnlyProperty>
713                         <includeOnlyProperty>^git.commit.id.(abbrev|full)$</includeOnlyProperty>
714                     </includeOnlyProperties>
715                 </configuration>
716             </plugin>
717         </plugins>
718     </build>
719
720     <reporting>
721         <plugins>
722             <plugin>
723                 <artifactId>maven-javadoc-plugin</artifactId>
724                 <version>2.10.4</version>
725                 <configuration>
726                     <failOnError>false</failOnError>
727                     <doclet>org.umlgraph.doclet.UmlGraphDoc</doclet>
728                     <docletArtifact>
729                         <groupId>org.umlgraph</groupId>
730                         <artifactId>umlgraph</artifactId>
731                         <version>5.6</version>
732                     </docletArtifact>
733                     <additionalparam>-views</additionalparam>
734                     <useStandardDocletOptions>true</useStandardDocletOptions>
735                     <excludePackageNames>org.opendaylight.*</excludePackageNames>
736                 </configuration>
737                 <reportSets>
738                     <reportSet>
739                         <reports>
740                             <report>javadoc-no-fork</report>
741                             <report>test-javadoc-no-fork</report>
742                         </reports>
743                     </reportSet>
744                     <reportSet>
745                         <id>aggregate</id>
746                         <reports>
747                             <report>aggregate</report>
748                             <report>test-aggregate</report>
749                         </reports>
750                     </reportSet>
751                 </reportSets>
752             </plugin>
753             <plugin>
754                 <groupId>org.apache.maven.plugins</groupId>
755                 <artifactId>maven-jxr-plugin</artifactId>
756                 <version>2.3</version>
757                 <reportSets>
758                     <reportSet>
759                         <id>aggregate</id>
760                         <reports>
761                             <report>aggregate</report>
762                             <report>test-aggregate</report>
763                         </reports>
764                     </reportSet>
765                 </reportSets>
766             </plugin>
767             <plugin>
768                 <artifactId>maven-surefire-plugin</artifactId>
769                 <version>2.17</version>
770             </plugin>
771             <plugin>
772                 <groupId>org.apache.maven.plugins</groupId>
773                 <artifactId>maven-changelog-plugin</artifactId>
774                 <version>2.3</version>
775                 <reportSets>
776                     <reportSet>
777                         <id>dual-report</id>
778                         <configuration>
779                             <type>range</type>
780                             <range>30</range>
781                         </configuration>
782                         <reports>
783                             <report>changelog</report>
784                             <report>file-activity</report>
785                         </reports>
786                     </reportSet>
787                 </reportSets>
788             </plugin>
789             <plugin>
790                 <groupId>org.codehaus.mojo</groupId>
791                 <artifactId>taglist-maven-plugin</artifactId>
792                 <version>2.4</version>
793             </plugin>
794         </plugins>
795     </reporting>
796
797     <profiles>
798         <!-- Profiles from ONAP oparent -->
799         <profile>
800             <id>generate-json</id>
801             <activation>
802                 <file>
803                     <exists>${swagger-properties}</exists>
804                 </file>
805                 <property>
806                     <name>swagger-sdk.generate-json</name>
807                 </property>
808             </activation>
809             <build>
810                 <plugins>
811                     <plugin>
812                         <groupId>org.codehaus.mojo</groupId>
813                         <artifactId>properties-maven-plugin</artifactId>
814                         <version>1.0.0</version>
815                         <executions>
816                             <execution>
817                                 <phase>initialize</phase>
818                                 <goals>
819                                     <goal>read-project-properties</goal>
820                                 </goals>
821                                 <configuration>
822                                     <files>
823                                         <file>${basedir}/src/main/resources/swagger.properties</file>
824                                     </files>
825                                 </configuration>
826                             </execution>
827                         </executions>
828                     </plugin>
829                     <plugin>
830                         <groupId>com.github.kongchen</groupId>
831                         <artifactId>swagger-maven-plugin</artifactId>
832                         <version>3.1.4</version>
833                         <configuration>
834                             <apiSources>
835                                 <apiSource>
836                                     <locations>${api-rest-package}</locations>
837                                     <schemes>http,https</schemes>
838                                     <host>${api-host-ip}:${api-host-port}</host>
839                                     <basePath>${api-base-path}</basePath>
840                                     <info>
841                                         <title>${api-title}</title>
842                                         <version>${api-version}</version>
843                                         <description>${api-description}</description>
844                                         <license>
845                                             <name>${api-license}</name>
846                                         </license>
847                                     </info>
848                                     <swaggerDirectory>${basedir}/src/main/resources</swaggerDirectory>
849                                 </apiSource>
850                             </apiSources>
851                         </configuration>
852                         <executions>
853                             <execution>
854                                 <phase>compile</phase>
855                                 <goals>
856                                     <goal>generate</goal>
857                                 </goals>
858                             </execution>
859                         </executions>
860                     </plugin>
861                     <plugin>
862                         <groupId>org.apache.maven.plugins</groupId>
863                         <artifactId>maven-install-plugin</artifactId>
864                         <version>2.3.1</version>
865                         <executions>
866                             <execution>
867                                 <id>install-file-id</id>
868                                 <phase>install</phase>
869                                 <goals>
870                                     <goal>install-file</goal>
871                                 </goals>
872                                 <configuration>
873                                     <file>${basedir}/src/main/resources/swagger.json</file>
874                                     <groupId>${project.groupId}</groupId>
875                                     <artifactId>${project.artifactId}-swagger-schema</artifactId>
876                                     <version>${project.version}</version>
877                                     <packaging>json</packaging>
878                                 </configuration>
879                             </execution>
880                         </executions>
881                     </plugin>
882                 </plugins>
883             </build>
884         </profile>
885         <profile>
886             <id>generate-sdk</id>
887             <activation>
888                 <file>
889                     <exists>${swagger-json}</exists>
890                 </file>
891                 <property>
892                     <name>swagger-sdk.generate-java-sdk</name>
893                 </property>
894             </activation>
895             <build>
896                 <plugins>
897                     <plugin>
898                         <groupId>org.apache.maven.plugins</groupId>
899                         <artifactId>maven-antrun-plugin</artifactId>
900                         <version>1.8</version>
901                         <executions>
902                             <execution>
903                                 <phase>initialize</phase>
904                                 <id>ant-create-script</id>
905                                 <configuration>
906                                     <exportAntProperties>true</exportAntProperties>
907                                     <tasks>
908                                         <taskdef resource="net/sf/antcontrib/antlib.xml" classpathref="maven.plugin.classpath"/>
909                                         <condition property="is_windows" value="true">
910                                             <os family="windows"/>
911                                         </condition>
912                                         <condition property="isLinux" value="true">
913                                             <os family="unix"/>
914                                         </condition>
915                                         <if>
916                                             <equals arg1="${is_windows}" arg2="true"/>
917                                             <then>
918                                                 <property name="swagger.sdk.script.file" value="generated-source-script.bat"/>
919                                                 <echo file="${project.build.directory}${file.separator}generated-source-script.bat" append="true" message="cd ${project.build.directory}${file.separator}generated-sources${line.separator}"/>
920                                                 <echo file="${project.build.directory}${file.separator}generated-source-script.bat" append="true" message="mvn clean install -Dmaven.test.skip=true${line.separator}"/>
921                                             </then>
922                                             <else>
923                                                 <property name="swagger.sdk.script.file" value="generated-source-script.sh"/>
924                                                 <echo file="${project.build.directory}${file.separator}generated-source-script.sh" append="true" message="cd ${project.build.directory}${file.separator}generated-sources${line.separator}"/>
925                                                 <echo file="${project.build.directory}${file.separator}generated-source-script.sh" append="true" message="mvn clean install -Dmaven.test.skip=true${line.separator}"/>
926                                                 <chmod file="${project.build.directory}${file.separator}generated-source-script.sh" perm="755"/>
927                                             </else>
928                                         </if>
929                                     </tasks>
930                                 </configuration>
931                                 <goals>
932                                     <goal>run</goal>
933                                 </goals>
934                             </execution>
935                         </executions>
936                         <dependencies>
937                             <dependency>
938                                 <groupId>ant-contrib</groupId>
939                                 <artifactId>ant-contrib</artifactId>
940                                 <version>1.0b3</version>
941                                 <exclusions>
942                                     <exclusion>
943                                         <groupId>ant</groupId>
944                                         <artifactId>ant</artifactId>
945                                     </exclusion>
946                                 </exclusions>
947                             </dependency>
948                         </dependencies>
949                     </plugin>
950                     <plugin>
951                         <groupId>io.swagger</groupId>
952                         <artifactId>swagger-codegen-maven-plugin</artifactId>
953                         <version>2.2.1</version>
954                         <executions>
955                             <execution>
956                                 <goals>
957                                     <goal>generate</goal>
958                                 </goals>
959                                 <configuration>
960                                     <inputSpec>${basedir}/src/main/resources/swagger.json</inputSpec>
961                                     <output>${project.build.directory}/generated-sources</output>
962                                     <language>java</language>
963                                     <configOptions>
964                                         <dateLibrary>joda</dateLibrary>
965                                     </configOptions>
966                                     <library>jersey2</library>
967                                     <groupId>${project.groupId}</groupId>
968                                     <artifactId>${project.artifactId}-java-sdk</artifactId>
969                                     <artifactVersion>${project.version}</artifactVersion>
970                                     <modelPackage>${project.groupId}.${project.artifactId}.client.model</modelPackage>
971                                     <apiPackage>${project.groupId}.${project.artifactId}.client.api</apiPackage>
972                                     <invokerPackage>${project.groupId}.${project.artifactId}.client.invoker</invokerPackage>
973                                 </configuration>
974                             </execution>
975                         </executions>
976                     </plugin>
977                     <plugin>
978                         <groupId>org.codehaus.mojo</groupId>
979                         <artifactId>exec-maven-plugin</artifactId>
980                         <version>1.5.0</version>
981                         <executions>
982                             <execution>
983                                 <id>swagger-generate-sources</id>
984                                 <phase>generate-sources</phase>
985                                 <goals>
986                                     <goal>exec</goal>
987                                 </goals>
988                                 <configuration>
989                                     <executable>${project.build.directory}${file.separator}${swagger.sdk.script.file}</executable>
990                                 </configuration>
991                             </execution>
992                         </executions>
993                     </plugin>
994                     <plugin>
995                         <groupId>org.apache.maven.plugins</groupId>
996                         <artifactId>maven-clean-plugin</artifactId>
997                         <version>3.0.0</version>
998                         <executions>
999                             <execution>
1000                                 <id>clean-generated-files</id>
1001                                 <phase>generate-sources</phase>
1002                                 <goals>
1003                                     <goal>clean</goal>
1004                                 </goals>
1005                                 <configuration>
1006                                     <filesets>
1007                                         <fileset>
1008                                             <directory>${project.build.directory}/generated-sources</directory>
1009                                         </fileset>
1010                                     </filesets>
1011                                 </configuration>
1012                             </execution>
1013                         </executions>
1014                     </plugin>
1015                 </plugins>
1016             </build>
1017             <dependencies>
1018                 <dependency>
1019                     <groupId>org.onap.msb.swagger-sdk</groupId>
1020                     <artifactId>swagger-sdk</artifactId>
1021                     <version>1.0.0</version>
1022                 </dependency>
1023             </dependencies>
1024         </profile>
1025         <profile>
1026             <!-- http://blog2.vorburger.ch/2016/06/improve-maven-build-speed-with-q.html
1027                  q = http://memory-alpha.wikia.com/wiki/Q ;)
1028
1029                  The Quick profile is used during incremental local development, when you want to "just get that JAR built",
1030                  which is very handy e.g. for fast hot reloading cycles in Karaf with bundle watch.  It (intentionally!) skips
1031                  tests, quality checks etc. which are great and useful to run before finally submitting changes to Gerrit, and
1032                  which all must run on Gerrit, but which are overhead during ongoing fast iterative local development.
1033
1034                  Note that the idea here is that your IDE will already have run quality checks such as e.g. Checkstyle
1035                  while you typed the code anyway.  Similarly, if you wrote a test, you'll probably already have compiled and run it
1036                  from your IDE, so when you want the OSGi bundle JAR for Karaf, ASAP, you typically don't want all that to run again.
1037               -->
1038             <id>q</id>
1039             <properties>
1040                 <skipTests>true</skipTests>
1041                 <skipPush>true</skipPush>
1042                 <docker.skip.push>true</docker.skip.push>
1043                 <!-- But NOT <maven.test.skip>true, as that's for compiling, not running, tests;
1044                      and that's usually quick.  Skipping test compilation with -Pq with maven.test.skip would be
1045                      particularly confusing when used in a project with maven-jar-plugin <goal>test-jar, so don't.)  -->
1046                 <skipIT>true</skipIT>
1047                 <skipITs>true</skipITs>
1048                 <skip.karaf.featureTest>true</skip.karaf.featureTest>
1049                 <jacoco.skip>true</jacoco.skip>
1050                 <maven.javadoc.skip>true</maven.javadoc.skip>
1051                 <maven.source.skip>true</maven.source.skip>
1052                 <checkstyle.skip>true</checkstyle.skip>
1053                 <findbugs.skip>true</findbugs.skip>
1054                 <spotbugs.skip>true</spotbugs.skip>
1055                 <pmd.skip>true</pmd.skip>
1056                 <cpd.skip>true</cpd.skip>
1057                 <maven.site.skip>true</maven.site.skip>
1058                 <invoker.skip>true</invoker.skip>
1059                 <enforcer.skip>true</enforcer.skip>
1060                 <duplicate-finder.skip>true</duplicate-finder.skip>
1061                 <mdsal.skip.verbose>true</mdsal.skip.verbose> <!-- Bug 6236 -->
1062                 <maven.gitcommitid.skip>true</maven.gitcommitid.skip>
1063                 <modernizer.skip>true</modernizer.skip>
1064                 <format.skipExecute>true</format.skipExecute>
1065                 <format.skipValidate>true</format.skipValidate>
1066             </properties>
1067         </profile>
1068         <profile>
1069             <id>sonar-jacoco-aggregate</id>
1070             <activation>
1071                 <property>
1072                     <name>onap.jacoco.aggregateFile</name>
1073                 </property>
1074             </activation>
1075             <build>
1076                 <plugins>
1077                     <plugin>
1078                         <groupId>org.jacoco</groupId>
1079                         <artifactId>jacoco-maven-plugin</artifactId>
1080                         <executions>
1081                             <execution>
1082                                 <id>merge</id>
1083                                 <goals>
1084                                     <goal>merge</goal>
1085                                 </goals>
1086                                 <phase>generate-resources</phase>
1087                                 <configuration>
1088                                     <destFile>${onap.jacoco.aggregateFile}</destFile>
1089                                     <fileSets>
1090                                         <fileSet>
1091                                             <directory>${project.basedir}</directory>
1092                                             <includes>
1093                                                 <include>**/target/code-coverage/*.exec</include>
1094                                             </includes>
1095                                         </fileSet>
1096                                     </fileSets>
1097                                 </configuration>
1098                             </execution>
1099                         </executions>
1100                     </plugin>
1101                 </plugins>
1102             </build>
1103         </profile>
1104         <!-- End of profiles from ONAP oparent -->
1105     </profiles>
1106 </project>