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