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