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