3cd3257c0734c70d1339684f485b6b523f2a2b5c
[ccsdk/parent.git] / odlparent / bundle-parent / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
3     <modelVersion>4.0.0</modelVersion>
4
5     <!-- PLEASE READ !!!!! This file is generated from ccsdk/parent/setup/src/main/template/pom-template.xml
6         Any updates needed should be made to that template and not to the generated
7         pom.xml file -->
8     <parent>
9         <groupId>org.opendaylight.odlparent</groupId>
10         <artifactId>bundle-parent</artifactId>
11         <version>7.0.7</version>
12         <relativePath/>
13     </parent>
14
15     <groupId>org.onap.ccsdk.parent</groupId>
16     <artifactId>bundle-parent</artifactId>
17     <version>2.1.1-SNAPSHOT</version>
18     <packaging>pom</packaging>
19
20     <name>ONAP :: ${project.groupId} :: ${project.artifactId}</name>
21     <description>Root POM to be used in place of odlparent for CCSDK based projects</description>
22     <url>http://wiki.onap.org</url>
23     <organization>
24         <name>ONAP</name>
25     </organization>
26
27     <issueManagement>
28         <system>JIRA</system>
29         <url>https://jira.onap.org/</url>
30     </issueManagement>
31     <distributionManagement>
32         <repository>
33             <id>ecomp-releases</id>
34             <url>${onap.nexus.release-url}</url>
35         </repository>
36         <snapshotRepository>
37             <id>ecomp-snapshots</id>
38             <url>${onap.nexus.snapshot-url}</url>
39         </snapshotRepository>
40     </distributionManagement>
41
42     <properties>
43         <!-- Sonar properties -->
44         <sonar.scanner.version>3.7.0.1746</sonar.scanner.version>
45         <sonar-jacoco-listeners.version>3.2</sonar-jacoco-listeners.version>
46         <sonar.core.codeCoveragePlugin>jacoco</sonar.core.codeCoveragePlugin>
47         <!-- Default Sonar configuration -->
48         <sonar.coverage.jacoco.xmlReportPaths>${project.reporting.outputDirectory}/jacoco-ut/jacoco.xml,${project.reporting.outputDirectory}/jacoco-it/jacoco.xml</sonar.coverage.jacoco.xmlReportPaths>
49         <!-- Note: This list should match jacoco-maven-plugin's exclusion list below -->
50         <sonar.exclusions>**/gen/**,**/generated-sources/**,**/yang-gen**,**/pax/**</sonar.exclusions>
51
52         <!-- Jacoco properties -->
53         <jacoco.version>0.8.5</jacoco.version>
54
55         <!-- properties from oparent -->
56         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
57         <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
58         <onap.nexus.url>https://nexus.onap.org</onap.nexus.url>
59         <!-- sitePath may be overridden in the inheriting POM if desired -->
60         <sitePath>/content/sites/site/${project.groupId}/${project.artifactId}/${project.version}</sitePath>
61
62         <!-- If following file exist, auto-generation of swagger.json will be done -->
63         <swagger-properties>${basedir}/src/main/resources/swagger.properties</swagger-properties>
64         <!-- If following file exist, auto-generation of sdk will be done -->
65         <swagger-json>${basedir}/src/main/resources/swagger.json</swagger-json>
66         <!-- end of properties from oparent -->
67
68         <!-- ONAP repositories -->
69         <onap.nexus.host>nexus.onap.org</onap.nexus.host>
70         <onap.nexus.port>443</onap.nexus.port>
71         <onap.nexus.protocol>https</onap.nexus.protocol>
72         <onap.nexus.public-url>https://nexus.onap.org/content/groups/public</onap.nexus.public-url>
73         <onap.nexus.staging-url>https://nexus.onap.org/content/groups/staging</onap.nexus.staging-url>
74         <onap.nexus.release-url>https://nexus.onap.org/content/repositories/releases</onap.nexus.release-url>
75         <onap.nexus.snapshot-url>https://nexus.onap.org/content/repositories/snapshots</onap.nexus.snapshot-url>
76         <onap.nexus.staging.server-id>ecomp-staging</onap.nexus.staging.server-id>
77         <onap.nexus.staging.profile-id>176c31dfe190a</onap.nexus.staging.profile-id>
78
79         <!-- OpenDaylight repositories -->
80         <opendaylight.nexus.public-url>https://nexus.opendaylight.org/content/repositories/public/</opendaylight.nexus.public-url>
81         <opendaylight.nexus.snapshot-url>https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/</opendaylight.nexus.snapshot-url>
82
83         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
84         <java.version>11</java.version>
85         <maven-surefire-plugin.version>3.0.0-M5</maven-surefire-plugin.version>
86         <maven-failsafe-plugin.version>3.0.0-M5</maven-failsafe-plugin.version>
87         <bundle.plugin.version>4.2.1</bundle.plugin.version>
88         <maven-compiler-plugin.version>3.8.1</maven-compiler-plugin.version>
89         <features.file>features.xml</features.file>
90         <jmxGeneratorPath>src/main/yang-gen-config</jmxGeneratorPath>
91         <salGeneratorPath>src/main/yang-gen-sal</salGeneratorPath>
92         <checkstyle.plugin.version>3.1.1</checkstyle.plugin.version>
93         <checkstyle.skip>true</checkstyle.skip>
94         <odlparent.spotbugs.enforce>false</odlparent.spotbugs.enforce>
95
96         <!-- logging-analytics versions -->
97         <logging-analytics.version>1.6.6</logging-analytics.version>
98
99         <!-- CCSDK component versions -->
100         <ccsdk.cds.version>1.1.1-SNAPSHOT</ccsdk.cds.version>
101         <ccsdk.features.version>1.1.1-SNAPSHOT</ccsdk.features.version>
102         <ccsdk.distribution.version>1.1.1-SNAPSHOT</ccsdk.distribution.version>
103         <ccsdk.sli.version>1.2.0-SNAPSHOT</ccsdk.sli.version>
104         <ccsdk.sli.core.version>${ccsdk.sli.version}</ccsdk.sli.core.version>
105         <ccsdk.sli.adaptors.version>${ccsdk.sli.version}</ccsdk.sli.adaptors.version>
106         <ccsdk.sli.northbound.version>${ccsdk.sli.version}</ccsdk.sli.northbound.version>
107         <ccsdk.sli.plugins.version>${ccsdk.sli.version}</ccsdk.sli.plugins.version>
108         <sdnctl.aai.service.version>${ccsdk.sli.version}</sdnctl.aai.service.version>
109         <sdnctl.dblib.version>${ccsdk.sli.version}</sdnctl.dblib.version>
110         <sdnctl.mdsal.resource.version>${ccsdk.sli.version}</sdnctl.mdsal.resource.version>
111         <sdnctl.slipluginutils.version>${ccsdk.sli.version}</sdnctl.slipluginutils.version>
112
113         <!-- Support libraries used by OpenDaylight -->
114         <odl.controller.mdsal.version>1.12.1</odl.controller.mdsal.version>
115         <odl.mdsal.version>6.0.7</odl.mdsal.version>
116         <odl.mdsal.model.version>6.0.7</odl.mdsal.model.version>
117         <odl.netconf.restconf.version>1.12.1</odl.netconf.restconf.version>
118         <odl.netconf.netconf.version>1.9.1</odl.netconf.netconf.version>
119         <odl.netconf.sal.rest.docgen.version>1.12.1</odl.netconf.sal.rest.docgen.version>
120
121         <!-- Used by aaa, vtn -->
122         <commons.codec.version>1.15</commons.codec.version>
123         <!-- Used by netconf, ovsdb -->
124         <commons.lang3.version>3.8.1</commons.lang3.version>
125         <!-- Used by sfc, snmp4sdn; see also affinity, toolkit -->
126         <commons.lang.version>2.6</commons.lang.version>
127         <!-- Used by neutron; see also controller, vtn -->
128         <commons.net.version>3.7</commons.net.version>
129         <!-- Used by neutron -->
130         <eclipse.persistence.version>2.7.7</eclipse.persistence.version>
131         <!-- Used by aaa -->
132         <felix.dependencymanager.version>4.4.1</felix.dependencymanager.version>
133         <!-- Used by lacp, netconf, ovsdb, sfc, toolkit; see also vtn -->
134         <gson.version>2.8.5</gson.version>
135         <!-- Used by aaa, dlux, persistence, snmp4sdn, sxp -->
136         <guava.version>28.2-jre</guava.version>
137         <!-- Used by aaa, alto, netconf, ovsdb, sfc; see also affinity, defense4all,
138             integration/distribution, snmp4sdn, toolkit, ttp -->
139         <jackson.version>2.10.4</jackson.version>
140         <!-- Used by snmp4sdn, yangtools -->
141         <javassist.version>3.27.0-GA</javassist.version>
142
143         <!-- FIXME remove all dependencies for jersey 1.17 after migration all projects -->
144         <!-- Used by aaa, alto, netconf, neutron, sfc; see also affinity, defense4all, snmp4sdn, toolkit -->
145         <jersey.version>2.27</jersey.version>
146         <!-- Used by sfc -->
147         <jersey.client.version>2.27</jersey.client.version>
148
149         <!-- New packages for jersey migration 1.17 to 2.8 -->
150         <!-- appache.geronimo.bundle for DocGen -->
151         <!-- Used by aaa, iotdm, netconf, ovsdb, sfc -->
152         <org.json.version>20131018</org.json.version>
153
154         <!-- Used everywhere -->
155         <junit.version>4.13</junit.version>
156         <!-- Used by coretutorials, sfc, snmp4sdn, sxp; see also affinity, toolkit -->
157         <logback.version>1.11.6</logback.version>
158         <!-- Used by nic, sfc, sxp, tsdr -->
159         <mockito.version>3.3.3</mockito.version>
160         <!-- Used by bgpcep, netconf, ovsdb, sxp; see also opendove, toolkit -->
161         <netty.version>4.1.51.Final</netty.version>
162         <!-- Used by openflowjava, persistence, sfc, snmp4sdn, sxp; see also affinity, toolkit -->
163         <slf4j.version>1.7.29</slf4j.version>
164         <!-- Used in integration/distribution; see also affinity, snmp4sdn, toolkit, tsdr, ttp -->
165         <spring.version>4.3.25.RELEASE</spring.version>
166
167         <!-- Extra support libraries used by SDN-C -->
168         <jvnet.jaxb2.version>0.6.4</jvnet.jaxb2.version>
169         <antlr.version>4.8.1</antlr.version>
170
171         <eelf.maven.plugin.version>1.0.0</eelf.maven.plugin.version>
172
173         <!-- Managed dependency versions -->
174         <apache.httpcomponents.core.version>4.4.12</apache.httpcomponents.core.version>
175         <apache.httpcomponents.client.version>4.5.10</apache.httpcomponents.client.version>
176         <derby.version>10.14.2.0</derby.version>
177         <eelf.version>1.0.0</eelf.version>
178         <grpc.version>1.21.1</grpc.version>
179         <mariadb.connector.version>2.4.4</mariadb.connector.version>
180         <mariadb4j.version>2.4.0</mariadb4j.version>
181         <testng.version>6.14.3</testng.version>
182         <tomcat-jdbc.version>9.0.30</tomcat-jdbc.version>
183         <jetty.version>9.4.28.v20200408</jetty.version>
184         <skip.karaf.featureTest>true</skip.karaf.featureTest>
185         <dependency-list.file>direct-dependencies.txt</dependency-list.file>
186     </properties>
187
188     <dependencyManagement>
189         <dependencies>
190             <!-- Note: If value in BOM conflicts with value inherited from
191             parent pom, inherited value takes precedence.  This seems more like
192             a bug than a feature, but this is how maven 3.6 works -->
193             <dependency>
194                 <groupId>org.onap.ccsdk.parent</groupId>
195                 <artifactId>dependencies-odl-bom</artifactId>
196                 <version>2.1.1-SNAPSHOT</version>
197                 <type>pom</type>
198                 <scope>import</scope>
199             </dependency>
200             <dependency>
201                 <groupId>org.onap.ccsdk.parent</groupId>
202                 <artifactId>dependencies-bom</artifactId>
203                 <version>2.1.1-SNAPSHOT</version>
204                 <type>pom</type>
205                 <scope>import</scope>
206             </dependency>
207             <dependency>
208                 <groupId>org.springframework.boot</groupId>
209                 <artifactId>spring-boot-dependencies</artifactId>
210                 <version>2.3.8.RELEASE</version>
211                 <scope>import</scope>
212                 <type>pom</type>
213             </dependency>
214             <dependency>
215                 <groupId>org.onap.logging-analytics</groupId>
216                 <artifactId>logging-slf4j</artifactId>
217                 <version>${logging-analytics.version}</version>
218             </dependency>
219             <dependency>
220                 <groupId>org.onap.logging-analytics</groupId>
221                 <artifactId>logging-filter-base</artifactId>
222                 <version>${logging-analytics.version}</version>
223             </dependency>
224             <dependency>
225                 <groupId>junit</groupId>
226                 <artifactId>junit</artifactId>
227                 <version>${junit.version}</version>
228                 <scope>test</scope>
229             </dependency>
230         </dependencies>
231     </dependencyManagement>
232
233     <dependencies>
234         <dependency>
235             <groupId>javax.annotation</groupId>
236             <artifactId>javax.annotation-api</artifactId>
237             <version>1.3.2</version>
238         </dependency>
239     </dependencies>
240
241     <repositories>
242         <repository>
243             <id>onap-public</id>
244             <url>${onap.nexus.public-url}</url>
245             <releases>
246                 <enabled>true</enabled>
247                 <updatePolicy>never</updatePolicy>
248             </releases>
249             <snapshots>
250                 <enabled>true</enabled>
251                 <updatePolicy>always</updatePolicy>
252             </snapshots>
253         </repository>
254         <repository>
255             <id>onap-staging</id>
256             <url>${onap.nexus.staging-url}</url>
257             <releases>
258                 <enabled>true</enabled>
259                 <updatePolicy>never</updatePolicy>
260             </releases>
261             <snapshots>
262                 <enabled>true</enabled>
263                 <updatePolicy>always</updatePolicy>
264             </snapshots>
265         </repository>
266         <repository>
267             <id>ecomp-release</id>
268             <name>onap-repository-releases</name>
269             <url>${onap.nexus.release-url}</url>
270             <releases>
271                 <enabled>true</enabled>
272                 <updatePolicy>never</updatePolicy>
273             </releases>
274             <snapshots>
275                 <enabled>false</enabled>
276             </snapshots>
277         </repository>
278         <repository>
279             <id>ecomp-snapshot</id>
280             <name>onap-repository-snapshots</name>
281             <url>${onap.nexus.snapshot-url}</url>
282             <releases>
283                 <enabled>false</enabled>
284             </releases>
285             <snapshots>
286                 <enabled>true</enabled>
287             </snapshots>
288         </repository>
289         <repository>
290             <id>opendaylight-mirror</id>
291             <name>opendaylight-mirror</name>
292             <url>${opendaylight.nexus.public-url}</url>
293             <releases>
294                 <enabled>true</enabled>
295                 <updatePolicy>never</updatePolicy>
296             </releases>
297             <snapshots>
298                 <enabled>false</enabled>
299             </snapshots>
300         </repository>
301         <repository>
302             <id>opendaylight-snapshot</id>
303             <name>opendaylight-snapshot</name>
304             <url>${opendaylight.nexus.snapshot-url}</url>
305             <releases>
306                 <enabled>false</enabled>
307             </releases>
308             <snapshots>
309                 <enabled>true</enabled>
310             </snapshots>
311         </repository>
312
313     </repositories>
314     <pluginRepositories>
315         <pluginRepository>
316             <id>onap-public</id>
317             <url>${onap.nexus.public-url}</url>
318             <releases>
319                 <enabled>true</enabled>
320             </releases>
321             <snapshots>
322                 <enabled>true</enabled>
323             </snapshots>
324         </pluginRepository>
325         <pluginRepository>
326             <id>onap-staging</id>
327             <url>${onap.nexus.staging-url}</url>
328             <releases>
329                 <enabled>true</enabled>
330             </releases>
331             <snapshots>
332                 <enabled>true</enabled>
333             </snapshots>
334         </pluginRepository>
335         <pluginRepository>
336             <id>onap-snapshot</id>
337             <url>${onap.nexus.snapshot-url}</url>
338             <releases>
339                 <enabled>false</enabled>
340             </releases>
341             <snapshots>
342                 <enabled>true</enabled>
343             </snapshots>
344         </pluginRepository>
345         <pluginRepository>
346             <id>opendaylight-mirror</id>
347             <name>opendaylight-mirror</name>
348             <url>${opendaylight.nexus.public-url}</url>
349             <releases>
350                 <enabled>true</enabled>
351                 <updatePolicy>never</updatePolicy>
352             </releases>
353             <snapshots>
354                 <enabled>false</enabled>
355             </snapshots>
356         </pluginRepository>
357         <pluginRepository>
358             <id>opendaylight-snapshot</id>
359             <name>opendaylight-snapshot</name>
360             <url>${opendaylight.nexus.snapshot-url}</url>
361             <releases>
362                 <enabled>false</enabled>
363             </releases>
364             <snapshots>
365                 <enabled>true</enabled>
366             </snapshots>
367         </pluginRepository>
368         <!-- Black Duck plugin dependencies -->
369         <pluginRepository>
370             <id>JCenter</id>
371             <name>JCenter Repository</name>
372             <url>http://jcenter.bintray.com</url>
373         </pluginRepository>
374
375         <pluginRepository>
376             <id>Restlet</id>
377             <name>Restlet Repository</name>
378             <url>http://maven.restlet.com</url>
379         </pluginRepository>
380     </pluginRepositories>
381
382     <build>
383         <pluginManagement>
384             <plugins>
385                 <!-- Plugins from ONAP version (parent of oparent) -->
386                 <plugin>
387                     <groupId>org.apache.maven.plugins</groupId>
388                     <artifactId>maven-deploy-plugin</artifactId>
389                     <!-- This version supports the "deployAtEnd" parameter -->
390                     <version>2.8</version>
391                     <configuration>
392                         <skip/>
393                     </configuration>
394                 </plugin>
395                 <plugin>
396                     <groupId>org.apache.maven.plugins</groupId>
397                     <artifactId>maven-site-plugin</artifactId>
398                     <version>3.6</version>
399                     <dependencies>
400                         <dependency>
401                             <groupId>org.apache.maven.wagon</groupId>
402                             <artifactId>wagon-webdav-jackrabbit</artifactId>
403                             <version>2.10</version>
404                         </dependency>
405                     </dependencies>
406                 </plugin>
407                 <plugin>
408                     <groupId>org.apache.maven.plugins</groupId>
409                     <artifactId>maven-enforcer-plugin</artifactId>
410                     <version>3.0.0-M2</version>
411                     <executions>
412                         <execution>
413                             <id>enforce-property</id>
414                             <goals>
415                                 <goal>enforce</goal>
416                             </goals>
417                             <configuration>
418                                 <rules>
419                                     <requireProperty>
420                                         <property>onap.nexus.url</property>
421                                         <message>You must set a onap.nexus.url property in your
422                                             ~/.m2/settings.xml. See oparent/settings.xml for an example.
423                                         </message>
424                                     </requireProperty>
425                                 </rules>
426                                 <fail>true</fail>
427                             </configuration>
428                         </execution>
429                         <execution>
430                             <id>enforce-no-snapshots</id>
431                             <goals>
432                                 <goal>enforce</goal>
433                             </goals>
434                             <configuration>
435                                 <rules>
436                                     <requireReleaseDeps>
437                                         <failWhenParentIsSnapshot>false</failWhenParentIsSnapshot>
438                                         <onlyWhenRelease>true</onlyWhenRelease>
439                                         <level>WARN</level>
440                                     </requireReleaseDeps>
441                                 </rules>
442                             </configuration>
443                         </execution>
444                         <execution>
445                             <id>enforce-maven</id>
446                             <goals>
447                                 <goal>enforce</goal>
448                             </goals>
449                             <configuration>
450                                 <rules>
451                                     <requireJavaVersion>
452                                         <version>8</version>
453                                     </requireJavaVersion>
454                                     <requireMavenVersion>
455                                         <version>[3.5.0,)</version>
456                                     </requireMavenVersion>
457                                 </rules>
458                             </configuration>
459                         </execution>
460                         <execution>
461                             <id>enforce-banned-dependencies</id>
462                             <goals>
463                                 <goal>enforce</goal>
464                             </goals>
465                             <configuration>
466                                 <rules>
467                                     <bannedDependencies>
468                                         <message>Please always use mockito-core instead of mockito-all (see https://bugs.opendaylight.org/show_bug.cgi?id=7662), and spotbugs:annotations instead of findbugs:annotations</message>
469                                         <excludes>
470                                             <exclude>org.mockito:mockito-all</exclude>
471                                             <!--                     <exclude>com.google.code.findbugs:annotations</exclude> -->
472                                         </excludes>
473                                     </bannedDependencies>
474                                 </rules>
475                                 <fail>true</fail>
476                             </configuration>
477                         </execution>
478                     </executions>
479                 </plugin>
480                 <!-- https://mvnrepository.com/artifact/org.sonarsource.scanner.maven/sonar-maven-plugin -->
481                 <plugin>
482                     <groupId>org.sonarsource.scanner.maven</groupId>
483                     <artifactId>sonar-maven-plugin</artifactId>
484                     <version>${sonar.scanner.version}</version>
485                 </plugin>
486                 <!-- end of plugins from ONAP version (parent of oparent) -->
487                 <!-- Plugins from ONAP oparent -->
488                 <plugin>
489                     <groupId>org.apache.maven.plugins</groupId>
490                     <artifactId>maven-surefire-plugin</artifactId>
491                     <version>${maven-surefire-plugin.version}</version>
492                     <configuration>
493                         <!-- Sets the VM argument line used when unit tests are run. -->
494                         <argLine>${surefireArgLine}</argLine>
495                         <!-- Excludes integration tests when unit tests are run. -->
496                         <excludes>
497                             <exclude>**/IT*.java</exclude>
498                         </excludes>
499                     </configuration>
500                 </plugin>
501                 <plugin>
502                     <groupId>org.apache.maven.plugins</groupId>
503                     <artifactId>maven-failsafe-plugin</artifactId>
504                     <version>${maven-failsafe-plugin.version}</version>
505                     <executions>
506                         <!-- Ensures that both integration-test and verify goals of the Failsafe
507                             Maven plugin are executed. -->
508                         <execution>
509                             <id>integration-tests</id>
510                             <goals>
511                                 <goal>integration-test</goal>
512                                 <goal>verify</goal>
513                             </goals>
514                             <configuration>
515                                 <!-- Sets the VM argument line used when integration tests are run. -->
516                                 <argLine>${failsafeArgLine}</argLine>
517                             </configuration>
518                         </execution>
519                     </executions>
520                 </plugin>
521
522                 <!-- End of plugins from ONAP oparent -->
523                 <plugin>
524                     <groupId>org.codehaus.mojo</groupId>
525                     <artifactId>properties-maven-plugin</artifactId>
526                     <version>1.0.0</version>
527                     <executions>
528                         <execution>
529                             <goals>
530                                 <goal>set-system-properties</goal>
531                             </goals>
532                             <configuration>
533                                 <properties>
534                                     <property>
535                                         <name>maven.wagon.http.ssl.allowall</name>
536                                         <value>${ssl.allowall}</value>
537                                     </property>
538                                     <property>
539                                         <name>maven.wagon.http.ssl.insecure</name>
540                                         <value>${ssl.insecure}</value>
541                                     </property>
542                                 </properties>
543                             </configuration>
544                         </execution>
545                     </executions>
546                 </plugin>
547
548                 <plugin>
549                     <groupId>org.codehaus.mojo</groupId>
550                     <artifactId>versions-maven-plugin</artifactId>
551                     <version>2.5</version>
552                     <configuration>
553                         <processAllModules>true</processAllModules>
554                     </configuration>
555                 </plugin>
556                 <plugin>
557                     <artifactId>maven-scm-plugin</artifactId>
558                     <version>1.8.1</version>
559                     <configuration>
560                         <tag>${project.artifactId}-${project.version}</tag>
561                     </configuration>
562                 </plugin>
563                 <plugin>
564                     <groupId>com.github.ferstl</groupId>
565                     <artifactId>depgraph-maven-plugin</artifactId>
566                     <version>3.3.0</version>
567                     <configuration>
568                         <graphFormat>text</graphFormat>
569                         <outputFileName>${dependency-list.file}</outputFileName>
570                         <outputDirectory>${project.basedir}</outputDirectory>
571                         <transitiveExcludes>*</transitiveExcludes>
572                         <showVersions>true</showVersions>
573                         <showGroupIds>true</showGroupIds>
574                     </configuration>
575                 </plugin>
576                 <plugin>
577                     <groupId>de.jacks-it-lab</groupId>
578                     <artifactId>frontend-maven-plugin</artifactId>
579                     <version>1.7.2</version>
580                 </plugin>
581                 <plugin>
582                     <groupId>com.github.alexcojocaru</groupId>
583                     <artifactId>elasticsearch-maven-plugin</artifactId>
584                     <version>6.16</version>
585                     <configuration>
586                         <version>7.1.1</version>
587                     </configuration>
588                 </plugin>
589                 <plugin>
590                     <groupId>org.apache.maven.plugins</groupId>
591                     <artifactId>maven-javadoc-plugin</artifactId>
592                     <version>3.2.0</version>
593                     <configuration>
594                         <failOnError>false</failOnError>
595                     </configuration>
596                 </plugin>
597                 <plugin>
598                     <artifactId>maven-checkstyle-plugin</artifactId>
599                     <executions>
600                         <execution>
601                             <phase>process-sources</phase>
602                             <goals>
603                                 <goal>check</goal>
604                             </goals>
605                             <configuration>
606                                 <failOnViolation>false</failOnViolation>
607                                 <skip>false</skip>
608                             </configuration>
609                         </execution>
610                     </executions>
611                 </plugin>
612                 <plugin>
613                     <groupId>com.github.spotbugs</groupId>
614                     <artifactId>spotbugs-maven-plugin</artifactId>
615                     <version>3.1.12.2</version>
616                     <executions>
617                         <execution>
618                             <id>analyze-compile</id>
619                             <phase>compile</phase>
620                             <goals>
621                                 <goal>check</goal>
622                             </goals>
623                             <configuration>
624                                 <plugins>
625                                     <plugin>
626                                         <groupId>jp.skypencil.findbugs.slf4j</groupId>
627                                         <artifactId>bug-pattern</artifactId>
628                                         <version>1.5.0</version>
629                                     </plugin>
630                                 </plugins>
631                                 <effort>Max</effort>
632                                 <threshold>Low</threshold>
633                                 <failOnError>false</failOnError>
634                                 <skip>true</skip>
635                                 <excludeFilterFile>spotbugs-exclude.xml</excludeFilterFile>
636                                 <xmlOutput>true</xmlOutput>
637                                 <findbugsXmlOutputDirectory>/home/jack/onap/onap-sdnr/features/sdnr/wt-aluminium-sr0-2/target/wt/common/target-ide/spotbugs</findbugsXmlOutputDirectory>
638                             </configuration>
639                         </execution>
640                     </executions>
641                     <dependencies>
642                         <dependency>
643                             <groupId>com.github.spotbugs</groupId>
644                             <artifactId>spotbugs</artifactId>
645                             <version>3.1.12</version>
646                             <scope>compile</scope>
647                         </dependency>
648                         <dependency>
649                             <groupId>org.opendaylight.odlparent</groupId>
650                             <artifactId>spotbugs</artifactId>
651                             <version>7.0.5</version>
652                             <scope>compile</scope>
653                         </dependency>
654                         <dependency>
655                             <groupId>org.slf4j</groupId>
656                             <artifactId>slf4j-simple</artifactId>
657                             <version>1.8.0-beta2</version>
658                             <scope>compile</scope>
659                         </dependency>
660                     </dependencies>
661                     <configuration>
662                         <plugins>
663                             <plugin>
664                                 <groupId>jp.skypencil.findbugs.slf4j</groupId>
665                                 <artifactId>bug-pattern</artifactId>
666                                 <version>1.5.0</version>
667                             </plugin>
668                         </plugins>
669                         <effort>Max</effort>
670                         <threshold>Low</threshold>
671                         <failOnError>false</failOnError>
672                         <skip>true</skip>
673                         <excludeFilterFile>spotbugs-exclude.xml</excludeFilterFile>
674                         <xmlOutput>true</xmlOutput>
675                         <findbugsXmlOutputDirectory>/home/jack/onap/onap-sdnr/features/sdnr/wt-aluminium-sr0-2/target/wt/common/target-ide/spotbugs</findbugsXmlOutputDirectory>
676                     </configuration>
677                 </plugin>
678                 <plugin>
679                     <artifactId>maven-checkstyle-plugin</artifactId>
680                     <version>${checkstyle.plugin.version}</version>
681                     <dependencies>
682                         <dependency>
683                             <groupId>org.onap.oparent</groupId>
684                             <artifactId>checkstyle</artifactId>
685                             <version>1.2.2</version>
686                         </dependency>
687                     </dependencies>
688                     <executions>
689                         <execution>
690                             <id>check-license</id>
691                             <goals>
692                                 <goal>check</goal>
693                             </goals>
694                             <phase>process-sources</phase>
695                             <configuration>
696                                 <configLocation>onap-checkstyle/check-license.xml</configLocation>
697                                 <includeResources>false</includeResources>
698                                 <includeTestSourceDirectory>true</includeTestSourceDirectory>
699                                 <includeTestResources>false</includeTestResources>
700                                 <sourceDirectories>
701                                     <directory>${project.build.sourceDirectory}</directory>
702                                 </sourceDirectories>
703                                 <excludes>
704                                 </excludes>
705                                 <consoleOutput>true</consoleOutput>
706                                 <failOnViolation>false</failOnViolation>
707                             </configuration>
708                         </execution>
709                         <execution>
710                             <id>onap-java-style</id>
711                             <goals>
712                                 <goal>check</goal>
713                             </goals>
714                             <phase>process-sources</phase>
715                             <configuration>
716                                 <!-- Use Google Java Style Guide: https://github.com/checkstyle/checkstyle/blob/master/src/main/resources/google_checks.xml
717                                     with minor changes -->
718                                 <configLocation>onap-checkstyle/onap-java-style.xml</configLocation>
719                                 <!-- <sourceDirectory> is needed so that checkstyle ignores the generated sources directory -->
720                                 <sourceDirectories>
721                                     <directory>${project.build.sourceDirectory}/src/main/java</directory>
722                                 </sourceDirectories>
723                                 <includeResources>true</includeResources>
724                                 <includeTestSourceDirectory>true</includeTestSourceDirectory>
725                                 <includeTestResources>true</includeTestResources>
726                                 <excludes>
727                                 </excludes>
728                                 <consoleOutput>true</consoleOutput>
729                                 <failOnViolation>false</failOnViolation>
730                             </configuration>
731                         </execution>
732                     </executions>
733                 </plugin>
734             </plugins>
735         </pluginManagement>
736         <plugins>
737
738             <!-- Plugins from oparent version (parent of oparent) -->
739             <plugin>
740                 <groupId>org.apache.maven.plugins</groupId>
741                 <artifactId>maven-deploy-plugin</artifactId>
742             </plugin>
743             <plugin>
744                 <groupId>org.apache.maven.plugins</groupId>
745                 <artifactId>maven-site-plugin</artifactId>
746                 <!--
747                 <configuration>
748                     <reportPlugins>
749                         <reportPlugin>
750                             <groupId>org.apache.maven.plugins</groupId>
751                             <artifactId>maven-checkstyle-plugin</artifactId>
752                             <version>${checkstyle.plugin.version}</version>
753                         </reportPlugin>
754                     </reportPlugins>
755                 </configuration>
756                 -->
757             </plugin>
758             <!-- end of plugins from oparent version (parent of oparent) -->
759
760             <!-- Plugins from oparent -->
761             <plugin>
762                 <artifactId>maven-checkstyle-plugin</artifactId>
763                 <version>${checkstyle.plugin.version}</version>
764                 <dependencies>
765                     <dependency>
766                         <groupId>org.onap.oparent</groupId>
767                         <artifactId>checkstyle</artifactId>
768                         <version>1.2.2</version>
769                     </dependency>
770                 </dependencies>
771                 <executions>
772                     <execution>
773                         <id>onap-license</id>
774                         <goals>
775                             <goal>check</goal>
776                         </goals>
777                         <phase>process-sources</phase>
778                         <configuration>
779                             <configLocation>onap-checkstyle/check-license.xml</configLocation>
780                             <includeResources>false</includeResources>
781                             <includeTestSourceDirectory>true</includeTestSourceDirectory>
782                             <includeTestResources>false</includeTestResources>
783                             <sourceDirectories>
784                                 <directory>${project.build.sourceDirectory}</directory>
785                             </sourceDirectories>
786                             <excludes>
787                             </excludes>
788                             <consoleOutput>true</consoleOutput>
789                             <failOnViolation>false</failOnViolation>
790                         </configuration>
791                     </execution>
792                     <execution>
793                         <id>onap-java-style</id>
794                         <goals>
795                             <goal>check</goal>
796                         </goals>
797                         <phase>process-sources</phase>
798                         <configuration>
799                             <!-- Use Google Java Style Guide: https://github.com/checkstyle/checkstyle/blob/master/src/main/resources/google_checks.xml
800                                 with minor changes -->
801                             <configLocation>onap-checkstyle/onap-java-style.xml</configLocation>
802                             <!-- <sourceDirectory> is needed so that checkstyle ignores the generated sources directory -->
803                             <sourceDirectories>
804                                 <directory>${project.build.sourceDirectory}/src/main/java</directory>
805                             </sourceDirectories>
806                             <includeResources>true</includeResources>
807                             <includeTestSourceDirectory>true</includeTestSourceDirectory>
808                             <includeTestResources>true</includeTestResources>
809                             <excludes>
810                             </excludes>
811                             <consoleOutput>true</consoleOutput>
812                             <failOnViolation>false</failOnViolation>
813                         </configuration>
814                     </execution>
815                 </executions>
816             </plugin>
817             <plugin>
818                 <groupId>org.codehaus.mojo</groupId>
819                 <artifactId>build-helper-maven-plugin</artifactId>
820                 <version>1.12</version>
821             </plugin>
822             <!-- Jacoco / Sonar -->
823             <plugin>
824                 <groupId>org.jacoco</groupId>
825                 <artifactId>jacoco-maven-plugin</artifactId>
826                 <version>${jacoco.version}</version>
827                 <executions>
828                     <execution>
829                         <id>pre-unit-test</id>
830                         <goals>
831                             <goal>prepare-agent</goal>
832                         </goals>
833                         <configuration>
834                             <!-- Sets the path to the file which contains the execution data. -->
835                             <destFile>${project.build.directory}/code-coverage/jacoco-ut.exec</destFile>
836                             <!-- Sets the name of the property containing the settings for JaCoCo runtime agent. -->
837                             <propertyName>surefireArgLine</propertyName>
838                         </configuration>
839                     </execution>
840                     <!-- Ensures that the code coverage report for unit tests is created after unit tests have been run. -->
841                     <execution>
842                         <id>post-unit-test</id>
843                         <phase>test</phase>
844                         <goals>
845                             <goal>report</goal>
846                         </goals>
847                         <configuration>
848                             <!-- Sets the path to the file which contains the execution data. -->
849                             <dataFile>${project.build.directory}/code-coverage/jacoco-ut.exec</dataFile>
850                             <!-- Sets the output directory for the code coverage report. -->
851                             <outputDirectory>${project.reporting.outputDirectory}/jacoco-ut</outputDirectory>
852                         </configuration>
853                     </execution>
854                     <execution>
855                         <id>pre-integration-test</id>
856                         <phase>pre-integration-test</phase>
857                         <goals>
858                             <goal>prepare-agent</goal>
859                         </goals>
860                         <configuration>
861                             <!-- Sets the path to the file which contains the execution data. -->
862                             <destFile>${project.build.directory}/code-coverage/jacoco-it.exec</destFile>
863                             <!-- Sets the name of the property containing the settings for JaCoCo runtime agent. -->
864                             <propertyName>failsafeArgLine</propertyName>
865                         </configuration>
866                     </execution>
867                     <!-- Ensures that the code coverage report for integration tests after integration tests have been run. -->
868                     <execution>
869                         <id>post-integration-test</id>
870                         <phase>post-integration-test</phase>
871                         <goals>
872                             <goal>report</goal>
873                         </goals>
874                         <configuration>
875                             <!-- Sets the path to the file which contains the execution data. -->
876                             <dataFile>${project.build.directory}/code-coverage/jacoco-it.exec</dataFile>
877                             <!-- Sets the output directory for the code coverage report. -->
878                             <outputDirectory>${project.reporting.outputDirectory}/jacoco-it</outputDirectory>
879                         </configuration>
880                     </execution>
881                     <execution>
882                         <id>default-prepare-agent</id>
883                         <goals>
884                             <goal>prepare-agent</goal>
885                         </goals>
886                     </execution>
887                     <execution>
888                         <id>default-report</id>
889                         <phase>prepare-package</phase>
890                         <goals>
891                             <goal>report</goal>
892                         </goals>
893                     </execution>
894                     <execution>
895                         <id>default-check</id>
896                         <goals>
897                             <goal>check</goal>
898                         </goals>
899                         <configuration>
900                             <rules>
901                                 <rule>
902                                     <element>PACKAGE</element>
903                                     <limits>
904                                         <limit>
905                                             <counter>COMPLEXITY</counter>
906                                             <value>COVEREDRATIO</value>
907                                             <minimum>0.0</minimum>
908                                         </limit>
909                                     </limits>
910                                 </rule>
911                             </rules>
912                         </configuration>
913                     </execution>
914                 </executions>
915             </plugin>
916             <plugin>
917                 <groupId>org.apache.maven.plugins</groupId>
918                 <artifactId>maven-surefire-plugin</artifactId>
919             </plugin>
920             <plugin>
921                 <groupId>org.apache.maven.plugins</groupId>
922                 <artifactId>maven-failsafe-plugin</artifactId>
923             </plugin>
924             <!-- end of plugins from oparent -->
925             <plugin>
926                 <groupId>org.apache.maven.plugins</groupId>
927                 <artifactId>maven-javadoc-plugin</artifactId>
928                 <executions>
929                     <execution>
930                         <id>attach-javadocs</id>
931                         <goals>
932                             <goal>jar</goal>
933                         </goals>
934                         <configuration>
935                             <additionalparam>-Xdoclint:none</additionalparam>
936                         </configuration>
937                     </execution>
938                 </executions>
939             </plugin>
940             <plugin>
941                 <artifactId>maven-enforcer-plugin</artifactId>
942                 <version>3.0.0-M2</version>
943                 <executions>
944                     <execution>
945                         <id>enforce-property</id>
946                         <goals>
947                             <goal>enforce</goal>
948                         </goals>
949                         <configuration>
950                             <rules>
951                                 <requireProperty>
952                                     <property>onap.nexus.url</property>
953                                     <message>You must set a onap.nexus.url property in your
954                                         ~/.m2/settings.xml. See oparent/settings.xml for an example.
955                                     </message>
956                                 </requireProperty>
957                             </rules>
958                             <fail>true</fail>
959                         </configuration>
960                     </execution>
961                     <execution>
962                         <id>enforce-no-snapshots</id>
963                         <goals>
964                             <goal>enforce</goal>
965                         </goals>
966                         <configuration>
967                             <rules>
968                                 <requireReleaseDeps>
969                                     <failWhenParentIsSnapshot>false</failWhenParentIsSnapshot>
970                                     <onlyWhenRelease>true</onlyWhenRelease>
971                                     <level>WARN</level>
972                                 </requireReleaseDeps>
973                             </rules>
974                         </configuration>
975                     </execution>
976                     <execution>
977                         <id>enforce-maven</id>
978                         <goals>
979                             <goal>enforce</goal>
980                         </goals>
981                         <configuration>
982                             <rules>
983                                 <requireJavaVersion>
984                                     <version>1.8.0</version>
985                                 </requireJavaVersion>
986                                 <requireMavenVersion>
987                                     <version>[3.5.0,)</version>
988                                 </requireMavenVersion>
989                             </rules>
990                         </configuration>
991                     </execution>
992                     <execution>
993                         <id>enforce-banned-dependencies</id>
994                         <goals>
995                             <goal>enforce</goal>
996                         </goals>
997                         <configuration>
998                             <rules>
999                                 <bannedDependencies>
1000                                     <message>Please always use mockito-core instead of mockito-all (see https://bugs.opendaylight.org/show_bug.cgi?id=7662), and spotbugs:annotations instead of findbugs:annotations</message>
1001                                     <excludes>
1002                                         <exclude>org.mockito:mockito-all</exclude>
1003                                         <!-- <exclude>com.google.code.findbugs:annotations</exclude> -->
1004                                     </excludes>
1005                                 </bannedDependencies>
1006                             </rules>
1007                             <fail>true</fail>
1008                         </configuration>
1009                     </execution>
1010                 </executions>
1011             </plugin>
1012             <plugin>
1013                 <groupId>pl.project13.maven</groupId>
1014                 <artifactId>git-commit-id-plugin</artifactId>
1015                 <version>4.0.0</version>
1016                 <configuration>
1017                     <commitIdGenerationMode>full</commitIdGenerationMode>
1018                     <includeOnlyProperties>
1019                         <includeOnlyProperty>^git.build.(time|version)$</includeOnlyProperty>
1020                         <includeOnlyProperty>^git.commit.id.(abbrev|full)$</includeOnlyProperty>
1021                     </includeOnlyProperties>
1022                 </configuration>
1023             </plugin>
1024         </plugins>
1025     </build>
1026
1027     <reporting>
1028         <plugins>
1029             <plugin>
1030                 <artifactId>maven-javadoc-plugin</artifactId>
1031                 <configuration>
1032                     <failOnError>false</failOnError>
1033                     <additionalparam>-Xdoclint:none</additionalparam>
1034                 </configuration>
1035             </plugin>
1036         </plugins>
1037     </reporting>
1038
1039     <profiles>
1040         <!-- Profiles from ONAP oparent -->
1041         <profile>
1042             <id>generate-json</id>
1043             <activation>
1044                 <file>
1045                     <exists>${swagger-properties}</exists>
1046                 </file>
1047                 <property>
1048                     <name>swagger-sdk.generate-json</name>
1049                 </property>
1050             </activation>
1051             <build>
1052                 <plugins>
1053                     <plugin>
1054                         <groupId>org.codehaus.mojo</groupId>
1055                         <artifactId>properties-maven-plugin</artifactId>
1056                         <version>1.0.0</version>
1057                         <executions>
1058                             <execution>
1059                                 <phase>initialize</phase>
1060                                 <goals>
1061                                     <goal>read-project-properties</goal>
1062                                 </goals>
1063                                 <configuration>
1064                                     <files>
1065                                         <file>${basedir}/src/main/resources/swagger.properties</file>
1066                                     </files>
1067                                 </configuration>
1068                             </execution>
1069                         </executions>
1070                     </plugin>
1071                     <plugin>
1072                         <groupId>com.github.kongchen</groupId>
1073                         <artifactId>swagger-maven-plugin</artifactId>
1074                         <version>3.1.4</version>
1075                         <configuration>
1076                             <apiSources>
1077                                 <apiSource>
1078                                     <locations>${api-rest-package}</locations>
1079                                     <schemes>http,https</schemes>
1080                                     <host>${api-host-ip}:${api-host-port}</host>
1081                                     <basePath>${api-base-path}</basePath>
1082                                     <info>
1083                                         <title>${api-title}</title>
1084                                         <version>${api-version}</version>
1085                                         <description>${api-description}</description>
1086                                         <license>
1087                                             <name>${api-license}</name>
1088                                         </license>
1089                                     </info>
1090                                     <swaggerDirectory>${basedir}/src/main/resources</swaggerDirectory>
1091                                 </apiSource>
1092                             </apiSources>
1093                         </configuration>
1094                         <executions>
1095                             <execution>
1096                                 <phase>compile</phase>
1097                                 <goals>
1098                                     <goal>generate</goal>
1099                                 </goals>
1100                             </execution>
1101                         </executions>
1102                     </plugin>
1103                     <plugin>
1104                         <groupId>org.apache.maven.plugins</groupId>
1105                         <artifactId>maven-install-plugin</artifactId>
1106                         <version>2.3.1</version>
1107                         <executions>
1108                             <execution>
1109                                 <id>install-file-id</id>
1110                                 <phase>install</phase>
1111                                 <goals>
1112                                     <goal>install-file</goal>
1113                                 </goals>
1114                                 <configuration>
1115                                     <file>${basedir}/src/main/resources/swagger.json</file>
1116                                     <groupId>${project.groupId}</groupId>
1117                                     <artifactId>${project.artifactId}-swagger-schema</artifactId>
1118                                     <version>${project.version}</version>
1119                                     <packaging>json</packaging>
1120                                 </configuration>
1121                             </execution>
1122                         </executions>
1123                     </plugin>
1124                 </plugins>
1125             </build>
1126         </profile>
1127         <profile>
1128             <id>generate-sdk</id>
1129             <activation>
1130                 <file>
1131                     <exists>${swagger-json}</exists>
1132                 </file>
1133                 <property>
1134                     <name>swagger-sdk.generate-java-sdk</name>
1135                 </property>
1136             </activation>
1137             <build>
1138                 <plugins>
1139                     <plugin>
1140                         <groupId>org.apache.maven.plugins</groupId>
1141                         <artifactId>maven-antrun-plugin</artifactId>
1142                         <version>1.8</version>
1143                         <executions>
1144                             <execution>
1145                                 <phase>initialize</phase>
1146                                 <id>ant-create-script</id>
1147                                 <configuration>
1148                                     <exportAntProperties>true</exportAntProperties>
1149                                     <tasks>
1150                                         <taskdef resource="net/sf/antcontrib/antlib.xml" classpathref="maven.plugin.classpath"/>
1151                                         <condition property="is_windows" value="true">
1152                                             <os family="windows"/>
1153                                         </condition>
1154                                         <condition property="isLinux" value="true">
1155                                             <os family="unix"/>
1156                                         </condition>
1157                                         <if>
1158                                             <equals arg1="${is_windows}" arg2="true"/>
1159                                             <then>
1160                                                 <property name="swagger.sdk.script.file" value="generated-source-script.bat"/>
1161                                                 <echo file="${project.build.directory}${file.separator}generated-source-script.bat" append="true"
1162                                                       message="cd ${project.build.directory}${file.separator}generated-sources${line.separator}"/>
1163                                                 <echo file="${project.build.directory}${file.separator}generated-source-script.bat" append="true"
1164                                                       message="mvn clean install -Dmaven.test.skip=true${line.separator}"/>
1165                                             </then>
1166                                             <else>
1167                                                 <property name="swagger.sdk.script.file" value="generated-source-script.sh"/>
1168                                                 <echo file="${project.build.directory}${file.separator}generated-source-script.sh" append="true"
1169                                                       message="cd ${project.build.directory}${file.separator}generated-sources${line.separator}"/>
1170                                                 <echo file="${project.build.directory}${file.separator}generated-source-script.sh" append="true"
1171                                                       message="mvn clean install -Dmaven.test.skip=true${line.separator}"/>
1172                                                 <chmod file="${project.build.directory}${file.separator}generated-source-script.sh" perm="755"/>
1173                                             </else>
1174                                         </if>
1175                                     </tasks>
1176                                 </configuration>
1177                                 <goals>
1178                                     <goal>run</goal>
1179                                 </goals>
1180                             </execution>
1181                         </executions>
1182                         <dependencies>
1183                             <dependency>
1184                                 <groupId>ant-contrib</groupId>
1185                                 <artifactId>ant-contrib</artifactId>
1186                                 <version>1.0b3</version>
1187                                 <exclusions>
1188                                     <exclusion>
1189                                         <groupId>ant</groupId>
1190                                         <artifactId>ant</artifactId>
1191                                     </exclusion>
1192                                 </exclusions>
1193                             </dependency>
1194                         </dependencies>
1195                     </plugin>
1196                     <plugin>
1197                         <groupId>io.swagger</groupId>
1198                         <artifactId>swagger-codegen-maven-plugin</artifactId>
1199                         <version>2.2.1</version>
1200                         <executions>
1201                             <execution>
1202                                 <goals>
1203                                     <goal>generate</goal>
1204                                 </goals>
1205                                 <configuration>
1206                                     <inputSpec>${basedir}/src/main/resources/swagger.json</inputSpec>
1207                                     <output>${project.build.directory}/generated-sources</output>
1208                                     <language>java</language>
1209                                     <configOptions>
1210                                         <dateLibrary>joda</dateLibrary>
1211                                     </configOptions>
1212                                     <library>jersey2</library>
1213                                     <groupId>${project.groupId}</groupId>
1214                                     <artifactId>${project.artifactId}-java-sdk</artifactId>
1215                                     <artifactVersion>${project.version}</artifactVersion>
1216                                     <modelPackage>${project.groupId}.${project.artifactId}.client.model</modelPackage>
1217                                     <apiPackage>${project.groupId}.${project.artifactId}.client.api</apiPackage>
1218                                     <invokerPackage>${project.groupId}.${project.artifactId}.client.invoker</invokerPackage>
1219                                 </configuration>
1220                             </execution>
1221                         </executions>
1222                     </plugin>
1223                     <plugin>
1224                         <groupId>org.codehaus.mojo</groupId>
1225                         <artifactId>exec-maven-plugin</artifactId>
1226                         <version>1.5.0</version>
1227                         <executions>
1228                             <execution>
1229                                 <id>swagger-generate-sources</id>
1230                                 <phase>generate-sources</phase>
1231                                 <goals>
1232                                     <goal>exec</goal>
1233                                 </goals>
1234                                 <configuration>
1235                                     <executable>${project.build.directory}${file.separator}${swagger.sdk.script.file}</executable>
1236                                 </configuration>
1237                             </execution>
1238                         </executions>
1239                     </plugin>
1240                     <plugin>
1241                         <groupId>org.apache.maven.plugins</groupId>
1242                         <artifactId>maven-clean-plugin</artifactId>
1243                         <version>3.0.0</version>
1244                         <executions>
1245                             <execution>
1246                                 <id>clean-generated-files</id>
1247                                 <phase>generate-sources</phase>
1248                                 <goals>
1249                                     <goal>clean</goal>
1250                                 </goals>
1251                                 <configuration>
1252                                     <filesets>
1253                                         <fileset>
1254                                             <directory>${project.build.directory}/generated-sources</directory>
1255                                         </fileset>
1256                                     </filesets>
1257                                 </configuration>
1258                             </execution>
1259                         </executions>
1260                     </plugin>
1261                 </plugins>
1262             </build>
1263             <dependencies>
1264                 <dependency>
1265                     <groupId>org.onap.msb.swagger-sdk</groupId>
1266                     <artifactId>swagger-sdk</artifactId>
1267                     <version>1.0.0</version>
1268                 </dependency>
1269             </dependencies>
1270         </profile>
1271         <profile>
1272             <id>sonar-jacoco-aggregate</id>
1273             <activation>
1274                 <property>
1275                     <name>onap.jacoco.aggregateFile</name>
1276                 </property>
1277             </activation>
1278             <build>
1279                 <plugins>
1280                     <plugin>
1281                         <groupId>org.jacoco</groupId>
1282                         <artifactId>jacoco-maven-plugin</artifactId>
1283                         <executions>
1284                             <execution>
1285                                 <id>merge</id>
1286                                 <goals>
1287                                     <goal>merge</goal>
1288                                 </goals>
1289                                 <phase>generate-resources</phase>
1290                                 <configuration>
1291                                     <destFile>${onap.jacoco.aggregateFile}</destFile>
1292                                     <fileSets>
1293                                         <fileSet>
1294                                             <directory>${project.basedir}</directory>
1295                                             <includes>
1296                                                 <include>**/target/code-coverage/*.exec</include>
1297                                             </includes>
1298                                         </fileSet>
1299                                     </fileSets>
1300                                 </configuration>
1301                             </execution>
1302                         </executions>
1303                     </plugin>
1304                 </plugins>
1305             </build>
1306         </profile>
1307         <!-- End of profiles from ONAP oparent -->
1308
1309         <profile>
1310             <id>yang-compile</id>
1311             <activation>
1312                 <file>
1313                     <exists>src/main/yang</exists>
1314                 </file>
1315             </activation>
1316             <build>
1317                 <plugins>
1318                     <plugin>
1319                         <groupId>org.opendaylight.yangtools</groupId>
1320                         <artifactId>yang-maven-plugin</artifactId>
1321                         <version>5.0.5</version>
1322                         <dependencies>
1323                             <dependency>
1324                                 <groupId>org.opendaylight.mdsal</groupId>
1325                                 <artifactId>maven-sal-api-gen-plugin</artifactId>
1326                                 <version>${odl.mdsal.model.version}</version>
1327                                 <type>jar</type>
1328                                 <scope>compile</scope>
1329                             </dependency>
1330                             <dependency>
1331                                 <groupId>org.opendaylight.netconf</groupId>
1332                                 <artifactId>sal-rest-docgen-maven</artifactId>
1333                                 <version>${odl.netconf.sal.rest.docgen.version}</version>
1334                                 <type>jar</type>
1335                             </dependency>
1336                         </dependencies>
1337                         <executions>
1338                             <execution>
1339                                 <id>binding</id>
1340                                 <goals>
1341                                     <goal>generate-sources</goal>
1342                                 </goals>
1343                                 <configuration>
1344                                     <yangFilesRootDir>${yang.file.directory}</yangFilesRootDir>
1345                                     <codeGenerators>
1346                                         <generator>
1347                                             <codeGeneratorClass>org.opendaylight.mdsal.binding.maven.api.gen.plugin.CodeGeneratorImpl</codeGeneratorClass>
1348                                             <outputBaseDir>${salGeneratorPath}</outputBaseDir>
1349                                         </generator>
1350                                         <!--
1351                                         <generator>
1352                                             <codeGeneratorClass>org.opendaylight.netconf.sal.rest.doc.maven.StaticDocGenerator</codeGeneratorClass>
1353                                             <outputBaseDir>target/swagger</outputBaseDir>
1354                                         </generator>
1355                                         -->
1356                                     </codeGenerators>
1357                                     <inspectDependencies>true</inspectDependencies>
1358                                 </configuration>
1359                             </execution>
1360                         </executions>
1361                     </plugin>
1362                 </plugins>
1363             </build>
1364         </profile>
1365     </profiles>
1366 </project>