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