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