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