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