ccsdk parents for alu-sr0
[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     <repositories>
234         <repository>
235             <id>onap-public</id>
236             <url>${onap.nexus.public-url}</url>
237             <releases>
238                 <enabled>true</enabled>
239                 <updatePolicy>never</updatePolicy>
240             </releases>
241             <snapshots>
242                 <enabled>true</enabled>
243                 <updatePolicy>always</updatePolicy>
244             </snapshots>
245         </repository>
246         <repository>
247             <id>onap-staging</id>
248             <url>${onap.nexus.staging-url}</url>
249             <releases>
250                 <enabled>true</enabled>
251                 <updatePolicy>never</updatePolicy>
252             </releases>
253             <snapshots>
254                 <enabled>true</enabled>
255                 <updatePolicy>always</updatePolicy>
256             </snapshots>
257         </repository>
258         <repository>
259             <id>ecomp-release</id>
260             <name>onap-repository-releases</name>
261             <url>${onap.nexus.release-url}</url>
262             <releases>
263                 <enabled>true</enabled>
264                 <updatePolicy>never</updatePolicy>
265             </releases>
266             <snapshots>
267                 <enabled>false</enabled>
268             </snapshots>
269         </repository>
270         <repository>
271             <id>ecomp-snapshot</id>
272             <name>onap-repository-snapshots</name>
273             <url>${onap.nexus.snapshot-url}</url>
274             <releases>
275                 <enabled>false</enabled>
276             </releases>
277             <snapshots>
278                 <enabled>true</enabled>
279             </snapshots>
280         </repository>
281         <repository>
282             <id>opendaylight-mirror</id>
283             <name>opendaylight-mirror</name>
284             <url>${opendaylight.nexus.public-url}</url>
285             <releases>
286                 <enabled>true</enabled>
287                 <updatePolicy>never</updatePolicy>
288             </releases>
289             <snapshots>
290                 <enabled>false</enabled>
291             </snapshots>
292         </repository>
293         <repository>
294             <id>opendaylight-snapshot</id>
295             <name>opendaylight-snapshot</name>
296             <url>${opendaylight.nexus.snapshot-url}</url>
297             <releases>
298                 <enabled>false</enabled>
299             </releases>
300             <snapshots>
301                 <enabled>true</enabled>
302             </snapshots>
303         </repository>
304
305     </repositories>
306     <pluginRepositories>
307         <pluginRepository>
308             <id>onap-public</id>
309             <url>${onap.nexus.public-url}</url>
310             <releases>
311                 <enabled>true</enabled>
312             </releases>
313             <snapshots>
314                 <enabled>true</enabled>
315             </snapshots>
316         </pluginRepository>
317         <pluginRepository>
318             <id>onap-staging</id>
319             <url>${onap.nexus.staging-url}</url>
320             <releases>
321                 <enabled>true</enabled>
322             </releases>
323             <snapshots>
324                 <enabled>true</enabled>
325             </snapshots>
326         </pluginRepository>
327         <pluginRepository>
328             <id>onap-snapshot</id>
329             <url>${onap.nexus.snapshot-url}</url>
330             <releases>
331                 <enabled>false</enabled>
332             </releases>
333             <snapshots>
334                 <enabled>true</enabled>
335             </snapshots>
336         </pluginRepository>
337         <pluginRepository>
338             <id>opendaylight-mirror</id>
339             <name>opendaylight-mirror</name>
340             <url>${opendaylight.nexus.public-url}</url>
341             <releases>
342                 <enabled>true</enabled>
343                 <updatePolicy>never</updatePolicy>
344             </releases>
345             <snapshots>
346                 <enabled>false</enabled>
347             </snapshots>
348         </pluginRepository>
349         <pluginRepository>
350             <id>opendaylight-snapshot</id>
351             <name>opendaylight-snapshot</name>
352             <url>${opendaylight.nexus.snapshot-url}</url>
353             <releases>
354                 <enabled>false</enabled>
355             </releases>
356             <snapshots>
357                 <enabled>true</enabled>
358             </snapshots>
359         </pluginRepository>
360         <!-- Black Duck plugin dependencies -->
361         <pluginRepository>
362             <id>JCenter</id>
363             <name>JCenter Repository</name>
364             <url>http://jcenter.bintray.com</url>
365         </pluginRepository>
366
367         <pluginRepository>
368             <id>Restlet</id>
369             <name>Restlet Repository</name>
370             <url>http://maven.restlet.com</url>
371         </pluginRepository>
372     </pluginRepositories>
373
374     <build>
375         <pluginManagement>
376             <plugins>
377                 <!-- Plugins from ONAP version (parent of oparent) -->
378                 <plugin>
379                     <groupId>org.apache.maven.plugins</groupId>
380                     <artifactId>maven-deploy-plugin</artifactId>
381                     <!-- This version supports the "deployAtEnd" parameter -->
382                     <version>2.8</version>
383                     <configuration>
384                         <skip/>
385                         <deployAtEnd>true</deployAtEnd>
386                     </configuration>
387                 </plugin>
388                 <plugin>
389                     <groupId>org.apache.maven.plugins</groupId>
390                     <artifactId>maven-site-plugin</artifactId>
391                     <version>3.6</version>
392                     <dependencies>
393                         <dependency>
394                             <groupId>org.apache.maven.wagon</groupId>
395                             <artifactId>wagon-webdav-jackrabbit</artifactId>
396                             <version>2.10</version>
397                         </dependency>
398                     </dependencies>
399                 </plugin>
400                 <plugin>
401                     <groupId>org.apache.maven.plugins</groupId>
402                     <artifactId>maven-enforcer-plugin</artifactId>
403                     <version>3.0.0-M2</version>
404                     <executions>
405                         <execution>
406                             <id>enforce-property</id>
407                             <goals>
408                                 <goal>enforce</goal>
409                             </goals>
410                             <configuration>
411                                 <rules>
412                                     <requireProperty>
413                                         <property>onap.nexus.url</property>
414                                         <message>You must set a onap.nexus.url property in your
415                                             ~/.m2/settings.xml. See oparent/settings.xml for an example.
416                                         </message>
417                                     </requireProperty>
418                                 </rules>
419                                 <fail>true</fail>
420                             </configuration>
421                         </execution>
422                         <execution>
423                             <id>enforce-no-snapshots</id>
424                             <goals>
425                                 <goal>enforce</goal>
426                             </goals>
427                             <configuration>
428                                 <rules>
429                                     <requireReleaseDeps>
430                                         <failWhenParentIsSnapshot>false</failWhenParentIsSnapshot>
431                                         <onlyWhenRelease>true</onlyWhenRelease>
432                                         <level>WARN</level>
433                                     </requireReleaseDeps>
434                                 </rules>
435                             </configuration>
436                         </execution>
437                         <execution>
438                             <id>enforce-maven</id>
439                             <goals>
440                                 <goal>enforce</goal>
441                             </goals>
442                             <configuration>
443                                 <rules>
444                                     <requireJavaVersion>
445                                         <version>8</version>
446                                     </requireJavaVersion>
447                                     <requireMavenVersion>
448                                         <version>[3.5.0,)</version>
449                                     </requireMavenVersion>
450                                 </rules>
451                             </configuration>
452                         </execution>
453                         <execution>
454                             <id>enforce-banned-dependencies</id>
455                             <goals>
456                                 <goal>enforce</goal>
457                             </goals>
458                             <configuration>
459                                 <rules>
460                                     <bannedDependencies>
461                                         <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>
462                                         <excludes>
463                                             <exclude>org.mockito:mockito-all</exclude>
464                                             <!--                     <exclude>com.google.code.findbugs:annotations</exclude> -->
465                                         </excludes>
466                                     </bannedDependencies>
467                                 </rules>
468                                 <fail>true</fail>
469                             </configuration>
470                         </execution>
471                     </executions>
472                 </plugin>
473                 <!-- https://mvnrepository.com/artifact/org.sonarsource.scanner.maven/sonar-maven-plugin -->
474                 <plugin>
475                     <groupId>org.sonarsource.scanner.maven</groupId>
476                     <artifactId>sonar-maven-plugin</artifactId>
477                     <version>${sonar.scanner.version}</version>
478                 </plugin>
479                 <!-- end of plugins from ONAP version (parent of oparent) -->
480                 <!-- Plugins from ONAP oparent -->
481                 <plugin>
482                     <groupId>org.apache.maven.plugins</groupId>
483                     <artifactId>maven-surefire-plugin</artifactId>
484                     <version>${maven-surefire-plugin.version}</version>
485                     <configuration>
486                         <!-- Sets the VM argument line used when unit tests are run. -->
487                         <argLine>${surefireArgLine}</argLine>
488                         <!-- Excludes integration tests when unit tests are run. -->
489                         <excludes>
490                             <exclude>**/IT*.java</exclude>
491                         </excludes>
492                     </configuration>
493                 </plugin>
494                 <plugin>
495                     <groupId>org.apache.maven.plugins</groupId>
496                     <artifactId>maven-failsafe-plugin</artifactId>
497                     <version>${maven-failsafe-plugin.version}</version>
498                     <executions>
499                         <!-- Ensures that both integration-test and verify goals of the Failsafe
500                             Maven plugin are executed. -->
501                         <execution>
502                             <id>integration-tests</id>
503                             <goals>
504                                 <goal>integration-test</goal>
505                                 <goal>verify</goal>
506                             </goals>
507                             <configuration>
508                                 <!-- Sets the VM argument line used when integration tests are run. -->
509                                 <argLine>${failsafeArgLine}</argLine>
510                             </configuration>
511                         </execution>
512                     </executions>
513                 </plugin>
514
515                 <!-- End of plugins from ONAP oparent -->
516                 <plugin>
517                     <groupId>org.codehaus.mojo</groupId>
518                     <artifactId>properties-maven-plugin</artifactId>
519                     <version>1.0.0</version>
520                     <executions>
521                         <execution>
522                             <goals>
523                                 <goal>set-system-properties</goal>
524                             </goals>
525                             <configuration>
526                                 <properties>
527                                     <property>
528                                         <name>maven.wagon.http.ssl.allowall</name>
529                                         <value>${ssl.allowall}</value>
530                                     </property>
531                                     <property>
532                                         <name>maven.wagon.http.ssl.insecure</name>
533                                         <value>${ssl.insecure}</value>
534                                     </property>
535                                 </properties>
536                             </configuration>
537                         </execution>
538                     </executions>
539                 </plugin>
540
541                 <plugin>
542                     <groupId>org.codehaus.mojo</groupId>
543                     <artifactId>versions-maven-plugin</artifactId>
544                     <version>2.5</version>
545                     <configuration>
546                         <processAllModules>true</processAllModules>
547                     </configuration>
548                 </plugin>
549                 <plugin>
550                     <artifactId>maven-scm-plugin</artifactId>
551                     <version>1.8.1</version>
552                     <configuration>
553                         <tag>${project.artifactId}-${project.version}</tag>
554                     </configuration>
555                 </plugin>
556                 <plugin>
557                     <groupId>com.github.ferstl</groupId>
558                     <artifactId>depgraph-maven-plugin</artifactId>
559                     <version>3.3.0</version>
560                     <configuration>
561                         <graphFormat>text</graphFormat>
562                         <outputFileName>${dependency-list.file}</outputFileName>
563                         <outputDirectory>${project.basedir}</outputDirectory>
564                         <transitiveExcludes>*</transitiveExcludes>
565                         <showVersions>true</showVersions>
566                         <showGroupIds>true</showGroupIds>
567                     </configuration>
568                 </plugin>
569                 <plugin>
570                     <groupId>de.jacks-it-lab</groupId>
571                     <artifactId>frontend-maven-plugin</artifactId>
572                     <version>1.7.2</version>
573                 </plugin>
574                 <plugin>
575                     <groupId>com.github.alexcojocaru</groupId>
576                     <artifactId>elasticsearch-maven-plugin</artifactId>
577                     <version>6.16</version>
578                     <configuration>
579                         <version>7.1.1</version>
580                     </configuration>
581                 </plugin>
582                 <plugin>
583                     <groupId>org.apache.maven.plugins</groupId>
584                     <artifactId>maven-javadoc-plugin</artifactId>
585                     <version>3.2.0</version>
586                     <configuration>
587                         <failOnError>false</failOnError>
588                     </configuration>
589                 </plugin>
590                 <plugin>
591                     <artifactId>maven-checkstyle-plugin</artifactId>
592                     <executions>
593                         <execution>
594                             <phase>process-sources</phase>
595                             <goals>
596                                 <goal>check</goal>
597                             </goals>
598                             <configuration>
599                                 <failOnViolation>false</failOnViolation>
600                                 <skip>false</skip>
601                             </configuration>
602                         </execution>
603                     </executions>
604                 </plugin>
605                 <plugin>
606                     <groupId>com.github.spotbugs</groupId>
607                     <artifactId>spotbugs-maven-plugin</artifactId>
608                     <version>3.1.12.2</version>
609                     <executions>
610                         <execution>
611                             <id>analyze-compile</id>
612                             <phase>compile</phase>
613                             <goals>
614                                 <goal>check</goal>
615                             </goals>
616                             <configuration>
617                                 <plugins>
618                                     <plugin>
619                                         <groupId>jp.skypencil.findbugs.slf4j</groupId>
620                                         <artifactId>bug-pattern</artifactId>
621                                         <version>1.5.0</version>
622                                     </plugin>
623                                 </plugins>
624                                 <effort>Max</effort>
625                                 <threshold>Low</threshold>
626                                 <failOnError>false</failOnError>
627                                 <skip>true</skip>
628                                 <excludeFilterFile>spotbugs-exclude.xml</excludeFilterFile>
629                                 <xmlOutput>true</xmlOutput>
630                                 <findbugsXmlOutputDirectory>/home/jack/onap/onap-sdnr/features/sdnr/wt-aluminium-sr0-2/target/wt/common/target-ide/spotbugs</findbugsXmlOutputDirectory>
631                             </configuration>
632                         </execution>
633                     </executions>
634                     <dependencies>
635                         <dependency>
636                             <groupId>com.github.spotbugs</groupId>
637                             <artifactId>spotbugs</artifactId>
638                             <version>3.1.12</version>
639                             <scope>compile</scope>
640                         </dependency>
641                         <dependency>
642                             <groupId>org.opendaylight.odlparent</groupId>
643                             <artifactId>spotbugs</artifactId>
644                             <version>7.0.5</version>
645                             <scope>compile</scope>
646                         </dependency>
647                         <dependency>
648                             <groupId>org.slf4j</groupId>
649                             <artifactId>slf4j-simple</artifactId>
650                             <version>1.8.0-beta2</version>
651                             <scope>compile</scope>
652                         </dependency>
653                     </dependencies>
654                     <configuration>
655                         <plugins>
656                             <plugin>
657                                 <groupId>jp.skypencil.findbugs.slf4j</groupId>
658                                 <artifactId>bug-pattern</artifactId>
659                                 <version>1.5.0</version>
660                             </plugin>
661                         </plugins>
662                         <effort>Max</effort>
663                         <threshold>Low</threshold>
664                         <failOnError>false</failOnError>
665                         <skip>true</skip>
666                         <excludeFilterFile>spotbugs-exclude.xml</excludeFilterFile>
667                         <xmlOutput>true</xmlOutput>
668                         <findbugsXmlOutputDirectory>/home/jack/onap/onap-sdnr/features/sdnr/wt-aluminium-sr0-2/target/wt/common/target-ide/spotbugs</findbugsXmlOutputDirectory>
669                     </configuration>
670                 </plugin>
671                 <plugin>
672                     <artifactId>maven-checkstyle-plugin</artifactId>
673                     <version>${checkstyle.plugin.version}</version>
674                     <dependencies>
675                         <dependency>
676                             <groupId>org.onap.oparent</groupId>
677                             <artifactId>checkstyle</artifactId>
678                             <version>1.2.2</version>
679                         </dependency>
680                     </dependencies>
681                     <executions>
682                         <execution>
683                             <id>check-license</id>
684                             <goals>
685                                 <goal>check</goal>
686                             </goals>
687                             <phase>process-sources</phase>
688                             <configuration>
689                                 <configLocation>onap-checkstyle/check-license.xml</configLocation>
690                                 <includeResources>false</includeResources>
691                                 <includeTestSourceDirectory>true</includeTestSourceDirectory>
692                                 <includeTestResources>false</includeTestResources>
693                                 <sourceDirectories>
694                                     <directory>${project.build.sourceDirectory}</directory>
695                                 </sourceDirectories>
696                                 <excludes>
697                                 </excludes>
698                                 <consoleOutput>true</consoleOutput>
699                                 <failOnViolation>false</failOnViolation>
700                             </configuration>
701                         </execution>
702                         <execution>
703                             <id>onap-java-style</id>
704                             <goals>
705                                 <goal>check</goal>
706                             </goals>
707                             <phase>process-sources</phase>
708                             <configuration>
709                                 <!-- Use Google Java Style Guide: https://github.com/checkstyle/checkstyle/blob/master/src/main/resources/google_checks.xml
710                                     with minor changes -->
711                                 <configLocation>onap-checkstyle/onap-java-style.xml</configLocation>
712                                 <!-- <sourceDirectory> is needed so that checkstyle ignores the generated sources directory -->
713                                 <sourceDirectories>
714                                     <directory>${project.build.sourceDirectory}/src/main/java</directory>
715                                 </sourceDirectories>
716                                 <includeResources>true</includeResources>
717                                 <includeTestSourceDirectory>true</includeTestSourceDirectory>
718                                 <includeTestResources>true</includeTestResources>
719                                 <excludes>
720                                 </excludes>
721                                 <consoleOutput>true</consoleOutput>
722                                 <failOnViolation>false</failOnViolation>
723                             </configuration>
724                         </execution>
725                     </executions>
726                 </plugin>
727             </plugins>
728         </pluginManagement>
729         <plugins>
730             <!-- Plugins from oparent version (parent of oparent) -->
731             <plugin>
732                 <groupId>org.apache.maven.plugins</groupId>
733                 <artifactId>maven-deploy-plugin</artifactId>
734             </plugin>
735             <plugin>
736                 <groupId>org.apache.maven.plugins</groupId>
737                 <artifactId>maven-site-plugin</artifactId>
738                 <!--
739                 <configuration>
740                     <reportPlugins>
741                         <reportPlugin>
742                             <groupId>org.apache.maven.plugins</groupId>
743                             <artifactId>maven-checkstyle-plugin</artifactId>
744                             <version>${checkstyle.plugin.version}</version>
745                         </reportPlugin>
746                     </reportPlugins>
747                 </configuration>
748                 -->
749             </plugin>
750             <!-- end of plugins from oparent version (parent of oparent) -->
751
752             <!-- Plugins from oparent -->
753             <plugin>
754                 <artifactId>maven-checkstyle-plugin</artifactId>
755                 <version>${checkstyle.plugin.version}</version>
756                 <dependencies>
757                     <dependency>
758                         <groupId>org.onap.oparent</groupId>
759                         <artifactId>checkstyle</artifactId>
760                         <version>1.2.2</version>
761                     </dependency>
762                 </dependencies>
763                 <executions>
764                     <execution>
765                         <id>onap-license</id>
766                         <goals>
767                             <goal>check</goal>
768                         </goals>
769                         <phase>process-sources</phase>
770                         <configuration>
771                             <configLocation>onap-checkstyle/check-license.xml</configLocation>
772                             <includeResources>false</includeResources>
773                             <includeTestSourceDirectory>true</includeTestSourceDirectory>
774                             <includeTestResources>false</includeTestResources>
775                             <sourceDirectories>
776                                 <directory>${project.build.sourceDirectory}</directory>
777                             </sourceDirectories>
778                             <excludes>
779                             </excludes>
780                             <consoleOutput>true</consoleOutput>
781                             <failOnViolation>false</failOnViolation>
782                         </configuration>
783                     </execution>
784                     <execution>
785                         <id>onap-java-style</id>
786                         <goals>
787                             <goal>check</goal>
788                         </goals>
789                         <phase>process-sources</phase>
790                         <configuration>
791                             <!-- Use Google Java Style Guide: https://github.com/checkstyle/checkstyle/blob/master/src/main/resources/google_checks.xml
792                                 with minor changes -->
793                             <configLocation>onap-checkstyle/onap-java-style.xml</configLocation>
794                             <!-- <sourceDirectory> is needed so that checkstyle ignores the generated sources directory -->
795                             <sourceDirectories>
796                                 <directory>${project.build.sourceDirectory}/src/main/java</directory>
797                             </sourceDirectories>
798                             <includeResources>true</includeResources>
799                             <includeTestSourceDirectory>true</includeTestSourceDirectory>
800                             <includeTestResources>true</includeTestResources>
801                             <excludes>
802                             </excludes>
803                             <consoleOutput>true</consoleOutput>
804                             <failOnViolation>false</failOnViolation>
805                         </configuration>
806                     </execution>
807                 </executions>
808             </plugin>
809             <plugin>
810                 <groupId>org.codehaus.mojo</groupId>
811                 <artifactId>build-helper-maven-plugin</artifactId>
812                 <version>1.12</version>
813             </plugin>
814             <!-- Jacoco / Sonar -->
815             <plugin>
816                 <groupId>org.jacoco</groupId>
817                 <artifactId>jacoco-maven-plugin</artifactId>
818                 <version>${jacoco.version}</version>
819                 <executions>
820                     <execution>
821                         <id>pre-unit-test</id>
822                         <goals>
823                             <goal>prepare-agent</goal>
824                         </goals>
825                         <configuration>
826                             <!-- Sets the path to the file which contains the execution data. -->
827                             <destFile>${project.build.directory}/code-coverage/jacoco-ut.exec</destFile>
828                             <!-- Sets the name of the property containing the settings for JaCoCo runtime agent. -->
829                             <propertyName>surefireArgLine</propertyName>
830                         </configuration>
831                     </execution>
832                     <!-- Ensures that the code coverage report for unit tests is created after unit tests have been run. -->
833                     <execution>
834                         <id>post-unit-test</id>
835                         <phase>test</phase>
836                         <goals>
837                             <goal>report</goal>
838                         </goals>
839                         <configuration>
840                             <!-- Sets the path to the file which contains the execution data. -->
841                             <dataFile>${project.build.directory}/code-coverage/jacoco-ut.exec</dataFile>
842                             <!-- Sets the output directory for the code coverage report. -->
843                             <outputDirectory>${project.reporting.outputDirectory}/jacoco-ut</outputDirectory>
844                         </configuration>
845                     </execution>
846                     <execution>
847                         <id>pre-integration-test</id>
848                         <phase>pre-integration-test</phase>
849                         <goals>
850                             <goal>prepare-agent</goal>
851                         </goals>
852                         <configuration>
853                             <!-- Sets the path to the file which contains the execution data. -->
854                             <destFile>${project.build.directory}/code-coverage/jacoco-it.exec</destFile>
855                             <!-- Sets the name of the property containing the settings for JaCoCo runtime agent. -->
856                             <propertyName>failsafeArgLine</propertyName>
857                         </configuration>
858                     </execution>
859                     <!-- Ensures that the code coverage report for integration tests after integration tests have been run. -->
860                     <execution>
861                         <id>post-integration-test</id>
862                         <phase>post-integration-test</phase>
863                         <goals>
864                             <goal>report</goal>
865                         </goals>
866                         <configuration>
867                             <!-- Sets the path to the file which contains the execution data. -->
868                             <dataFile>${project.build.directory}/code-coverage/jacoco-it.exec</dataFile>
869                             <!-- Sets the output directory for the code coverage report. -->
870                             <outputDirectory>${project.reporting.outputDirectory}/jacoco-it</outputDirectory>
871                         </configuration>
872                     </execution>
873                     <execution>
874                         <id>default-prepare-agent</id>
875                         <goals>
876                             <goal>prepare-agent</goal>
877                         </goals>
878                     </execution>
879                     <execution>
880                         <id>default-report</id>
881                         <phase>prepare-package</phase>
882                         <goals>
883                             <goal>report</goal>
884                         </goals>
885                     </execution>
886                     <execution>
887                         <id>default-check</id>
888                         <goals>
889                             <goal>check</goal>
890                         </goals>
891                         <configuration>
892                             <rules>
893                                 <rule>
894                                     <element>PACKAGE</element>
895                                     <limits>
896                                         <limit>
897                                             <counter>COMPLEXITY</counter>
898                                             <value>COVEREDRATIO</value>
899                                             <minimum>0.0</minimum>
900                                         </limit>
901                                     </limits>
902                                 </rule>
903                             </rules>
904                         </configuration>
905                     </execution>
906                 </executions>
907             </plugin>
908             <plugin>
909                 <groupId>org.apache.maven.plugins</groupId>
910                 <artifactId>maven-surefire-plugin</artifactId>
911             </plugin>
912             <plugin>
913                 <groupId>org.apache.maven.plugins</groupId>
914                 <artifactId>maven-failsafe-plugin</artifactId>
915             </plugin>
916             <!-- end of plugins from oparent -->
917             <plugin>
918                 <groupId>org.apache.maven.plugins</groupId>
919                 <artifactId>maven-javadoc-plugin</artifactId>
920                 <executions>
921                     <execution>
922                         <id>attach-javadocs</id>
923                         <goals>
924                             <goal>jar</goal>
925                         </goals>
926                         <configuration>
927                             <additionalparam>-Xdoclint:none</additionalparam>
928                         </configuration>
929                     </execution>
930                 </executions>
931             </plugin>
932             <plugin>
933                 <artifactId>maven-enforcer-plugin</artifactId>
934                 <version>3.0.0-M2</version>
935                 <executions>
936                     <execution>
937                         <id>enforce-property</id>
938                         <goals>
939                             <goal>enforce</goal>
940                         </goals>
941                         <configuration>
942                             <rules>
943                                 <requireProperty>
944                                     <property>onap.nexus.url</property>
945                                     <message>You must set a onap.nexus.url property in your
946                                         ~/.m2/settings.xml. See oparent/settings.xml for an example.
947                                     </message>
948                                 </requireProperty>
949                             </rules>
950                             <fail>true</fail>
951                         </configuration>
952                     </execution>
953                     <execution>
954                         <id>enforce-no-snapshots</id>
955                         <goals>
956                             <goal>enforce</goal>
957                         </goals>
958                         <configuration>
959                             <rules>
960                                 <requireReleaseDeps>
961                                     <failWhenParentIsSnapshot>false</failWhenParentIsSnapshot>
962                                     <onlyWhenRelease>true</onlyWhenRelease>
963                                     <level>WARN</level>
964                                 </requireReleaseDeps>
965                             </rules>
966                         </configuration>
967                     </execution>
968                     <execution>
969                         <id>enforce-maven</id>
970                         <goals>
971                             <goal>enforce</goal>
972                         </goals>
973                         <configuration>
974                             <rules>
975                                 <requireJavaVersion>
976                                     <version>1.8.0</version>
977                                 </requireJavaVersion>
978                                 <requireMavenVersion>
979                                     <version>[3.5.0,)</version>
980                                 </requireMavenVersion>
981                             </rules>
982                         </configuration>
983                     </execution>
984                     <execution>
985                         <id>enforce-banned-dependencies</id>
986                         <goals>
987                             <goal>enforce</goal>
988                         </goals>
989                         <configuration>
990                             <rules>
991                                 <bannedDependencies>
992                                     <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>
993                                     <excludes>
994                                         <exclude>org.mockito:mockito-all</exclude>
995                                         <!-- <exclude>com.google.code.findbugs:annotations</exclude> -->
996                                     </excludes>
997                                 </bannedDependencies>
998                             </rules>
999                             <fail>true</fail>
1000                         </configuration>
1001                     </execution>
1002                 </executions>
1003             </plugin>
1004             <plugin>
1005                 <groupId>pl.project13.maven</groupId>
1006                 <artifactId>git-commit-id-plugin</artifactId>
1007                 <version>4.0.0</version>
1008                 <configuration>
1009                     <commitIdGenerationMode>full</commitIdGenerationMode>
1010                     <includeOnlyProperties>
1011                         <includeOnlyProperty>^git.build.(time|version)$</includeOnlyProperty>
1012                         <includeOnlyProperty>^git.commit.id.(abbrev|full)$</includeOnlyProperty>
1013                     </includeOnlyProperties>
1014                 </configuration>
1015             </plugin>
1016         </plugins>
1017     </build>
1018
1019     <reporting>
1020         <plugins>
1021             <plugin>
1022                 <artifactId>maven-javadoc-plugin</artifactId>
1023                 <configuration>
1024                     <failOnError>false</failOnError>
1025                     <additionalparam>-Xdoclint:none</additionalparam>
1026                 </configuration>
1027             </plugin>
1028         </plugins>
1029     </reporting>
1030
1031     <profiles>
1032         <!-- Profiles from ONAP oparent -->
1033         <profile>
1034             <id>generate-json</id>
1035             <activation>
1036                 <file>
1037                     <exists>${swagger-properties}</exists>
1038                 </file>
1039                 <property>
1040                     <name>swagger-sdk.generate-json</name>
1041                 </property>
1042             </activation>
1043             <build>
1044                 <plugins>
1045                     <plugin>
1046                         <groupId>org.codehaus.mojo</groupId>
1047                         <artifactId>properties-maven-plugin</artifactId>
1048                         <version>1.0.0</version>
1049                         <executions>
1050                             <execution>
1051                                 <phase>initialize</phase>
1052                                 <goals>
1053                                     <goal>read-project-properties</goal>
1054                                 </goals>
1055                                 <configuration>
1056                                     <files>
1057                                         <file>${basedir}/src/main/resources/swagger.properties</file>
1058                                     </files>
1059                                 </configuration>
1060                             </execution>
1061                         </executions>
1062                     </plugin>
1063                     <plugin>
1064                         <groupId>com.github.kongchen</groupId>
1065                         <artifactId>swagger-maven-plugin</artifactId>
1066                         <version>3.1.4</version>
1067                         <configuration>
1068                             <apiSources>
1069                                 <apiSource>
1070                                     <locations>${api-rest-package}</locations>
1071                                     <schemes>http,https</schemes>
1072                                     <host>${api-host-ip}:${api-host-port}</host>
1073                                     <basePath>${api-base-path}</basePath>
1074                                     <info>
1075                                         <title>${api-title}</title>
1076                                         <version>${api-version}</version>
1077                                         <description>${api-description}</description>
1078                                         <license>
1079                                             <name>${api-license}</name>
1080                                         </license>
1081                                     </info>
1082                                     <swaggerDirectory>${basedir}/src/main/resources</swaggerDirectory>
1083                                 </apiSource>
1084                             </apiSources>
1085                         </configuration>
1086                         <executions>
1087                             <execution>
1088                                 <phase>compile</phase>
1089                                 <goals>
1090                                     <goal>generate</goal>
1091                                 </goals>
1092                             </execution>
1093                         </executions>
1094                     </plugin>
1095                     <plugin>
1096                         <groupId>org.apache.maven.plugins</groupId>
1097                         <artifactId>maven-install-plugin</artifactId>
1098                         <version>2.3.1</version>
1099                         <executions>
1100                             <execution>
1101                                 <id>install-file-id</id>
1102                                 <phase>install</phase>
1103                                 <goals>
1104                                     <goal>install-file</goal>
1105                                 </goals>
1106                                 <configuration>
1107                                     <file>${basedir}/src/main/resources/swagger.json</file>
1108                                     <groupId>${project.groupId}</groupId>
1109                                     <artifactId>${project.artifactId}-swagger-schema</artifactId>
1110                                     <version>${project.version}</version>
1111                                     <packaging>json</packaging>
1112                                 </configuration>
1113                             </execution>
1114                         </executions>
1115                     </plugin>
1116                 </plugins>
1117             </build>
1118         </profile>
1119         <profile>
1120             <id>generate-sdk</id>
1121             <activation>
1122                 <file>
1123                     <exists>${swagger-json}</exists>
1124                 </file>
1125                 <property>
1126                     <name>swagger-sdk.generate-java-sdk</name>
1127                 </property>
1128             </activation>
1129             <build>
1130                 <plugins>
1131                     <plugin>
1132                         <groupId>org.apache.maven.plugins</groupId>
1133                         <artifactId>maven-antrun-plugin</artifactId>
1134                         <version>1.8</version>
1135                         <executions>
1136                             <execution>
1137                                 <phase>initialize</phase>
1138                                 <id>ant-create-script</id>
1139                                 <configuration>
1140                                     <exportAntProperties>true</exportAntProperties>
1141                                     <tasks>
1142                                         <taskdef resource="net/sf/antcontrib/antlib.xml" classpathref="maven.plugin.classpath"/>
1143                                         <condition property="is_windows" value="true">
1144                                             <os family="windows"/>
1145                                         </condition>
1146                                         <condition property="isLinux" value="true">
1147                                             <os family="unix"/>
1148                                         </condition>
1149                                         <if>
1150                                             <equals arg1="${is_windows}" arg2="true"/>
1151                                             <then>
1152                                                 <property name="swagger.sdk.script.file" value="generated-source-script.bat"/>
1153                                                 <echo file="${project.build.directory}${file.separator}generated-source-script.bat" append="true"
1154                                                       message="cd ${project.build.directory}${file.separator}generated-sources${line.separator}"/>
1155                                                 <echo file="${project.build.directory}${file.separator}generated-source-script.bat" append="true"
1156                                                       message="mvn clean install -Dmaven.test.skip=true${line.separator}"/>
1157                                             </then>
1158                                             <else>
1159                                                 <property name="swagger.sdk.script.file" value="generated-source-script.sh"/>
1160                                                 <echo file="${project.build.directory}${file.separator}generated-source-script.sh" append="true"
1161                                                       message="cd ${project.build.directory}${file.separator}generated-sources${line.separator}"/>
1162                                                 <echo file="${project.build.directory}${file.separator}generated-source-script.sh" append="true"
1163                                                       message="mvn clean install -Dmaven.test.skip=true${line.separator}"/>
1164                                                 <chmod file="${project.build.directory}${file.separator}generated-source-script.sh" perm="755"/>
1165                                             </else>
1166                                         </if>
1167                                     </tasks>
1168                                 </configuration>
1169                                 <goals>
1170                                     <goal>run</goal>
1171                                 </goals>
1172                             </execution>
1173                         </executions>
1174                         <dependencies>
1175                             <dependency>
1176                                 <groupId>ant-contrib</groupId>
1177                                 <artifactId>ant-contrib</artifactId>
1178                                 <version>1.0b3</version>
1179                                 <exclusions>
1180                                     <exclusion>
1181                                         <groupId>ant</groupId>
1182                                         <artifactId>ant</artifactId>
1183                                     </exclusion>
1184                                 </exclusions>
1185                             </dependency>
1186                         </dependencies>
1187                     </plugin>
1188                     <plugin>
1189                         <groupId>io.swagger</groupId>
1190                         <artifactId>swagger-codegen-maven-plugin</artifactId>
1191                         <version>2.2.1</version>
1192                         <executions>
1193                             <execution>
1194                                 <goals>
1195                                     <goal>generate</goal>
1196                                 </goals>
1197                                 <configuration>
1198                                     <inputSpec>${basedir}/src/main/resources/swagger.json</inputSpec>
1199                                     <output>${project.build.directory}/generated-sources</output>
1200                                     <language>java</language>
1201                                     <configOptions>
1202                                         <dateLibrary>joda</dateLibrary>
1203                                     </configOptions>
1204                                     <library>jersey2</library>
1205                                     <groupId>${project.groupId}</groupId>
1206                                     <artifactId>${project.artifactId}-java-sdk</artifactId>
1207                                     <artifactVersion>${project.version}</artifactVersion>
1208                                     <modelPackage>${project.groupId}.${project.artifactId}.client.model</modelPackage>
1209                                     <apiPackage>${project.groupId}.${project.artifactId}.client.api</apiPackage>
1210                                     <invokerPackage>${project.groupId}.${project.artifactId}.client.invoker</invokerPackage>
1211                                 </configuration>
1212                             </execution>
1213                         </executions>
1214                     </plugin>
1215                     <plugin>
1216                         <groupId>org.codehaus.mojo</groupId>
1217                         <artifactId>exec-maven-plugin</artifactId>
1218                         <version>1.5.0</version>
1219                         <executions>
1220                             <execution>
1221                                 <id>swagger-generate-sources</id>
1222                                 <phase>generate-sources</phase>
1223                                 <goals>
1224                                     <goal>exec</goal>
1225                                 </goals>
1226                                 <configuration>
1227                                     <executable>${project.build.directory}${file.separator}${swagger.sdk.script.file}</executable>
1228                                 </configuration>
1229                             </execution>
1230                         </executions>
1231                     </plugin>
1232                     <plugin>
1233                         <groupId>org.apache.maven.plugins</groupId>
1234                         <artifactId>maven-clean-plugin</artifactId>
1235                         <version>3.0.0</version>
1236                         <executions>
1237                             <execution>
1238                                 <id>clean-generated-files</id>
1239                                 <phase>generate-sources</phase>
1240                                 <goals>
1241                                     <goal>clean</goal>
1242                                 </goals>
1243                                 <configuration>
1244                                     <filesets>
1245                                         <fileset>
1246                                             <directory>${project.build.directory}/generated-sources</directory>
1247                                         </fileset>
1248                                     </filesets>
1249                                 </configuration>
1250                             </execution>
1251                         </executions>
1252                     </plugin>
1253                 </plugins>
1254             </build>
1255             <dependencies>
1256                 <dependency>
1257                     <groupId>org.onap.msb.swagger-sdk</groupId>
1258                     <artifactId>swagger-sdk</artifactId>
1259                     <version>1.0.0</version>
1260                 </dependency>
1261             </dependencies>
1262         </profile>
1263         <profile>
1264             <id>sonar-jacoco-aggregate</id>
1265             <activation>
1266                 <property>
1267                     <name>onap.jacoco.aggregateFile</name>
1268                 </property>
1269             </activation>
1270             <build>
1271                 <plugins>
1272                     <plugin>
1273                         <groupId>org.jacoco</groupId>
1274                         <artifactId>jacoco-maven-plugin</artifactId>
1275                         <executions>
1276                             <execution>
1277                                 <id>merge</id>
1278                                 <goals>
1279                                     <goal>merge</goal>
1280                                 </goals>
1281                                 <phase>generate-resources</phase>
1282                                 <configuration>
1283                                     <destFile>${onap.jacoco.aggregateFile}</destFile>
1284                                     <fileSets>
1285                                         <fileSet>
1286                                             <directory>${project.basedir}</directory>
1287                                             <includes>
1288                                                 <include>**/target/code-coverage/*.exec</include>
1289                                             </includes>
1290                                         </fileSet>
1291                                     </fileSets>
1292                                 </configuration>
1293                             </execution>
1294                         </executions>
1295                     </plugin>
1296                 </plugins>
1297             </build>
1298         </profile>
1299         <!-- End of profiles from ONAP oparent -->
1300
1301         <profile>
1302             <id>yang-compile</id>
1303             <activation>
1304                 <file>
1305                     <exists>src/main/yang</exists>
1306                 </file>
1307             </activation>
1308             <build>
1309                 <plugins>
1310                     <plugin>
1311                         <groupId>org.opendaylight.yangtools</groupId>
1312                         <artifactId>yang-maven-plugin</artifactId>
1313                         <version>5.0.5</version>
1314                         <dependencies>
1315                             <dependency>
1316                                 <groupId>org.opendaylight.mdsal</groupId>
1317                                 <artifactId>maven-sal-api-gen-plugin</artifactId>
1318                                 <version>${odl.mdsal.model.version}</version>
1319                                 <type>jar</type>
1320                                 <scope>compile</scope>
1321                             </dependency>
1322                             <dependency>
1323                                 <groupId>org.opendaylight.netconf</groupId>
1324                                 <artifactId>sal-rest-docgen-maven</artifactId>
1325                                 <version>${odl.netconf.sal.rest.docgen.version}</version>
1326                                 <type>jar</type>
1327                             </dependency>
1328                         </dependencies>
1329                         <executions>
1330                             <execution>
1331                                 <id>binding</id>
1332                                 <goals>
1333                                     <goal>generate-sources</goal>
1334                                 </goals>
1335                                 <configuration>
1336                                     <yangFilesRootDir>${yang.file.directory}</yangFilesRootDir>
1337                                     <codeGenerators>
1338                                         <generator>
1339                                             <codeGeneratorClass>org.opendaylight.mdsal.binding.maven.api.gen.plugin.CodeGeneratorImpl</codeGeneratorClass>
1340                                             <outputBaseDir>${salGeneratorPath}</outputBaseDir>
1341                                         </generator>
1342                                         <!--
1343                                         <generator>
1344                                             <codeGeneratorClass>org.opendaylight.netconf.sal.rest.doc.maven.StaticDocGenerator</codeGeneratorClass>
1345                                             <outputBaseDir>target/swagger</outputBaseDir>
1346                                         </generator>
1347                                         -->
1348                                     </codeGenerators>
1349                                     <inspectDependencies>true</inspectDependencies>
1350                                 </configuration>
1351                             </execution>
1352                         </executions>
1353                     </plugin>
1354                 </plugins>
1355             </build>
1356         </profile>
1357     </profiles>
1358 </project>