Fix jacoco config
[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"
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>odlparent-lite</artifactId>
10     <version>1.0.1-SNAPSHOT</version>
11
12     <parent>
13         <groupId>org.opendaylight.odlparent</groupId>
14         <artifactId>odlparent-lite</artifactId>
15         <version>2.0.5</version>
16         <relativePath />
17     </parent>
18
19
20     <url>http://wiki.onap.org</url>
21     <name>ONAP :: ${project.groupId} :: ${project.artifactId}</name>
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.ccsdk.sli.core</groupId>
446                 <artifactId>sli-common</artifactId>
447                 <version>${ccsdk.sli.core.version}</version>
448             </dependency>
449
450             <dependency>
451                 <groupId>org.onap.ccsdk.sli.core</groupId>
452                 <artifactId>sli-provider</artifactId>
453                 <version>${ccsdk.sli.core.version}</version>
454             </dependency>
455             <dependency>
456                 <groupId>org.onap.ccsdk.sli.core</groupId>
457                 <artifactId>ccsdk-sli</artifactId>
458                 <version>${ccsdk.sli.core.version}</version>
459                 <type>xml</type>
460                 <classifier>features</classifier>
461             </dependency>
462             <dependency>
463                 <groupId>org.onap.ccsdk.sli.adaptors</groupId>
464                 <artifactId>aai-service-provider</artifactId>
465                 <version>${sdnctl.aai.service.version}</version>
466             </dependency>
467
468             <dependency>
469                 <groupId>org.onap.ccsdk.sli.core</groupId>
470                 <artifactId>dblib-provider</artifactId>
471                 <version>${sdnctl.dblib.version}</version>
472             </dependency>
473
474             <dependency>
475                 <groupId>org.testng</groupId>
476                 <artifactId>testng</artifactId>
477                 <version>6.11</version>
478             </dependency>
479             <dependency>
480                 <groupId>org.springframework</groupId>
481                 <artifactId>spring-test</artifactId>
482                 <version>${spring.version}</version>
483             </dependency>
484             <dependency>
485                 <groupId>org.springframework</groupId>
486                 <artifactId>spring-beans</artifactId>
487                 <version>${spring.version}</version>
488             </dependency>
489             <dependency>
490                 <groupId>org.springframework</groupId>
491                 <artifactId>spring-context</artifactId>
492                 <version>${spring.version}</version>
493             </dependency>
494         </dependencies>
495
496     </dependencyManagement>
497
498
499     <reporting>
500         <plugins>
501             <plugin>
502                 <artifactId>maven-javadoc-plugin</artifactId>
503                 <version>2.10.4</version>
504                 <configuration>
505                     <failOnError>false</failOnError>
506                     <doclet>org.umlgraph.doclet.UmlGraphDoc</doclet>
507                     <docletArtifact>
508                         <groupId>org.umlgraph</groupId>
509                         <artifactId>umlgraph</artifactId>
510                         <version>5.6</version>
511                     </docletArtifact>
512                     <additionalparam>-views</additionalparam>
513                     <useStandardDocletOptions>true</useStandardDocletOptions>
514                     <excludePackageNames>org.opendaylight.*</excludePackageNames>
515                     <additionalDependencies>
516                         <additionalDependency>
517                             <groupId>org.slf4j</groupId>
518                             <artifactId>slf4j-api</artifactId>
519                             <version>${slf4j.version}</version>
520                         </additionalDependency>
521                         <additionalDependency>
522                             <groupId>org.antlr</groupId>
523                             <artifactId>antlr4</artifactId>
524                             <version>${antlr.version}</version>
525                         </additionalDependency>
526                         <additionalDependency>
527                             <groupId>org.antlr</groupId>
528                             <artifactId>antlr4-runtime</artifactId>
529                             <version>${antlr.version}</version>
530                         </additionalDependency>
531
532                         <additionalDependency>
533                             <groupId>com.sun.jersey</groupId>
534                             <artifactId>jersey-client</artifactId>
535                             <version>${jersey.json.version}</version>
536                         </additionalDependency>
537                         <additionalDependency>
538                             <groupId>com.sun.jersey</groupId>
539                             <artifactId>jersey-core</artifactId>
540                             <version>${jersey.json.version}</version>
541                         </additionalDependency>
542                         <additionalDependency>
543                             <groupId>org.apache.httpcomponents</groupId>
544                             <artifactId>httpcore-osgi</artifactId>
545                             <version>${apache.httpcomponents.core.version}</version>
546                         </additionalDependency>
547                         <additionalDependency>
548                             <groupId>org.apache.httpcomponents</groupId>
549                             <artifactId>httpclient-osgi</artifactId>
550                             <version>${apache.httpcomponents.client.version}</version>
551                         </additionalDependency>
552                         <additionalDependency>
553                             <groupId>com.fasterxml.jackson.core</groupId>
554                             <artifactId>jackson-databind</artifactId>
555                             <version>${fasterxml.jackson.version}</version>
556                         </additionalDependency>
557                         <additionalDependency>
558                             <groupId>com.fasterxml.jackson.core</groupId>
559                             <artifactId>jackson-annotations</artifactId>
560                             <version>${fasterxml.jackson.version}</version>
561                         </additionalDependency>
562                         <additionalDependency>
563                             <groupId>com.fasterxml.jackson.core</groupId>
564                             <artifactId>jackson-core</artifactId>
565                             <version>${fasterxml.jackson.version}</version>
566                         </additionalDependency>
567                         <additionalDependency>
568                             <groupId>commons-lang</groupId>
569                             <artifactId>commons-lang</artifactId>
570                             <version>${commons.lang.version}</version>
571                         </additionalDependency>
572                     </additionalDependencies>
573                 </configuration>
574                 <reportSets>
575                     <reportSet>
576                         <reports>
577                             <report>javadoc-no-fork</report>
578                             <report>test-javadoc-no-fork</report>
579                         </reports>
580                     </reportSet>
581                     <reportSet>
582                         <id>aggregate</id>
583                         <reports>
584                             <report>aggregate</report>
585                             <report>test-aggregate</report>
586                         </reports>
587                     </reportSet>
588                 </reportSets>
589             </plugin>
590             <plugin>
591                 <groupId>org.apache.maven.plugins</groupId>
592                 <artifactId>maven-jxr-plugin</artifactId>
593                 <version>2.3</version>
594                 <reportSets>
595                     <reportSet>
596                         <id>aggregate</id>
597                         <reports>
598                             <report>aggregate</report>
599                             <report>test-aggregate</report>
600                         </reports>
601                     </reportSet>
602                 </reportSets>
603             </plugin>
604
605             <plugin>
606                 <artifactId>maven-surefire-plugin</artifactId>
607                 <version>2.17</version>
608             </plugin>
609             <plugin>
610                 <groupId>org.apache.maven.plugins</groupId>
611                 <artifactId>maven-changelog-plugin</artifactId>
612                 <version>2.3</version>
613                 <reportSets>
614                     <reportSet>
615                         <id>dual-report</id>
616                         <configuration>
617                             <type>range</type>
618                             <range>30</range>
619                         </configuration>
620                         <reports>
621                             <report>changelog</report>
622                             <report>file-activity</report>
623                         </reports>
624                     </reportSet>
625                 </reportSets>
626             </plugin>
627             <plugin>
628                 <groupId>org.codehaus.mojo</groupId>
629                 <artifactId>taglist-maven-plugin</artifactId>
630                 <version>2.4</version>
631             </plugin>
632         </plugins>
633     </reporting>
634
635
636     <pluginRepositories>
637         <pluginRepository>
638             <id>onap-public</id>
639             <url>${onap.nexus.public-url}</url>
640             <releases>
641                 <enabled>true</enabled>
642             </releases>
643             <snapshots>
644                 <enabled>true</enabled>
645             </snapshots>
646         </pluginRepository>
647         <pluginRepository>
648             <id>onap-snapshot</id>
649             <url>${onap.nexus.snapshot-url}</url>
650             <releases>
651                 <enabled>false</enabled>
652             </releases>
653             <snapshots>
654                 <enabled>true</enabled>
655             </snapshots>
656         </pluginRepository>
657         <pluginRepository>
658             <id>opendaylight-mirror</id>
659             <name>opendaylight-mirror</name>
660             <url>${opendaylight.nexus.public-url}</url>
661             <releases>
662                 <enabled>true</enabled>
663                 <updatePolicy>never</updatePolicy>
664             </releases>
665             <snapshots>
666                 <enabled>false</enabled>
667             </snapshots>
668         </pluginRepository>
669         <pluginRepository>
670             <id>opendaylight-snapshot</id>
671             <name>opendaylight-snapshot</name>
672             <url>${opendaylight.nexus.snapshot-url}</url>
673             <releases>
674                 <enabled>false</enabled>
675             </releases>
676             <snapshots>
677                 <enabled>true</enabled>
678             </snapshots>
679         </pluginRepository>
680         <!-- Black Duck plugin dependencies -->
681         <pluginRepository>
682             <id>JCenter</id>
683             <name>JCenter Repository</name>
684             <url>http://jcenter.bintray.com</url>
685         </pluginRepository>
686
687         <pluginRepository>
688             <id>Restlet</id>
689             <name>Restlet Repository</name>
690             <url>http://maven.restlet.com</url>
691         </pluginRepository>
692     </pluginRepositories>
693
694
695     <repositories>
696         <repository>
697             <id>onap-public</id>
698             <url>https://nexus.onap.org/content/groups/public</url>
699             <releases>
700                 <enabled>true</enabled>
701                 <updatePolicy>never</updatePolicy>
702             </releases>
703             <snapshots>
704                 <enabled>true</enabled>
705                 <updatePolicy>always</updatePolicy>
706             </snapshots>
707         </repository>
708         <repository>
709             <id>onap-staging</id>
710             <url>https://nexus.onap.org/content/groups/staging</url>
711             <releases>
712                 <enabled>true</enabled>
713                 <updatePolicy>never</updatePolicy>
714             </releases>
715             <snapshots>
716                 <enabled>true</enabled>
717                 <updatePolicy>always</updatePolicy>
718             </snapshots>
719         </repository>
720         <repository>
721             <id>ecomp-release</id>
722             <name>onap-repository-releases</name>
723             <url>https://nexus.onap.org/content/repositories/releases</url>
724             <releases>
725                 <enabled>true</enabled>
726                 <updatePolicy>never</updatePolicy>
727             </releases>
728             <snapshots>
729                 <enabled>false</enabled>
730             </snapshots>
731         </repository>
732         <repository>
733             <id>ecomp-snapshot</id>
734             <name>onap-repository-snapshots</name>
735             <url>https://nexus.onap.org/content/repositories/snapshots</url>
736             <releases>
737                 <enabled>false</enabled>
738             </releases>
739             <snapshots>
740                 <enabled>true</enabled>
741             </snapshots>
742         </repository>
743         <repository>
744             <id>opendaylight-mirror</id>
745             <name>opendaylight-mirror</name>
746             <url>https://nexus.opendaylight.org/content/repositories/public/</url>
747             <releases>
748                 <enabled>true</enabled>
749                 <updatePolicy>never</updatePolicy>
750             </releases>
751             <snapshots>
752                 <enabled>false</enabled>
753             </snapshots>
754         </repository>
755         <repository>
756             <id>opendaylight-snapshot</id>
757             <name>opendaylight-snapshot</name>
758             <url>https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/</url>
759             <releases>
760                 <enabled>false</enabled>
761             </releases>
762             <snapshots>
763                 <enabled>true</enabled>
764             </snapshots>
765         </repository>
766
767     </repositories>
768
769     <distributionManagement>
770         <repository>
771             <id>ecomp-releases</id>
772             <url>http://nexus.onap.org/content/repositories/releases</url>
773         </repository>
774         <snapshotRepository>
775             <id>ecomp-snapshots</id>
776             <url>http://nexus.onap.org/content/repositories/snapshots</url>
777         </snapshotRepository>
778     </distributionManagement>
779
780     <build>
781         <pluginManagement>
782             <plugins>
783
784                 <!-- Plugins from ONAP oparent -->
785                 <plugin>
786                     <groupId>org.apache.maven.plugins</groupId>
787                     <artifactId>maven-deploy-plugin</artifactId>
788                     <!-- This version supports the "deployAtEnd" parameter -->
789                     <version>2.8</version>
790                     <configuration>
791                         <skip />
792                     </configuration>
793                 </plugin>
794
795                 <plugin>
796                     <groupId>org.apache.maven.plugins</groupId>
797                     <artifactId>maven-site-plugin</artifactId>
798                     <version>3.6</version>
799                     <dependencies>
800                         <dependency>
801                             <groupId>org.apache.maven.wagon</groupId>
802                             <artifactId>wagon-webdav-jackrabbit</artifactId>
803                             <version>2.10</version>
804                         </dependency>
805                         <dependency>
806                             <groupId>org.apache.maven.doxia</groupId>
807                             <artifactId>doxia-core</artifactId>
808                             <version>1.7</version>
809                         </dependency>
810                         <dependency>
811                             <groupId>org.apache.maven.doxia</groupId>
812                             <artifactId>doxia-sink-api</artifactId>
813                             <version>1.7</version>
814                         </dependency>
815                         <dependency>
816                             <groupId>org.apache.maven.doxia</groupId>
817                             <artifactId>doxia-logging-api</artifactId>
818                             <version>1.7</version>
819                         </dependency>
820                     </dependencies>
821                     <executions>
822                         <execution>
823                             <id>attach-descriptor</id>
824                             <goals>
825                                 <goal>attach-descriptor</goal>
826                             </goals>
827                         </execution>
828                     </executions>
829                 </plugin>
830                 <plugin>
831                     <artifactId>maven-checkstyle-plugin</artifactId>
832                     <version>2.17</version>
833                     <dependencies>
834                         <dependency>
835                             <groupId>org.onap.oparent</groupId>
836                             <artifactId>checkstyle</artifactId>
837                             <version>1.1.0-SNAPSHOT</version>
838                         </dependency>
839                     </dependencies>
840                     <executions>
841                         <execution>
842                             <id>check-license</id>
843                             <goals>
844                                 <goal>check</goal>
845                             </goals>
846                             <phase>process-sources</phase>
847                             <configuration>
848                                 <configLocation>onap-checkstyle/check-license.xml</configLocation>
849                                 <headerLocation>onap-checkstyle/apache-license-2.regexp.txt</headerLocation>
850                                 <includeResources>false</includeResources>
851                                 <includeTestSourceDirectory>true</includeTestSourceDirectory>
852                                 <includeTestResources>false</includeTestResources>
853                                 <sourceDirectory>${project.build.sourceDirectory}</sourceDirectory>
854                                 <excludes>
855                                 </excludes>
856                                 <failsOnError>false</failsOnError>
857                                 <consoleOutput>true</consoleOutput>
858                             </configuration>
859                         </execution>
860                         <execution>
861                             <id>check-style</id>
862                             <goals>
863                                 <goal>check</goal>
864                             </goals>
865                             <phase>process-sources</phase>
866                             <configuration>
867                                 <!-- Use Google Java Style Guide: https://github.com/checkstyle/checkstyle/blob/master/src/main/resources/google_checks.xml
868                                     with minor changes -->
869                                 <configLocation>onap-checkstyle/onap-java-style.xml</configLocation>
870                                 <!-- <sourceDirectory> is needed so that
871                                     checkstyle ignores the generated sources directory -->
872                                 <sourceDirectory>${project.build.sourceDirectory}/src/main/java</sourceDirectory>
873                                 <includeResources>true</includeResources>
874                                 <includeTestSourceDirectory>true</includeTestSourceDirectory>
875                                 <includeTestResources>true</includeTestResources>
876                                 <excludes>
877                                 </excludes>
878                                 <failsOnError>false</failsOnError>
879                                 <consoleOutput>true</consoleOutput>
880                             </configuration>
881                         </execution>
882                     </executions>
883                 </plugin>
884                 <plugin>
885                     <groupId>org.jacoco</groupId>
886                     <artifactId>jacoco-maven-plugin</artifactId>
887                     <version>${jacoco.version}</version>
888                     <configuration>
889                         <!-- Note: This exclusion list should match <sonar.exclusions>
890                             property above -->
891                         <excludes>
892                             <exclude>**/gen/**</exclude>
893                             <exclude>**/generated-sources/**</exclude>
894                             <exclude>**/yang-gen/**</exclude>
895                             <exclude>**/pax/**</exclude>
896                         </excludes>
897                     </configuration>
898                     <executions>
899                         <!-- Prepares the property pointing to the JaCoCo
900                             runtime agent which is passed as VM argument when Maven the Surefire plugin
901                             is executed. -->
902                         <execution>
903                             <id>pre-unit-test</id>
904                             <goals>
905                                 <goal>prepare-agent</goal>
906                             </goals>
907                             <configuration>
908                                 <!-- Sets the path to the file which contains
909                                     the execution data. -->
910                                 <destFile>${project.build.directory}/code-coverage/jacoco-ut.exec</destFile>
911                                 <!-- Sets the name of the property containing
912                                     the settings for JaCoCo runtime agent. -->
913                                 <propertyName>surefireArgLine</propertyName>
914                             </configuration>
915                         </execution>
916                         <!-- Ensures that the code coverage report for unit
917                             tests is created after unit tests have been run. -->
918                         <execution>
919                             <id>post-unit-test</id>
920                             <phase>test</phase>
921                             <goals>
922                                 <goal>report</goal>
923                             </goals>
924                             <configuration>
925                                 <!-- Sets the path to the file which contains
926                                     the execution data. -->
927                                 <dataFile>${project.build.directory}/code-coverage/jacoco-ut.exec</dataFile>
928                                 <!-- Sets the output directory for the code
929                                     coverage report. -->
930                                 <outputDirectory>${project.reporting.outputDirectory}/jacoco-ut</outputDirectory>
931                             </configuration>
932                         </execution>
933                         <execution>
934                             <id>pre-integration-test</id>
935                             <phase>pre-integration-test</phase>
936                             <goals>
937                                 <goal>prepare-agent</goal>
938                             </goals>
939                             <configuration>
940                                 <!-- Sets the path to the file which contains
941                                     the execution data. -->
942                                 <destFile>${project.build.directory}/code-coverage/jacoco-it.exec</destFile>
943                                 <!-- Sets the name of the property containing
944                                     the settings for JaCoCo runtime agent. -->
945                                 <propertyName>failsafeArgLine</propertyName>
946                             </configuration>
947                         </execution>
948                         <!-- Ensures that the code coverage report for integration
949                             tests after integration tests have been run. -->
950                         <execution>
951                             <id>post-integration-test</id>
952                             <phase>post-integration-test</phase>
953                             <goals>
954                                 <goal>report</goal>
955                             </goals>
956                             <configuration>
957                                 <!-- Sets the path to the file which contains
958                                     the execution data. -->
959                                 <dataFile>${project.build.directory}/code-coverage/jacoco-it.exec</dataFile>
960                                 <!-- Sets the output directory for the code
961                                     coverage report. -->
962                                 <outputDirectory>${project.reporting.outputDirectory}/jacoco-it</outputDirectory>
963                             </configuration>
964                         </execution>
965                     </executions>
966                 </plugin>
967                 <plugin>
968                     <groupId>org.apache.maven.plugins</groupId>
969                     <artifactId>maven-surefire-plugin</artifactId>
970                     <version>2.19.1</version>
971                     <configuration>
972                         <!-- Sets the VM argument line used when unit tests
973                             are run. -->
974                         <argLine>${surefireArgLine}</argLine>
975                         <!-- Excludes integration tests when unit tests are
976                             run. -->
977                         <excludes>
978                             <exclude>**/IT*.java</exclude>
979                         </excludes>
980                     </configuration>
981                 </plugin>
982                 <plugin>
983                     <groupId>org.apache.maven.plugins</groupId>
984                     <artifactId>maven-failsafe-plugin</artifactId>
985                     <version>2.19.1</version>
986                     <executions>
987                         <!-- Ensures that both integration-test and verify
988                             goals of the Failsafe Maven plugin are executed. -->
989                         <execution>
990                             <id>integration-tests</id>
991                             <goals>
992                                 <goal>integration-test</goal>
993                                 <goal>verify</goal>
994                             </goals>
995                             <configuration>
996                                 <!-- Sets the VM argument line used when
997                                     integration tests are run. -->
998                                 <argLine>${failsafeArgLine}</argLine>
999                             </configuration>
1000                         </execution>
1001                     </executions>
1002                 </plugin>
1003                 <plugin>
1004                     <groupId>org.apache.maven.plugins</groupId>
1005                     <artifactId>maven-compiler-plugin</artifactId>
1006                     <version>${maven.compile.plugin.version}</version>
1007                     <configuration>
1008                         <source>${java.version.source}</source>
1009                         <target>${java.version.target}</target>
1010                     </configuration>
1011                 </plugin>
1012                 <plugin>
1013                     <groupId>org.sonarsource.scanner.maven</groupId>
1014                     <artifactId>sonar-maven-plugin</artifactId>
1015                     <version>3.3.0.603</version>
1016                 </plugin>
1017
1018                 <!-- End of plugins from ONAP oparent -->
1019
1020                 <plugin>
1021                     <groupId>org.apache.maven.plugins</groupId>
1022                     <artifactId>maven-javadoc-plugin</artifactId>
1023                     <version>2.10</version>
1024                     <configuration>
1025                         <additionalDependencies>
1026                             <additionalDependency>
1027                                 <groupId>org.slf4j</groupId>
1028                                 <artifactId>slf4j-api</artifactId>
1029                                 <version>${slf4j.version}</version>
1030                             </additionalDependency>
1031                             <additionalDependency>
1032                                 <groupId>org.antlr</groupId>
1033                                 <artifactId>antlr4</artifactId>
1034                                 <version>${antlr.version}</version>
1035                             </additionalDependency>
1036                             <additionalDependency>
1037                                 <groupId>org.antlr</groupId>
1038                                 <artifactId>antlr4-runtime</artifactId>
1039                                 <version>${antlr.version}</version>
1040                             </additionalDependency>
1041
1042                             <additionalDependency>
1043                                 <groupId>com.sun.jersey</groupId>
1044                                 <artifactId>jersey-client</artifactId>
1045                                 <version>${jersey.client.version}</version>
1046                             </additionalDependency>
1047                             <additionalDependency>
1048                                 <groupId>com.sun.jersey</groupId>
1049                                 <artifactId>jersey-core</artifactId>
1050                                 <version>${jersey.version}</version>
1051                             </additionalDependency>
1052                             <additionalDependency>
1053                                 <groupId>org.apache.httpcomponents</groupId>
1054                                 <artifactId>httpcore-osgi</artifactId>
1055                                 <version>${apache.httpcomponents.core.version}</version>
1056                             </additionalDependency>
1057                             <additionalDependency>
1058                                 <groupId>org.apache.httpcomponents</groupId>
1059                                 <artifactId>httpclient-osgi</artifactId>
1060                                 <version>${apache.httpcomponents.client.version}</version>
1061                             </additionalDependency>
1062                             <additionalDependency>
1063                                 <groupId>com.fasterxml.jackson.core</groupId>
1064                                 <artifactId>jackson-databind</artifactId>
1065                                 <version>${jackson.version}</version>
1066                             </additionalDependency>
1067                             <additionalDependency>
1068                                 <groupId>com.fasterxml.jackson.core</groupId>
1069                                 <artifactId>jackson-annotations</artifactId>
1070                                 <version>${jackson.version}</version>
1071                             </additionalDependency>
1072                             <additionalDependency>
1073                                 <groupId>com.fasterxml.jackson.core</groupId>
1074                                 <artifactId>jackson-core</artifactId>
1075                                 <version>${jackson.version}</version>
1076                             </additionalDependency>
1077                             <additionalDependency>
1078                                 <groupId>commons-lang</groupId>
1079                                 <artifactId>commons-lang</artifactId>
1080                                 <version>${commons.lang.version}</version>
1081                             </additionalDependency>
1082                         </additionalDependencies>
1083                     </configuration>
1084
1085                     <executions>
1086                         <execution>
1087                             <id>aggregate</id>
1088                             <goals>
1089                                 <goal>aggregate</goal>
1090                             </goals>
1091                             <phase>site</phase>
1092
1093                         </execution>
1094                     </executions>
1095                 </plugin>
1096                 <plugin>
1097                     <artifactId>maven-source-plugin</artifactId>
1098                     <version>2.1.1</version>
1099                     <executions>
1100                         <execution>
1101                             <id>bundle-sources</id>
1102                             <phase>package</phase>
1103                             <goals>
1104                                 <!-- produce source artifact for main project
1105                                     sources -->
1106                                 <goal>jar-no-fork</goal>
1107
1108                                 <!-- produce source artifact for project
1109                                     test sources -->
1110                                 <goal>test-jar-no-fork</goal>
1111                             </goals>
1112                         </execution>
1113                     </executions>
1114                 </plugin>
1115
1116
1117             </plugins>
1118
1119         </pluginManagement>
1120
1121         <plugins>
1122             <!-- Plugins from ONAP oparent -->
1123             <plugin>
1124                 <artifactId>maven-checkstyle-plugin</artifactId>
1125             </plugin>
1126             <plugin>
1127                 <groupId>org.codehaus.mojo</groupId>
1128                 <artifactId>build-helper-maven-plugin</artifactId>
1129                 <version>1.12</version>
1130             </plugin>
1131             <!-- Jacoco / Sonar -->
1132             <plugin>
1133                 <groupId>org.jacoco</groupId>
1134                 <artifactId>jacoco-maven-plugin</artifactId>
1135             </plugin>
1136             <plugin>
1137                 <groupId>org.apache.maven.plugins</groupId>
1138                 <artifactId>maven-surefire-plugin</artifactId>
1139             </plugin>
1140             <plugin>
1141                 <groupId>org.apache.maven.plugins</groupId>
1142                 <artifactId>maven-failsafe-plugin</artifactId>
1143             </plugin>
1144
1145             <!-- End of plugins from ONAP oparent -->
1146             <plugin>
1147                 <groupId>org.codehaus.mojo</groupId>
1148                 <artifactId>properties-maven-plugin</artifactId>
1149                 <version>1.0.0</version>
1150                 <executions>
1151                     <execution>
1152                         <goals>
1153                             <goal>set-system-properties</goal>
1154                         </goals>
1155                         <configuration>
1156                             <properties>
1157                                 <property>
1158                                     <name>maven.wagon.http.ssl.allowall</name>
1159                                     <value>${ssl.allowall}</value>
1160                                 </property>
1161                                 <property>
1162                                     <name>maven.wagon.http.ssl.insecure</name>
1163                                     <value>${ssl.insecure}</value>
1164                                 </property>
1165                             </properties>
1166                         </configuration>
1167                     </execution>
1168                 </executions>
1169             </plugin>
1170             <plugin>
1171                 <groupId>org.sonatype.plugins</groupId>
1172                 <artifactId>nexus-staging-maven-plugin</artifactId>
1173                 <version>1.6.7</version>
1174                 <extensions>true</extensions>
1175                 <configuration>
1176                     <nexusUrl>${onap.nexus.url}</nexusUrl>
1177                     <stagingProfileId>176c31dfe190a</stagingProfileId>
1178                     <serverId>ecomp-staging</serverId>
1179                 </configuration>
1180             </plugin>
1181             <plugin>
1182                 <groupId>org.codehaus.mojo</groupId>
1183                 <artifactId>versions-maven-plugin</artifactId>
1184                 <version>2.5</version>
1185                  <configuration>
1186                     <processAllModules>true</processAllModules>
1187                 </configuration>
1188             </plugin>
1189             <plugin>
1190                 <artifactId>maven-scm-plugin</artifactId>
1191                 <version>1.8.1</version>
1192                 <configuration>
1193                     <tag>${project.artifactId}-${project.version}</tag>
1194                 </configuration>
1195             </plugin>
1196         </plugins>
1197     </build>
1198     <organization>
1199         <name>ONAP</name>
1200     </organization>
1201 </project>