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