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