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