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