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