Address javadoc build issues
[ccsdk/parent.git] / springboot / springboot1 / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
3     <modelVersion>4.0.0</modelVersion>
4
5     <!-- PLEASE READ !!!!! This file is generated from ccsdk/parent/springboot/spring-boot-setup/src/main/template/pom-template.xml
6         Any updates needed should be made to that template and not to the generated
7         pom.xml file -->
8     <parent>
9         <groupId>org.springframework.boot</groupId>
10         <artifactId>spring-boot-starter-parent</artifactId>
11         <version>1.5.22.RELEASE</version>
12         <relativePath/>
13     </parent>
14
15     <groupId>org.onap.ccsdk.parent</groupId>
16     <artifactId>spring-boot-1-starter-parent</artifactId>
17     <version>2.0.1-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.5</logging-analytics.version>
92
93         <!-- CCSDK component versions -->
94         <ccsdk.cds.version>1.0.0-SNAPSHOT</ccsdk.cds.version>
95         <ccsdk.features.version>1.0.1-SNAPSHOT</ccsdk.features.version>
96         <ccsdk.sli.core.version>1.0.1-SNAPSHOT</ccsdk.sli.core.version>
97         <ccsdk.sli.adaptors.version>1.0.1-SNAPSHOT</ccsdk.sli.adaptors.version>
98         <ccsdk.sli.northbound.version>1.0.1-SNAPSHOT</ccsdk.sli.northbound.version>
99         <ccsdk.sli.plugins.version>1.0.1-SNAPSHOT</ccsdk.sli.plugins.version>
100         <ccsdk.distribution.version>1.0.0-SNAPSHOT</ccsdk.distribution.version>
101
102         <!-- Spring versions -->
103         <spring.boot.version>1.5.22.RELEASE</spring.boot.version>
104         <spring.version>4.3.25.RELEASE</spring.version>
105
106         <!-- Kotlin versions -->
107         <kotlin.compiler.jvmTarget>1.8</kotlin.compiler.jvmTarget>
108         <kotlin.version>1.3.61</kotlin.version>
109         <kotlin.maven.version>1.3.61</kotlin.maven.version>
110         <kotlin.couroutines.version>1.3.3</kotlin.couroutines.version>
111         <kotlinpoet.version>1.5.0</kotlinpoet.version>
112         <kroto-plus.version>0.5.0</kroto-plus.version>
113         <nats.version>2.6.6</nats.version>
114         <nats.streaming.version>2.2.3</nats.streaming.version>
115         <mockk.version>1.9.3</mockk.version>
116
117         <!-- Managed dependency versions -->
118         <antlr.version>4.7.2</antlr.version>
119         <commons.lang.version>2.6</commons.lang.version>
120         <apache.httpcomponents.core.version>4.4.12</apache.httpcomponents.core.version>
121         <apache.httpcomponents.client.version>4.5.10</apache.httpcomponents.client.version>
122         <derby.version>10.14.2.0</derby.version>
123         <eelf.version>1.0.0</eelf.version>
124         <grpc.version>1.25.0</grpc.version>
125         <protobuff.java.version>3.10.0</protobuff.java.version>
126         <protobuff.java.utils.version>3.10.0</protobuff.java.utils.version>
127         <jersey.version>2.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.14.3</testng.version>
135         <tomcat-jdbc.version>9.0.30</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>2.0.1-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>3.2.0</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                         <failOnError>false</failOnError>
484                     </configuration>
485                     <executions>
486                         <execution>
487                             <id>aggregate</id>
488                             <goals>
489                                 <goal>aggregate</goal>
490                             </goals>
491                             <phase>site</phase>
492                         </execution>
493                     </executions>
494                 </plugin>
495                 <plugin>
496                     <groupId>com.github.ferstl</groupId>
497                     <artifactId>depgraph-maven-plugin</artifactId>
498                     <version>3.3.0</version>
499                     <configuration>
500                         <graphFormat>text</graphFormat>
501                         <outputFileName>${dependency-list.file}</outputFileName>
502                         <outputDirectory>${project.basedir}</outputDirectory>
503                         <transitiveExcludes>*</transitiveExcludes>
504                         <showVersions>true</showVersions>
505                         <showGroupIds>true</showGroupIds>
506                     </configuration>
507                 </plugin>
508             </plugins>
509         </pluginManagement>
510
511         <plugins>
512             <!-- Plugins from ONAP oparent -->
513             <!-- Jacoco / Sonar -->
514             <plugin>
515                 <groupId>org.jacoco</groupId>
516                 <artifactId>jacoco-maven-plugin</artifactId>
517                 <version>${jacoco.version}</version>
518                 <executions>
519                     <execution>
520                         <id>pre-unit-test</id>
521                         <goals>
522                             <goal>prepare-agent</goal>
523                         </goals>
524                         <configuration>
525                             <!-- Sets the path to the file which contains the execution data. -->
526                             <destFile>${project.build.directory}/code-coverage/jacoco-ut.exec</destFile>
527                             <!-- Sets the name of the property containing the settings for JaCoCo runtime agent. -->
528                             <propertyName>surefireArgLine</propertyName>
529                         </configuration>
530                     </execution>
531                     <!-- Ensures that the code coverage report for unit tests is created after unit tests have been run. -->
532                     <execution>
533                         <id>post-unit-test</id>
534                         <phase>test</phase>
535                         <goals>
536                             <goal>report</goal>
537                         </goals>
538                         <configuration>
539                             <!-- Sets the path to the file which contains the execution data. -->
540                             <dataFile>${project.build.directory}/code-coverage/jacoco-ut.exec</dataFile>
541                             <!-- Sets the output directory for the code coverage report. -->
542                             <outputDirectory>${project.reporting.outputDirectory}/jacoco-ut</outputDirectory>
543                         </configuration>
544                     </execution>
545                     <execution>
546                         <id>pre-integration-test</id>
547                         <phase>pre-integration-test</phase>
548                         <goals>
549                             <goal>prepare-agent</goal>
550                         </goals>
551                         <configuration>
552                             <!-- Sets the path to the file which contains the execution data. -->
553                             <destFile>${project.build.directory}/code-coverage/jacoco-it.exec</destFile>
554                             <!-- Sets the name of the property containing the settings for JaCoCo runtime agent. -->
555                             <propertyName>failsafeArgLine</propertyName>
556                         </configuration>
557                     </execution>
558                     <!-- Ensures that the code coverage report for integration tests after integration tests have been run. -->
559                     <execution>
560                         <id>post-integration-test</id>
561                         <phase>post-integration-test</phase>
562                         <goals>
563                             <goal>report</goal>
564                         </goals>
565                         <configuration>
566                             <!-- Sets the path to the file which contains the execution data. -->
567                             <dataFile>${project.build.directory}/code-coverage/jacoco-it.exec</dataFile>
568                             <!-- Sets the output directory for the code coverage report. -->
569                             <outputDirectory>${project.reporting.outputDirectory}/jacoco-it</outputDirectory>
570                         </configuration>
571                     </execution>
572                     <execution>
573                         <id>default-prepare-agent</id>
574                         <goals>
575                             <goal>prepare-agent</goal>
576                         </goals>
577                     </execution>
578                     <execution>
579                         <id>default-report</id>
580                         <phase>prepare-package</phase>
581                         <goals>
582                             <goal>report</goal>
583                         </goals>
584                     </execution>
585                     <execution>
586                         <id>default-check</id>
587                         <goals>
588                             <goal>check</goal>
589                         </goals>
590                         <configuration>
591                             <rules>
592                                 <rule>
593                                     <element>PACKAGE</element>
594                                     <limits>
595                                         <limit>
596                                             <counter>COMPLEXITY</counter>
597                                             <value>COVEREDRATIO</value>
598                                             <minimum>0.0</minimum>
599                                         </limit>
600                                     </limits>
601                                 </rule>
602                             </rules>
603                         </configuration>
604                     </execution>
605                 </executions>
606             </plugin>
607             <plugin>
608                 <artifactId>maven-checkstyle-plugin</artifactId>
609             </plugin>
610             <plugin>
611                 <groupId>org.codehaus.mojo</groupId>
612                 <artifactId>build-helper-maven-plugin</artifactId>
613                 <version>1.12</version>
614             </plugin>
615             <!-- Jacoco / Sonar -->
616             <plugin>
617                 <groupId>org.apache.maven.plugins</groupId>
618                 <artifactId>maven-surefire-plugin</artifactId>
619             </plugin>
620             <plugin>
621                 <groupId>org.apache.maven.plugins</groupId>
622                 <artifactId>maven-failsafe-plugin</artifactId>
623             </plugin>
624
625             <!-- End of plugins from ONAP oparent -->
626             <plugin>
627                 <groupId>org.codehaus.mojo</groupId>
628                 <artifactId>properties-maven-plugin</artifactId>
629                 <version>1.0.0</version>
630                 <executions>
631                     <execution>
632                         <goals>
633                             <goal>set-system-properties</goal>
634                         </goals>
635                         <configuration>
636                             <properties>
637                                 <property>
638                                     <name>maven.wagon.http.ssl.allowall</name>
639                                     <value>${ssl.allowall}</value>
640                                 </property>
641                                 <property>
642                                     <name>maven.wagon.http.ssl.insecure</name>
643                                     <value>${ssl.insecure}</value>
644                                 </property>
645                             </properties>
646                         </configuration>
647                     </execution>
648                 </executions>
649             </plugin>
650             <plugin>
651                 <groupId>org.codehaus.mojo</groupId>
652                 <artifactId>versions-maven-plugin</artifactId>
653                 <version>2.5</version>
654                 <configuration>
655                     <processAllModules>true</processAllModules>
656                 </configuration>
657             </plugin>
658             <plugin>
659                 <artifactId>maven-scm-plugin</artifactId>
660                 <version>1.8.1</version>
661                 <configuration>
662                     <tag>${project.artifactId}-${project.version}</tag>
663                 </configuration>
664             </plugin>
665         </plugins>
666     </build>
667
668     <reporting>
669         <plugins>
670             <plugin>
671                 <artifactId>maven-javadoc-plugin</artifactId>
672                 <version>2.10.4</version>
673                 <configuration>
674                     <failOnError>false</failOnError>
675                     <doclet>org.umlgraph.doclet.UmlGraphDoc</doclet>
676                     <docletArtifact>
677                         <groupId>org.umlgraph</groupId>
678                         <artifactId>umlgraph</artifactId>
679                         <version>5.6</version>
680                     </docletArtifact>
681                     <additionalparam>-views</additionalparam>
682                     <useStandardDocletOptions>true</useStandardDocletOptions>
683                     <excludePackageNames>org.opendaylight.*</excludePackageNames>
684                 </configuration>
685                 <reportSets>
686                     <reportSet>
687                         <reports>
688                             <report>javadoc-no-fork</report>
689                             <report>test-javadoc-no-fork</report>
690                         </reports>
691                     </reportSet>
692                     <reportSet>
693                         <id>aggregate</id>
694                         <reports>
695                             <report>aggregate</report>
696                             <report>test-aggregate</report>
697                         </reports>
698                     </reportSet>
699                 </reportSets>
700             </plugin>
701             <plugin>
702                 <groupId>org.apache.maven.plugins</groupId>
703                 <artifactId>maven-jxr-plugin</artifactId>
704                 <version>2.3</version>
705                 <reportSets>
706                     <reportSet>
707                         <id>aggregate</id>
708                         <reports>
709                             <report>aggregate</report>
710                             <report>test-aggregate</report>
711                         </reports>
712                     </reportSet>
713                 </reportSets>
714             </plugin>
715             <plugin>
716                 <artifactId>maven-surefire-plugin</artifactId>
717                 <version>2.17</version>
718             </plugin>
719             <plugin>
720                 <groupId>org.apache.maven.plugins</groupId>
721                 <artifactId>maven-changelog-plugin</artifactId>
722                 <version>2.3</version>
723                 <reportSets>
724                     <reportSet>
725                         <id>dual-report</id>
726                         <configuration>
727                             <type>range</type>
728                             <range>30</range>
729                         </configuration>
730                         <reports>
731                             <report>changelog</report>
732                             <report>file-activity</report>
733                         </reports>
734                     </reportSet>
735                 </reportSets>
736             </plugin>
737             <plugin>
738                 <groupId>org.codehaus.mojo</groupId>
739                 <artifactId>taglist-maven-plugin</artifactId>
740                 <version>2.4</version>
741             </plugin>
742         </plugins>
743     </reporting>
744
745     <profiles>
746         <!-- Profiles from ONAP oparent -->
747         <profile>
748             <id>generate-json</id>
749             <activation>
750                 <file>
751                     <exists>${swagger-properties}</exists>
752                 </file>
753                 <property>
754                     <name>swagger-sdk.generate-json</name>
755                 </property>
756             </activation>
757             <build>
758                 <plugins>
759                     <plugin>
760                         <groupId>org.codehaus.mojo</groupId>
761                         <artifactId>properties-maven-plugin</artifactId>
762                         <version>1.0.0</version>
763                         <executions>
764                             <execution>
765                                 <phase>initialize</phase>
766                                 <goals>
767                                     <goal>read-project-properties</goal>
768                                 </goals>
769                                 <configuration>
770                                     <files>
771                                         <file>${basedir}/src/main/resources/swagger.properties</file>
772                                     </files>
773                                 </configuration>
774                             </execution>
775                         </executions>
776                     </plugin>
777                     <plugin>
778                         <groupId>com.github.kongchen</groupId>
779                         <artifactId>swagger-maven-plugin</artifactId>
780                         <version>3.1.4</version>
781                         <configuration>
782                             <apiSources>
783                                 <apiSource>
784                                     <locations>${api-rest-package}</locations>
785                                     <schemes>http,https</schemes>
786                                     <host>${api-host-ip}:${api-host-port}</host>
787                                     <basePath>${api-base-path}</basePath>
788                                     <info>
789                                         <title>${api-title}</title>
790                                         <version>${api-version}</version>
791                                         <description>${api-description}</description>
792                                         <license>
793                                             <name>${api-license}</name>
794                                         </license>
795                                     </info>
796                                     <swaggerDirectory>${basedir}/src/main/resources</swaggerDirectory>
797                                 </apiSource>
798                             </apiSources>
799                         </configuration>
800                         <executions>
801                             <execution>
802                                 <phase>compile</phase>
803                                 <goals>
804                                     <goal>generate</goal>
805                                 </goals>
806                             </execution>
807                         </executions>
808                     </plugin>
809                     <plugin>
810                         <groupId>org.apache.maven.plugins</groupId>
811                         <artifactId>maven-install-plugin</artifactId>
812                         <version>2.3.1</version>
813                         <executions>
814                             <execution>
815                                 <id>install-file-id</id>
816                                 <phase>install</phase>
817                                 <goals>
818                                     <goal>install-file</goal>
819                                 </goals>
820                                 <configuration>
821                                     <file>${basedir}/src/main/resources/swagger.json</file>
822                                     <groupId>${project.groupId}</groupId>
823                                     <artifactId>${project.artifactId}-swagger-schema</artifactId>
824                                     <version>${project.version}</version>
825                                     <packaging>json</packaging>
826                                 </configuration>
827                             </execution>
828                         </executions>
829                     </plugin>
830                 </plugins>
831             </build>
832         </profile>
833         <profile>
834             <id>generate-sdk</id>
835             <activation>
836                 <file>
837                     <exists>${swagger-json}</exists>
838                 </file>
839                 <property>
840                     <name>swagger-sdk.generate-java-sdk</name>
841                 </property>
842             </activation>
843             <build>
844                 <plugins>
845                     <plugin>
846                         <groupId>org.apache.maven.plugins</groupId>
847                         <artifactId>maven-antrun-plugin</artifactId>
848                         <version>1.8</version>
849                         <executions>
850                             <execution>
851                                 <phase>initialize</phase>
852                                 <id>ant-create-script</id>
853                                 <configuration>
854                                     <exportAntProperties>true</exportAntProperties>
855                                     <tasks>
856                                         <taskdef resource="net/sf/antcontrib/antlib.xml" classpathref="maven.plugin.classpath"/>
857                                         <condition property="is_windows" value="true">
858                                             <os family="windows"/>
859                                         </condition>
860                                         <condition property="isLinux" value="true">
861                                             <os family="unix"/>
862                                         </condition>
863                                         <if>
864                                             <equals arg1="${is_windows}" arg2="true"/>
865                                             <then>
866                                                 <property name="swagger.sdk.script.file" value="generated-source-script.bat"/>
867                                                 <echo file="${project.build.directory}${file.separator}generated-source-script.bat" append="true" message="cd ${project.build.directory}${file.separator}generated-sources${line.separator}"/>
868                                                 <echo file="${project.build.directory}${file.separator}generated-source-script.bat" append="true" message="mvn clean install -Dmaven.test.skip=true${line.separator}"/>
869                                             </then>
870                                             <else>
871                                                 <property name="swagger.sdk.script.file" value="generated-source-script.sh"/>
872                                                 <echo file="${project.build.directory}${file.separator}generated-source-script.sh" append="true" message="cd ${project.build.directory}${file.separator}generated-sources${line.separator}"/>
873                                                 <echo file="${project.build.directory}${file.separator}generated-source-script.sh" append="true" message="mvn clean install -Dmaven.test.skip=true${line.separator}"/>
874                                                 <chmod file="${project.build.directory}${file.separator}generated-source-script.sh" perm="755"/>
875                                             </else>
876                                         </if>
877                                     </tasks>
878                                 </configuration>
879                                 <goals>
880                                     <goal>run</goal>
881                                 </goals>
882                             </execution>
883                         </executions>
884                         <dependencies>
885                             <dependency>
886                                 <groupId>ant-contrib</groupId>
887                                 <artifactId>ant-contrib</artifactId>
888                                 <version>1.0b3</version>
889                                 <exclusions>
890                                     <exclusion>
891                                         <groupId>ant</groupId>
892                                         <artifactId>ant</artifactId>
893                                     </exclusion>
894                                 </exclusions>
895                             </dependency>
896                         </dependencies>
897                     </plugin>
898                     <plugin>
899                         <groupId>io.swagger</groupId>
900                         <artifactId>swagger-codegen-maven-plugin</artifactId>
901                         <version>2.2.1</version>
902                         <executions>
903                             <execution>
904                                 <goals>
905                                     <goal>generate</goal>
906                                 </goals>
907                                 <configuration>
908                                     <inputSpec>${basedir}/src/main/resources/swagger.json</inputSpec>
909                                     <output>${project.build.directory}/generated-sources</output>
910                                     <language>java</language>
911                                     <configOptions>
912                                         <dateLibrary>joda</dateLibrary>
913                                     </configOptions>
914                                     <library>jersey2</library>
915                                     <groupId>${project.groupId}</groupId>
916                                     <artifactId>${project.artifactId}-java-sdk</artifactId>
917                                     <artifactVersion>${project.version}</artifactVersion>
918                                     <modelPackage>${project.groupId}.${project.artifactId}.client.model</modelPackage>
919                                     <apiPackage>${project.groupId}.${project.artifactId}.client.api</apiPackage>
920                                     <invokerPackage>${project.groupId}.${project.artifactId}.client.invoker</invokerPackage>
921                                 </configuration>
922                             </execution>
923                         </executions>
924                     </plugin>
925                     <plugin>
926                         <groupId>org.codehaus.mojo</groupId>
927                         <artifactId>exec-maven-plugin</artifactId>
928                         <version>1.5.0</version>
929                         <executions>
930                             <execution>
931                                 <id>swagger-generate-sources</id>
932                                 <phase>generate-sources</phase>
933                                 <goals>
934                                     <goal>exec</goal>
935                                 </goals>
936                                 <configuration>
937                                     <executable>${project.build.directory}${file.separator}${swagger.sdk.script.file}</executable>
938                                 </configuration>
939                             </execution>
940                         </executions>
941                     </plugin>
942                     <plugin>
943                         <groupId>org.apache.maven.plugins</groupId>
944                         <artifactId>maven-clean-plugin</artifactId>
945                         <version>3.0.0</version>
946                         <executions>
947                             <execution>
948                                 <id>clean-generated-files</id>
949                                 <phase>generate-sources</phase>
950                                 <goals>
951                                     <goal>clean</goal>
952                                 </goals>
953                                 <configuration>
954                                     <filesets>
955                                         <fileset>
956                                             <directory>${project.build.directory}/generated-sources</directory>
957                                         </fileset>
958                                     </filesets>
959                                 </configuration>
960                             </execution>
961                         </executions>
962                     </plugin>
963                 </plugins>
964             </build>
965             <dependencies>
966                 <dependency>
967                     <groupId>org.onap.msb.swagger-sdk</groupId>
968                     <artifactId>swagger-sdk</artifactId>
969                     <version>1.0.0</version>
970                 </dependency>
971             </dependencies>
972         </profile>
973         <profile>
974             <!-- http://blog2.vorburger.ch/2016/06/improve-maven-build-speed-with-q.html
975                  q = http://memory-alpha.wikia.com/wiki/Q ;)
976
977                  The Quick profile is used during incremental local development, when you want to "just get that JAR built",
978                  which is very handy e.g. for fast hot reloading cycles in Karaf with bundle watch.  It (intentionally!) skips
979                  tests, quality checks etc. which are great and useful to run before finally submitting changes to Gerrit, and
980                  which all must run on Gerrit, but which are overhead during ongoing fast iterative local development.
981
982                  Note that the idea here is that your IDE will already have run quality checks such as e.g. Checkstyle
983                  while you typed the code anyway.  Similarly, if you wrote a test, you'll probably already have compiled and run it
984                  from your IDE, so when you want the OSGi bundle JAR for Karaf, ASAP, you typically don't want all that to run again.
985               -->
986             <id>q</id>
987             <properties>
988                 <skipTests>true</skipTests>
989                 <!-- But NOT <maven.test.skip>true, as that's for compiling, not running, tests;
990                      and that's usually quick.  Skipping test compilation with -Pq with maven.test.skip would be
991                      particularly confusing when used in a project with maven-jar-plugin <goal>test-jar, so don't.)  -->
992                 <skipIT>true</skipIT>
993                 <skipITs>true</skipITs>
994                 <skip.karaf.featureTest>true</skip.karaf.featureTest>
995                 <jacoco.skip>true</jacoco.skip>
996                 <maven.javadoc.skip>true</maven.javadoc.skip>
997                 <maven.source.skip>true</maven.source.skip>
998                 <checkstyle.skip>true</checkstyle.skip>
999                 <findbugs.skip>true</findbugs.skip>
1000                 <spotbugs.skip>true</spotbugs.skip>
1001                 <pmd.skip>true</pmd.skip>
1002                 <cpd.skip>true</cpd.skip>
1003                 <maven.site.skip>true</maven.site.skip>
1004                 <invoker.skip>true</invoker.skip>
1005                 <enforcer.skip>true</enforcer.skip>
1006                 <duplicate-finder.skip>true</duplicate-finder.skip>
1007                 <mdsal.skip.verbose>true</mdsal.skip.verbose> <!-- Bug 6236 -->
1008                 <maven.gitcommitid.skip>true</maven.gitcommitid.skip>
1009                 <modernizer.skip>true</modernizer.skip>
1010                 <format.skipExecute>true</format.skipExecute>
1011                 <format.skipValidate>true</format.skipValidate>
1012             </properties>
1013         </profile>
1014         <profile>
1015             <id>sonar-jacoco-aggregate</id>
1016             <activation>
1017                 <property>
1018                     <name>onap.jacoco.aggregateFile</name>
1019                 </property>
1020             </activation>
1021             <build>
1022                 <plugins>
1023                     <plugin>
1024                         <groupId>org.jacoco</groupId>
1025                         <artifactId>jacoco-maven-plugin</artifactId>
1026                         <executions>
1027                             <execution>
1028                                 <id>merge</id>
1029                                 <goals>
1030                                     <goal>merge</goal>
1031                                 </goals>
1032                                 <phase>generate-resources</phase>
1033                                 <configuration>
1034                                     <destFile>${onap.jacoco.aggregateFile}</destFile>
1035                                     <fileSets>
1036                                         <fileSet>
1037                                             <directory>${project.basedir}</directory>
1038                                             <includes>
1039                                                 <include>**/target/code-coverage/*.exec</include>
1040                                             </includes>
1041                                         </fileSet>
1042                                     </fileSets>
1043                                 </configuration>
1044                             </execution>
1045                         </executions>
1046                     </plugin>
1047                 </plugins>
1048             </build>
1049         </profile>
1050         <!-- End of profiles from ONAP oparent -->
1051     </profiles>
1052 </project>