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