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