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