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