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