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