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