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