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