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