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