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