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