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