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