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