de72343ec5e8961c1317aaeb2b47764834dbf38a
[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         <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                     </configuration>
593                 </plugin>
594             </plugins>
595
596         </pluginManagement>
597         <plugins>
598             <!-- Plugins from ONAP oparent -->
599             <plugin>
600                 <artifactId>maven-checkstyle-plugin</artifactId>
601             </plugin>
602             <plugin>
603                 <groupId>org.codehaus.mojo</groupId>
604                 <artifactId>build-helper-maven-plugin</artifactId>
605                 <version>1.12</version>
606             </plugin>
607             <!-- Jacoco / Sonar -->
608             <plugin>
609                 <groupId>org.jacoco</groupId>
610                 <artifactId>jacoco-maven-plugin</artifactId>
611             </plugin>
612             <plugin>
613                 <groupId>org.apache.maven.plugins</groupId>
614                 <artifactId>maven-surefire-plugin</artifactId>
615             </plugin>
616             <plugin>
617                 <groupId>org.apache.maven.plugins</groupId>
618                 <artifactId>maven-failsafe-plugin</artifactId>
619             </plugin>
620
621             <!-- End of plugins from ONAP oparent -->
622             <plugin>
623                 <groupId>org.codehaus.mojo</groupId>
624                 <artifactId>properties-maven-plugin</artifactId>
625                 <version>1.0.0</version>
626                 <executions>
627                     <execution>
628                         <goals>
629                             <goal>set-system-properties</goal>
630                         </goals>
631                         <configuration>
632                             <properties>
633                                 <property>
634                                     <name>maven.wagon.http.ssl.allowall</name>
635                                     <value>${ssl.allowall}</value>
636                                 </property>
637                                 <property>
638                                     <name>maven.wagon.http.ssl.insecure</name>
639                                     <value>${ssl.insecure}</value>
640                                 </property>
641                             </properties>
642                         </configuration>
643                     </execution>
644                 </executions>
645             </plugin>
646             <plugin>
647                 <groupId>org.codehaus.mojo</groupId>
648                 <artifactId>versions-maven-plugin</artifactId>
649                 <version>2.5</version>
650                 <configuration>
651                     <processAllModules>true</processAllModules>
652                 </configuration>
653             </plugin>
654             <plugin>
655                 <artifactId>maven-scm-plugin</artifactId>
656                 <version>1.8.1</version>
657                 <configuration>
658                     <tag>${project.artifactId}-${project.version}</tag>
659                 </configuration>
660             </plugin>
661         </plugins>
662     </build>
663
664     <reporting>
665         <plugins>
666             <plugin>
667                 <artifactId>maven-javadoc-plugin</artifactId>
668                 <version>2.10.4</version>
669                 <configuration>
670                     <failOnError>false</failOnError>
671                     <doclet>org.umlgraph.doclet.UmlGraphDoc</doclet>
672                     <docletArtifact>
673                         <groupId>org.umlgraph</groupId>
674                         <artifactId>umlgraph</artifactId>
675                         <version>5.6</version>
676                     </docletArtifact>
677                     <additionalparam>-views</additionalparam>
678                     <useStandardDocletOptions>true</useStandardDocletOptions>
679                     <excludePackageNames>org.opendaylight.*</excludePackageNames>
680                 </configuration>
681                 <reportSets>
682                     <reportSet>
683                         <reports>
684                             <report>javadoc-no-fork</report>
685                             <report>test-javadoc-no-fork</report>
686                         </reports>
687                     </reportSet>
688                     <reportSet>
689                         <id>aggregate</id>
690                         <reports>
691                             <report>aggregate</report>
692                             <report>test-aggregate</report>
693                         </reports>
694                     </reportSet>
695                 </reportSets>
696             </plugin>
697             <plugin>
698                 <groupId>org.apache.maven.plugins</groupId>
699                 <artifactId>maven-jxr-plugin</artifactId>
700                 <version>2.3</version>
701                 <reportSets>
702                     <reportSet>
703                         <id>aggregate</id>
704                         <reports>
705                             <report>aggregate</report>
706                             <report>test-aggregate</report>
707                         </reports>
708                     </reportSet>
709                 </reportSets>
710             </plugin>
711
712             <plugin>
713                 <artifactId>maven-surefire-plugin</artifactId>
714                 <version>2.17</version>
715             </plugin>
716             <plugin>
717                 <groupId>org.apache.maven.plugins</groupId>
718                 <artifactId>maven-changelog-plugin</artifactId>
719                 <version>2.3</version>
720                 <reportSets>
721                     <reportSet>
722                         <id>dual-report</id>
723                         <configuration>
724                             <type>range</type>
725                             <range>30</range>
726                         </configuration>
727                         <reports>
728                             <report>changelog</report>
729                             <report>file-activity</report>
730                         </reports>
731                     </reportSet>
732                 </reportSets>
733             </plugin>
734             <plugin>
735                 <groupId>org.codehaus.mojo</groupId>
736                 <artifactId>taglist-maven-plugin</artifactId>
737                 <version>2.4</version>
738             </plugin>
739         </plugins>
740     </reporting>
741
742     <profiles>
743         <!-- Profiles from ONAP oparent -->
744         <profile>
745             <id>generate-json</id>
746             <activation>
747                 <file>
748                     <exists>${swagger-properties}</exists>
749                 </file>
750                 <property>
751                     <name>swagger-sdk.generate-json</name>
752                 </property>
753             </activation>
754             <build>
755                 <plugins>
756                     <plugin>
757                         <groupId>org.codehaus.mojo</groupId>
758                         <artifactId>properties-maven-plugin</artifactId>
759                         <version>1.0.0</version>
760                         <executions>
761                             <execution>
762                                 <phase>initialize</phase>
763                                 <goals>
764                                     <goal>read-project-properties</goal>
765                                 </goals>
766                                 <configuration>
767                                     <files>
768                                         <file>${basedir}/src/main/resources/swagger.properties</file>
769                                     </files>
770                                 </configuration>
771                             </execution>
772                         </executions>
773                     </plugin>
774                     <plugin>
775                         <groupId>com.github.kongchen</groupId>
776                         <artifactId>swagger-maven-plugin</artifactId>
777                         <version>3.1.4</version>
778                         <configuration>
779                             <apiSources>
780                                 <apiSource>
781                                     <locations>${api-rest-package}</locations>
782                                     <schemes>http,https</schemes>
783                                     <host>${api-host-ip}:${api-host-port}</host>
784                                     <basePath>${api-base-path}</basePath>
785                                     <info>
786                                         <title>${api-title}</title>
787                                         <version>${api-version}</version>
788                                         <description>${api-description}</description>
789                                         <license>
790                                             <name>${api-license}</name>
791                                         </license>
792                                     </info>
793                                     <swaggerDirectory>${basedir}/src/main/resources</swaggerDirectory>
794                                 </apiSource>
795                             </apiSources>
796                         </configuration>
797                         <executions>
798                             <execution>
799                                 <phase>compile</phase>
800                                 <goals>
801                                     <goal>generate</goal>
802                                 </goals>
803                             </execution>
804                         </executions>
805                     </plugin>
806                     <plugin>
807                         <groupId>org.apache.maven.plugins</groupId>
808                         <artifactId>maven-install-plugin</artifactId>
809                         <version>2.3.1</version>
810                         <executions>
811                             <execution>
812                                 <id>install-file-id</id>
813                                 <phase>install</phase>
814                                 <goals>
815                                     <goal>install-file</goal>
816                                 </goals>
817                                 <configuration>
818                                     <file>${basedir}/src/main/resources/swagger.json</file>
819                                     <groupId>${project.groupId}</groupId>
820                                     <artifactId>${project.artifactId}-swagger-schema</artifactId>
821                                     <version>${project.version}</version>
822                                     <packaging>json</packaging>
823                                 </configuration>
824                             </execution>
825                         </executions>
826                     </plugin>
827                 </plugins>
828             </build>
829         </profile>
830         <profile>
831             <id>generate-sdk</id>
832             <activation>
833                 <file>
834                     <exists>${swagger-json}</exists>
835                 </file>
836                 <property>
837                     <name>swagger-sdk.generate-java-sdk</name>
838                 </property>
839             </activation>
840             <build>
841                 <plugins>
842                     <plugin>
843                         <groupId>org.apache.maven.plugins</groupId>
844                         <artifactId>maven-antrun-plugin</artifactId>
845                         <version>1.8</version>
846                         <executions>
847                             <execution>
848                                 <phase>initialize</phase>
849                                 <id>ant-create-script</id>
850                                 <configuration>
851                                     <exportAntProperties>true</exportAntProperties>
852                                     <tasks>
853
854                                         <taskdef resource="net/sf/antcontrib/antlib.xml" classpathref="maven.plugin.classpath"/>
855                                         <condition property="is_windows" value="true">
856                                             <os family="windows"/>
857                                         </condition>
858                                         <condition property="isLinux" value="true">
859                                             <os family="unix"/>
860                                         </condition>
861                                         <if>
862                                             <equals arg1="${is_windows}" arg2="true"/>
863                                             <then>
864                                                 <property name="swagger.sdk.script.file" value="generated-source-script.bat"/>
865                                                 <echo file="${project.build.directory}${file.separator}generated-source-script.bat" append="true" message="cd ${project.build.directory}${file.separator}generated-sources${line.separator}"/>
866                                                 <echo file="${project.build.directory}${file.separator}generated-source-script.bat" append="true" message="mvn clean install -Dmaven.test.skip=true${line.separator}"/>
867                                             </then>
868                                             <else>
869                                                 <property name="swagger.sdk.script.file" value="generated-source-script.sh"/>
870                                                 <echo file="${project.build.directory}${file.separator}generated-source-script.sh" append="true" message="cd ${project.build.directory}${file.separator}generated-sources${line.separator}"/>
871                                                 <echo file="${project.build.directory}${file.separator}generated-source-script.sh" append="true" message="mvn clean install -Dmaven.test.skip=true${line.separator}"/>
872                                                 <chmod file="${project.build.directory}${file.separator}generated-source-script.sh" perm="755"/>
873                                             </else>
874                                         </if>
875                                     </tasks>
876                                 </configuration>
877                                 <goals>
878                                     <goal>run</goal>
879                                 </goals>
880                             </execution>
881                         </executions>
882                         <dependencies>
883                             <dependency>
884                                 <groupId>ant-contrib</groupId>
885                                 <artifactId>ant-contrib</artifactId>
886                                 <version>1.0b3</version>
887                                 <exclusions>
888                                     <exclusion>
889                                         <groupId>ant</groupId>
890                                         <artifactId>ant</artifactId>
891                                     </exclusion>
892                                 </exclusions>
893                             </dependency>
894                         </dependencies>
895                     </plugin>
896                     <plugin>
897                         <groupId>io.swagger</groupId>
898                         <artifactId>swagger-codegen-maven-plugin</artifactId>
899                         <version>2.2.1</version>
900                         <executions>
901                             <execution>
902                                 <goals>
903                                     <goal>generate</goal>
904                                 </goals>
905                                 <configuration>
906                                     <inputSpec>${basedir}/src/main/resources/swagger.json</inputSpec>
907                                     <output>${project.build.directory}/generated-sources</output>
908                                     <language>java</language>
909                                     <configOptions>
910                                         <dateLibrary>joda</dateLibrary>
911                                     </configOptions>
912                                     <library>jersey2</library>
913                                     <groupId>${project.groupId}</groupId>
914                                     <artifactId>${project.artifactId}-java-sdk</artifactId>
915                                     <artifactVersion>${project.version}</artifactVersion>
916                                     <modelPackage>${project.groupId}.${project.artifactId}.client.model</modelPackage>
917                                     <apiPackage>${project.groupId}.${project.artifactId}.client.api</apiPackage>
918                                     <invokerPackage>${project.groupId}.${project.artifactId}.client.invoker</invokerPackage>
919                                 </configuration>
920                             </execution>
921                         </executions>
922                     </plugin>
923                     <plugin>
924                         <groupId>org.codehaus.mojo</groupId>
925                         <artifactId>exec-maven-plugin</artifactId>
926                         <version>1.5.0</version>
927                         <executions>
928                             <execution>
929                                 <id>swagger-generate-sources</id>
930                                 <phase>generate-sources</phase>
931                                 <goals>
932                                     <goal>exec</goal>
933                                 </goals>
934                                 <configuration>
935                                     <executable>${project.build.directory}${file.separator}${swagger.sdk.script.file}</executable>
936                                 </configuration>
937                             </execution>
938                         </executions>
939                     </plugin>
940                     <plugin>
941                         <groupId>org.apache.maven.plugins</groupId>
942                         <artifactId>maven-clean-plugin</artifactId>
943                         <version>3.0.0</version>
944                         <executions>
945                             <execution>
946                                 <id>clean-generated-files</id>
947                                 <phase>generate-sources</phase>
948                                 <goals>
949                                     <goal>clean</goal>
950                                 </goals>
951                                 <configuration>
952                                     <filesets>
953                                         <fileset>
954                                             <directory>${project.build.directory}/generated-sources</directory>
955                                         </fileset>
956                                     </filesets>
957                                 </configuration>
958                             </execution>
959                         </executions>
960                     </plugin>
961                 </plugins>
962             </build>
963             <dependencies>
964                 <dependency>
965                     <groupId>org.onap.msb.swagger-sdk</groupId>
966                     <artifactId>swagger-sdk</artifactId>
967                     <version>1.0.0</version>
968                 </dependency>
969             </dependencies>
970         </profile>
971         <profile>
972             <id>sonar-jacoco-aggregate</id>
973             <activation>
974                 <property>
975                     <name>onap.jacoco.aggregateFile</name>
976                 </property>
977             </activation>
978             <build>
979                 <plugins>
980                     <plugin>
981                         <groupId>org.jacoco</groupId>
982                         <artifactId>jacoco-maven-plugin</artifactId>
983                         <executions>
984                             <execution>
985                                 <id>merge</id>
986                                 <goals>
987                                     <goal>merge</goal>
988                                 </goals>
989                                 <phase>generate-resources</phase>
990                                 <configuration>
991                                     <destFile>${onap.jacoco.aggregateFile}</destFile>
992                                     <fileSets>
993                                         <fileSet>
994                                             <directory>${project.basedir}</directory>
995                                             <includes>
996                                                 <include>**/target/code-coverage/*.exec</include>
997                                             </includes>
998                                         </fileSet>
999                                     </fileSets>
1000                                 </configuration>
1001                             </execution>
1002                         </executions>
1003                     </plugin>
1004                 </plugins>
1005             </build>
1006         </profile>
1007         <!-- End of profiles from ONAP oparent -->
1008     </profiles>
1009 </project>