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