Update EELF version
[ccsdk/parent.git] / odlparent / karaf4-parent / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3     xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
4
5
6     <modelVersion>4.0.0</modelVersion>
7     <packaging>pom</packaging>
8     <groupId>org.onap.ccsdk.parent</groupId>
9     <artifactId>karaf4-parent</artifactId>
10     <version>1.0.1-SNAPSHOT</version>
11
12     <parent>
13         <groupId>org.opendaylight.odlparent</groupId>
14         <artifactId>karaf4-parent</artifactId>
15         <version>2.0.5</version>
16         <relativePath />
17     </parent>
18
19
20     <name>ONAP :: ${project.groupId} :: ${project.artifactId}</name>
21     <url>http://wiki.onap.org</url>
22     <description>Root POM to be used in place of odlparent for CCSDK based projects</description>
23
24
25     <issueManagement>
26         <system>JIRA</system>
27         <url>https://jira.onap.org/</url>
28     </issueManagement>
29
30     <properties>
31
32         <!--- properties from oparent -->
33         <maven.compiler.source>1.8</maven.compiler.source>
34         <maven.compiler.target>1.8</maven.compiler.target>
35         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
36         <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
37         <onap.nexus.url>https://nexus.onap.org</onap.nexus.url>
38         <!-- sitePath may be overridden in the inheriting POM if desired -->
39         <sitePath>/content/sites/site/${project.groupId}/${project.artifactId}/${project.version}</sitePath>
40         <jacoco.version>0.7.7.201606060606</jacoco.version>
41         <sonar-jacoco-listeners.version>3.2</sonar-jacoco-listeners.version>
42         <sonar.core.codeCoveragePlugin>jacoco</sonar.core.codeCoveragePlugin>
43         <!-- Default Sonar configuration -->
44         <sonar.jacoco.reportPaths>target/code-coverage/jacoco-ut.exec,target/code-coverage/jacoco-it.exec</sonar.jacoco.reportPaths>
45         <!-- Note: This list should match jacoco-maven-plugin's exclusion
46             list below -->
47         <sonar.exclusions>**/gen/**,**/generated-sources/**,**/yang-gen**,**/pax/**</sonar.exclusions>
48         <!-- If following file exist, auto-generation of swagger.json will
49             be done -->
50         <swagger-properties>${basedir}/src/main/resources/swagger.properties</swagger-properties>
51         <!-- If following file exist, auto-generation of sdk will be done -->
52         <swagger-json>${basedir}/src/main/resources/swagger.json</swagger-json>
53         <!--- end of properties from oparent -->
54
55         <!-- ONAP repositories -->
56         <onap.nexus.host>nexus.onap.org</onap.nexus.host>
57         <onap.nexus.port>443</onap.nexus.port>
58         <onap.nexus.protocol>https</onap.nexus.protocol>
59         <onap.nexus.public-url>https://nexus.onap.org/content/groups/public</onap.nexus.public-url>
60         <onap.nexus.staging-url>https://nexus.onap.org/content/groups/staging</onap.nexus.staging-url>
61         <onap.nexus.release-url>https://nexus.onap.org/content/repositories/releases</onap.nexus.release-url>
62         <onap.nexus.snapshot-url>https://nexus.onap.org/content/repositories/snapshots</onap.nexus.snapshot-url>
63         <onap.nexus.staging.server-id>ecomp-staging</onap.nexus.staging.server-id>
64         <onap.nexus.staging.profile-id>176c31dfe190a</onap.nexus.staging.profile-id>
65
66
67         <!-- OpenDaylight repositories -->
68         <opendaylight.nexus.public-url>https://nexus.opendaylight.org/content/repositories/public/</opendaylight.nexus.public-url>
69         <opendaylight.nexus.snapshot-url>https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/</opendaylight.nexus.snapshot-url>
70
71
72         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
73         <java.version.source>1.8</java.version.source>
74         <java.version.target>1.8</java.version.target>
75         <bundle.plugin.version>2.5.0</bundle.plugin.version>
76         <maven.compile.plugin.version>2.5.1</maven.compile.plugin.version>
77         <features.file>features.xml</features.file>
78         <jmxGeneratorPath>src/main/yang-gen-config</jmxGeneratorPath>
79         <salGeneratorPath>src/main/yang-gen-sal</salGeneratorPath>
80         <checkstyle.skip>true</checkstyle.skip>
81
82
83         <sonar.language>java</sonar.language>
84         <sonar.java.coveragePlugin>jacoco</sonar.java.coveragePlugin>
85         <sonar.surefire.reportsPath>${project.build.directory}/surefire-reports</sonar.surefire.reportsPath>
86         <sonar.jacoco.reportMissing.force.zero>true</sonar.jacoco.reportMissing.force.zero>
87         <sonar.projectVersion>${project.version}</sonar.projectVersion>
88
89
90
91
92         <!-- CCSDK component versions -->
93         <ccsdk.sli.core.version>0.2.1-SNAPSHOT</ccsdk.sli.core.version>
94         <ccsdk.sli.adaptors.version>0.2.1-SNAPSHOT</ccsdk.sli.adaptors.version>
95         <ccsdk.sli.northbound.version>0.2.1-SNAPSHOT</ccsdk.sli.northbound.version>
96         <ccsdk.sli.plugins.version>0.2.1-SNAPSHOT</ccsdk.sli.plugins.version>
97         <sdnctl.sli.version>${ccsdk.sli.core.version}</sdnctl.sli.version>
98         <sdnctl.aai.service.version>${ccsdk.sli.adaptors.version}</sdnctl.aai.service.version>
99         <sdnctl.dblib.version>${ccsdk.sli.core.version}</sdnctl.dblib.version>
100         <sdnctl.mdsal.resource.version>${ccsdk.sli.adaptors.version}</sdnctl.mdsal.resource.version>
101         <sdnctl.slipluginutils.version>${ccsdk.sli.core.version}</sdnctl.slipluginutils.version>
102
103         <!-- Support libraries used by OpenDaylight -->
104         <!-- Used by aaa, vtn -->
105         <commons.codec.version>1.10</commons.codec.version>
106         <!-- Used by netconf, ovsdb -->
107         <commons.lang3.version>3.6</commons.lang3.version>
108         <!-- Used by sfc, snmp4sdn; see also affinity, toolkit -->
109         <commons.lang.version>2.6</commons.lang.version>
110         <!-- Used by neutron; see also controller, vtn -->
111         <commons.net.version>3.6</commons.net.version>
112         <!-- Used by neutron -->
113         <eclipse.persistence.version>2.6.2</eclipse.persistence.version>
114         <!-- Used by aaa -->
115         <felix.dependencymanager.version>4.3.0</felix.dependencymanager.version>
116         <!-- Used by lacp, netconf, ovsdb, sfc, toolkit; see also vtn -->
117         <gson.version>2.7</gson.version>
118         <!-- Used by aaa, dlux, persistence, snmp4sdn, sxp -->
119         <guava.version>22.0</guava.version>
120         <!-- Used by lispflowmapping, sxp, vtn/manager -->
121         <hamcrest.version>1.3</hamcrest.version>
122         <!-- Used by aaa, alto, netconf, ovsdb, sfc; see also affinity, defense4all,
123             integration/distribution, snmp4sdn, toolkit, ttp -->
124         <jackson.version>2.3.2</jackson.version>
125         <!-- Used by snmp4sdn, yangtools -->
126         <javassist.version>3.20.0-GA</javassist.version>
127
128         <!-- FIXME remove all dependencies for jersey 1.17 after migration
129             all projects -->
130         <!-- Used by aaa, alto, netconf, neutron, sfc; see also affinity,
131             defense4all, snmp4sdn, toolkit -->
132         <jersey.version>1.17</jersey.version>
133         <!-- Used by sfc -->
134         <jersey.client.version>1.17</jersey.client.version>
135
136         <!-- New packages for jersey migration 1.17 to 2.8 -->
137         <!-- appache.geronimo.bundle for DocGen -->
138         <!-- Used by aaa, iotdm, netconf, ovsdb, sfc -->
139         <org.json.version>20131018</org.json.version>
140
141         <!-- Used by sfc -->
142         <jettison.version>1.3.7</jettison.version>
143         <!-- Used by persistence -->
144         <jsr305.api.version>3.0.0</jsr305.api.version>
145         <!-- Need to stick to JUnit 4.11 until https://github.com/jayway/powermock/issues/560
146             is fixed (either in PowerMock or with a new JUnit release) -->
147         <!-- Used everywhere -->
148         <junit.version>4.11</junit.version>
149         <!-- Used by coretutorials, sfc, snmp4sdn, sxp; see also affinity,
150             toolkit -->
151         <logback.version>1.2.2</logback.version>
152         <!-- Used by nic, sfc, sxp, tsdr -->
153         <mockito.version>1.10.19</mockito.version>
154         <!-- Used by bgpcep, netconf, ovsdb, sxp; see also opendove, toolkit -->
155         <netty.version>4.1.8.Final</netty.version>
156         <!-- Used by openflowjava, persistence, sfc, snmp4sdn, sxp; see also
157             affinity, toolkit -->
158         <slf4j.version>1.7.21</slf4j.version>
159         <!-- Used in integration/distribution; see also affinity, snmp4sdn,
160             toolkit, tsdr, ttp -->
161         <spring.version>3.2.17.RELEASE</spring.version>
162
163
164
165         <!-- Extra support libraries used by SDN-C -->
166         <equinox.osgi.version>3.8.1.v20120830-144521</equinox.osgi.version>
167         <jackson-annotations-version>${jackson.version}</jackson-annotations-version>
168         <jvnet.jaxb2.version>0.6.4</jvnet.jaxb2.version>
169         <apache.httpcomponents.core.version>4.4.4</apache.httpcomponents.core.version>
170         <apache.httpcomponents.client.version>4.5.2</apache.httpcomponents.client.version>
171         <antlr.version>4.5.1</antlr.version>
172         <mysql.connector.version>5.1.39</mysql.connector.version>
173         <mariadb.connector.version>2.1.1</mariadb.connector.version>
174         <h2database.version>1.4.186</h2database.version>
175
176         <eelf.version>1.0.0</eelf.version>
177         <eelf.maven.plugin.version>1.0.0</eelf.maven.plugin.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.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             <dependency>
467                 <groupId>com.att.eelf</groupId>
468                 <artifactId>eelf-core</artifactId>
469                 <version>${eelf.version}</version>
470             </dependency>
471         </dependencies>
472
473     </dependencyManagement>
474
475
476     <reporting>
477         <plugins>
478             <plugin>
479                 <artifactId>maven-javadoc-plugin</artifactId>
480                 <version>2.10.4</version>
481                 <configuration>
482                     <failOnError>false</failOnError>
483                     <doclet>org.umlgraph.doclet.UmlGraphDoc</doclet>
484                     <docletArtifact>
485                         <groupId>org.umlgraph</groupId>
486                         <artifactId>umlgraph</artifactId>
487                         <version>5.6</version>
488                     </docletArtifact>
489                     <additionalparam>-views</additionalparam>
490                     <useStandardDocletOptions>true</useStandardDocletOptions>
491                     <excludePackageNames>org.opendaylight.*</excludePackageNames>
492                     <additionalDependencies>
493                         <additionalDependency>
494                             <groupId>org.slf4j</groupId>
495                             <artifactId>slf4j-api</artifactId>
496                             <version>${slf4j.version}</version>
497                         </additionalDependency>
498                         <additionalDependency>
499                             <groupId>org.antlr</groupId>
500                             <artifactId>antlr4</artifactId>
501                             <version>${antlr.version}</version>
502                         </additionalDependency>
503                         <additionalDependency>
504                             <groupId>org.antlr</groupId>
505                             <artifactId>antlr4-runtime</artifactId>
506                             <version>${antlr.version}</version>
507                         </additionalDependency>
508
509                         <additionalDependency>
510                             <groupId>com.sun.jersey</groupId>
511                             <artifactId>jersey-client</artifactId>
512                             <version>${jersey.json.version}</version>
513                         </additionalDependency>
514                         <additionalDependency>
515                             <groupId>com.sun.jersey</groupId>
516                             <artifactId>jersey-core</artifactId>
517                             <version>${jersey.json.version}</version>
518                         </additionalDependency>
519                         <additionalDependency>
520                             <groupId>org.apache.httpcomponents</groupId>
521                             <artifactId>httpcore-osgi</artifactId>
522                             <version>${apache.httpcomponents.core.version}</version>
523                         </additionalDependency>
524                         <additionalDependency>
525                             <groupId>org.apache.httpcomponents</groupId>
526                             <artifactId>httpclient-osgi</artifactId>
527                             <version>${apache.httpcomponents.client.version}</version>
528                         </additionalDependency>
529                         <additionalDependency>
530                             <groupId>com.fasterxml.jackson.core</groupId>
531                             <artifactId>jackson-databind</artifactId>
532                             <version>${fasterxml.jackson.version}</version>
533                         </additionalDependency>
534                         <additionalDependency>
535                             <groupId>com.fasterxml.jackson.core</groupId>
536                             <artifactId>jackson-annotations</artifactId>
537                             <version>${fasterxml.jackson.version}</version>
538                         </additionalDependency>
539                         <additionalDependency>
540                             <groupId>com.fasterxml.jackson.core</groupId>
541                             <artifactId>jackson-core</artifactId>
542                             <version>${fasterxml.jackson.version}</version>
543                         </additionalDependency>
544                         <additionalDependency>
545                             <groupId>commons-lang</groupId>
546                             <artifactId>commons-lang</artifactId>
547                             <version>${commons.lang.version}</version>
548                         </additionalDependency>
549                     </additionalDependencies>
550                 </configuration>
551                 <reportSets>
552                     <reportSet>
553                         <reports>
554                             <report>javadoc-no-fork</report>
555                             <report>test-javadoc-no-fork</report>
556                         </reports>
557                     </reportSet>
558                     <reportSet>
559                         <id>aggregate</id>
560                         <reports>
561                             <report>aggregate</report>
562                             <report>test-aggregate</report>
563                         </reports>
564                     </reportSet>
565                 </reportSets>
566             </plugin>
567             <plugin>
568                 <groupId>org.apache.maven.plugins</groupId>
569                 <artifactId>maven-jxr-plugin</artifactId>
570                 <version>2.3</version>
571                 <reportSets>
572                     <reportSet>
573                         <id>aggregate</id>
574                         <reports>
575                             <report>aggregate</report>
576                             <report>test-aggregate</report>
577                         </reports>
578                     </reportSet>
579                 </reportSets>
580             </plugin>
581
582             <plugin>
583                 <artifactId>maven-surefire-plugin</artifactId>
584                 <version>2.17</version>
585             </plugin>
586             <plugin>
587                 <groupId>org.apache.maven.plugins</groupId>
588                 <artifactId>maven-changelog-plugin</artifactId>
589                 <version>2.3</version>
590                 <reportSets>
591                     <reportSet>
592                         <id>dual-report</id>
593                         <configuration>
594                             <type>range</type>
595                             <range>30</range>
596                         </configuration>
597                         <reports>
598                             <report>changelog</report>
599                             <report>file-activity</report>
600                         </reports>
601                     </reportSet>
602                 </reportSets>
603             </plugin>
604             <plugin>
605                 <groupId>org.codehaus.mojo</groupId>
606                 <artifactId>taglist-maven-plugin</artifactId>
607                 <version>2.4</version>
608             </plugin>
609         </plugins>
610     </reporting>
611
612
613     <pluginRepositories>
614         <pluginRepository>
615             <id>onap-public</id>
616             <url>${onap.nexus.public-url}</url>
617             <releases>
618                 <enabled>true</enabled>
619             </releases>
620             <snapshots>
621                 <enabled>true</enabled>
622             </snapshots>
623         </pluginRepository>
624         <pluginRepository>
625             <id>onap-snapshot</id>
626             <url>${onap.nexus.snapshot-url}</url>
627             <releases>
628                 <enabled>false</enabled>
629             </releases>
630             <snapshots>
631                 <enabled>true</enabled>
632             </snapshots>
633         </pluginRepository>
634         <pluginRepository>
635             <id>opendaylight-mirror</id>
636             <name>opendaylight-mirror</name>
637             <url>${opendaylight.nexus.public-url}</url>
638             <releases>
639                 <enabled>true</enabled>
640                 <updatePolicy>never</updatePolicy>
641             </releases>
642             <snapshots>
643                 <enabled>false</enabled>
644             </snapshots>
645         </pluginRepository>
646         <pluginRepository>
647             <id>opendaylight-snapshot</id>
648             <name>opendaylight-snapshot</name>
649             <url>${opendaylight.nexus.snapshot-url}</url>
650             <releases>
651                 <enabled>false</enabled>
652             </releases>
653             <snapshots>
654                 <enabled>true</enabled>
655             </snapshots>
656         </pluginRepository>
657         <!-- Black Duck plugin dependencies -->
658         <pluginRepository>
659             <id>JCenter</id>
660             <name>JCenter Repository</name>
661             <url>http://jcenter.bintray.com</url>
662         </pluginRepository>
663
664         <pluginRepository>
665             <id>Restlet</id>
666             <name>Restlet Repository</name>
667             <url>http://maven.restlet.com</url>
668         </pluginRepository>
669     </pluginRepositories>
670
671
672     <repositories>
673         <repository>
674             <id>onap-public</id>
675             <url>https://nexus.onap.org/content/groups/public</url>
676             <releases>
677                 <enabled>true</enabled>
678                 <updatePolicy>never</updatePolicy>
679             </releases>
680             <snapshots>
681                 <enabled>true</enabled>
682                 <updatePolicy>always</updatePolicy>
683             </snapshots>
684         </repository>
685         <repository>
686             <id>onap-staging</id>
687             <url>https://nexus.onap.org/content/groups/staging</url>
688             <releases>
689                 <enabled>true</enabled>
690                 <updatePolicy>never</updatePolicy>
691             </releases>
692             <snapshots>
693                 <enabled>true</enabled>
694                 <updatePolicy>always</updatePolicy>
695             </snapshots>
696         </repository>
697         <repository>
698             <id>ecomp-release</id>
699             <name>onap-repository-releases</name>
700             <url>https://nexus.onap.org/content/repositories/releases</url>
701             <releases>
702                 <enabled>true</enabled>
703                 <updatePolicy>never</updatePolicy>
704             </releases>
705             <snapshots>
706                 <enabled>false</enabled>
707             </snapshots>
708         </repository>
709         <repository>
710             <id>ecomp-snapshot</id>
711             <name>onap-repository-snapshots</name>
712             <url>https://nexus.onap.org/content/repositories/snapshots</url>
713             <releases>
714                 <enabled>false</enabled>
715             </releases>
716             <snapshots>
717                 <enabled>true</enabled>
718             </snapshots>
719         </repository>
720         <repository>
721             <id>opendaylight-mirror</id>
722             <name>opendaylight-mirror</name>
723             <url>https://nexus.opendaylight.org/content/repositories/public/</url>
724             <releases>
725                 <enabled>true</enabled>
726                 <updatePolicy>never</updatePolicy>
727             </releases>
728             <snapshots>
729                 <enabled>false</enabled>
730             </snapshots>
731         </repository>
732         <repository>
733             <id>opendaylight-snapshot</id>
734             <name>opendaylight-snapshot</name>
735             <url>https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/</url>
736             <releases>
737                 <enabled>false</enabled>
738             </releases>
739             <snapshots>
740                 <enabled>true</enabled>
741             </snapshots>
742         </repository>
743
744     </repositories>
745
746     <distributionManagement>
747         <repository>
748             <id>ecomp-releases</id>
749             <url>http://nexus.onap.org/content/repositories/releases</url>
750         </repository>
751         <snapshotRepository>
752             <id>ecomp-snapshots</id>
753             <url>http://nexus.onap.org/content/repositories/snapshots</url>
754         </snapshotRepository>
755     </distributionManagement>
756
757     <build>
758         <pluginManagement>
759             <plugins>
760
761                 <!-- Plugins from ONAP oparent -->
762                 <plugin>
763                     <groupId>org.apache.maven.plugins</groupId>
764                     <artifactId>maven-deploy-plugin</artifactId>
765                     <!-- This version supports the "deployAtEnd" parameter -->
766                     <version>2.8</version>
767                     <configuration>
768                         <skip />
769                     </configuration>
770                 </plugin>
771
772                 <plugin>
773                     <groupId>org.apache.maven.plugins</groupId>
774                     <artifactId>maven-site-plugin</artifactId>
775                     <version>3.6</version>
776                     <dependencies>
777                         <dependency>
778                             <groupId>org.apache.maven.wagon</groupId>
779                             <artifactId>wagon-webdav-jackrabbit</artifactId>
780                             <version>2.10</version>
781                         </dependency>
782                         <dependency>
783                             <groupId>org.apache.maven.doxia</groupId>
784                             <artifactId>doxia-core</artifactId>
785                             <version>1.7</version>
786                         </dependency>
787                         <dependency>
788                             <groupId>org.apache.maven.doxia</groupId>
789                             <artifactId>doxia-sink-api</artifactId>
790                             <version>1.7</version>
791                         </dependency>
792                         <dependency>
793                             <groupId>org.apache.maven.doxia</groupId>
794                             <artifactId>doxia-logging-api</artifactId>
795                             <version>1.7</version>
796                         </dependency>
797                     </dependencies>
798                     <executions>
799                         <execution>
800                             <id>attach-descriptor</id>
801                             <goals>
802                                 <goal>attach-descriptor</goal>
803                             </goals>
804                         </execution>
805                     </executions>
806                 </plugin>
807                 <plugin>
808                     <artifactId>maven-checkstyle-plugin</artifactId>
809                     <version>2.17</version>
810                     <dependencies>
811                         <dependency>
812                             <groupId>org.onap.oparent</groupId>
813                             <artifactId>checkstyle</artifactId>
814                             <version>1.1.1-SNAPSHOT</version>
815                         </dependency>
816                     </dependencies>
817                     <executions>
818                         <execution>
819                             <id>check-license</id>
820                             <goals>
821                                 <goal>check</goal>
822                             </goals>
823                             <phase>process-sources</phase>
824                             <configuration>
825                                 <configLocation>onap-checkstyle/check-license.xml</configLocation>
826                                 <headerLocation>onap-checkstyle/apache-license-2.regexp.txt</headerLocation>
827                                 <includeResources>false</includeResources>
828                                 <includeTestSourceDirectory>true</includeTestSourceDirectory>
829                                 <includeTestResources>false</includeTestResources>
830                                 <sourceDirectory>${project.build.sourceDirectory}</sourceDirectory>
831                                 <excludes>
832                                 </excludes>
833                                 <failsOnError>false</failsOnError>
834                                 <consoleOutput>true</consoleOutput>
835                             </configuration>
836                         </execution>
837                         <execution>
838                             <id>check-style</id>
839                             <goals>
840                                 <goal>check</goal>
841                             </goals>
842                             <phase>process-sources</phase>
843                             <configuration>
844                                 <!-- Use Google Java Style Guide: https://github.com/checkstyle/checkstyle/blob/master/src/main/resources/google_checks.xml
845                                     with minor changes -->
846                                 <configLocation>onap-checkstyle/onap-java-style.xml</configLocation>
847                                 <!-- <sourceDirectory> is needed so that
848                                     checkstyle ignores the generated sources directory -->
849                                 <sourceDirectory>${project.build.sourceDirectory}/src/main/java</sourceDirectory>
850                                 <includeResources>true</includeResources>
851                                 <includeTestSourceDirectory>true</includeTestSourceDirectory>
852                                 <includeTestResources>true</includeTestResources>
853                                 <excludes>
854                                 </excludes>
855                                 <failsOnError>false</failsOnError>
856                                 <consoleOutput>true</consoleOutput>
857                             </configuration>
858                         </execution>
859                     </executions>
860                 </plugin>
861                 <plugin>
862                     <groupId>org.jacoco</groupId>
863                     <artifactId>jacoco-maven-plugin</artifactId>
864                     <version>${jacoco.version}</version>
865                     <configuration>
866                         <!-- Note: This exclusion list should match <sonar.exclusions>
867                             property above -->
868                         <excludes>
869                             <exclude>**/gen/**</exclude>
870                             <exclude>**/generated-sources/**</exclude>
871                             <exclude>**/yang-gen/**</exclude>
872                             <exclude>**/pax/**</exclude>
873                         </excludes>
874                     </configuration>
875                     <executions>
876                         <!-- Prepares the property pointing to the JaCoCo
877                             runtime agent which is passed as VM argument when Maven the Surefire plugin
878                             is executed. -->
879                         <execution>
880                             <id>pre-unit-test</id>
881                             <goals>
882                                 <goal>prepare-agent</goal>
883                             </goals>
884                             <configuration>
885                                 <!-- Sets the path to the file which contains
886                                     the execution data. -->
887                                 <destFile>${project.build.directory}/code-coverage/jacoco-ut.exec</destFile>
888                                 <!-- Sets the name of the property containing
889                                     the settings for JaCoCo runtime agent. -->
890                                 <propertyName>surefireArgLine</propertyName>
891                             </configuration>
892                         </execution>
893                         <!-- Ensures that the code coverage report for unit
894                             tests is created after unit tests have been run. -->
895                         <execution>
896                             <id>post-unit-test</id>
897                             <phase>test</phase>
898                             <goals>
899                                 <goal>report</goal>
900                             </goals>
901                             <configuration>
902                                 <!-- Sets the path to the file which contains
903                                     the execution data. -->
904                                 <dataFile>${project.build.directory}/code-coverage/jacoco-ut.exec</dataFile>
905                                 <!-- Sets the output directory for the code
906                                     coverage report. -->
907                                 <outputDirectory>${project.reporting.outputDirectory}/jacoco-ut</outputDirectory>
908                             </configuration>
909                         </execution>
910                         <execution>
911                             <id>pre-integration-test</id>
912                             <phase>pre-integration-test</phase>
913                             <goals>
914                                 <goal>prepare-agent</goal>
915                             </goals>
916                             <configuration>
917                                 <!-- Sets the path to the file which contains
918                                     the execution data. -->
919                                 <destFile>${project.build.directory}/code-coverage/jacoco-it.exec</destFile>
920                                 <!-- Sets the name of the property containing
921                                     the settings for JaCoCo runtime agent. -->
922                                 <propertyName>failsafeArgLine</propertyName>
923                             </configuration>
924                         </execution>
925                         <!-- Ensures that the code coverage report for integration
926                             tests after integration tests have been run. -->
927                         <execution>
928                             <id>post-integration-test</id>
929                             <phase>post-integration-test</phase>
930                             <goals>
931                                 <goal>report</goal>
932                             </goals>
933                             <configuration>
934                                 <!-- Sets the path to the file which contains
935                                     the execution data. -->
936                                 <dataFile>${project.build.directory}/code-coverage/jacoco-it.exec</dataFile>
937                                 <!-- Sets the output directory for the code
938                                     coverage report. -->
939                                 <outputDirectory>${project.reporting.outputDirectory}/jacoco-it</outputDirectory>
940                             </configuration>
941                         </execution>
942                     </executions>
943                 </plugin>
944                 <plugin>
945                     <groupId>org.apache.maven.plugins</groupId>
946                     <artifactId>maven-surefire-plugin</artifactId>
947                     <version>2.19.1</version>
948                     <configuration>
949                         <!-- Sets the VM argument line used when unit tests
950                             are run. -->
951                         <argLine>${surefireArgLine}</argLine>
952                         <!-- Excludes integration tests when unit tests are
953                             run. -->
954                         <excludes>
955                             <exclude>**/IT*.java</exclude>
956                         </excludes>
957                     </configuration>
958                 </plugin>
959                 <plugin>
960                     <groupId>org.apache.maven.plugins</groupId>
961                     <artifactId>maven-failsafe-plugin</artifactId>
962                     <version>2.19.1</version>
963                     <executions>
964                         <!-- Ensures that both integration-test and verify
965                             goals of the Failsafe Maven plugin are executed. -->
966                         <execution>
967                             <id>integration-tests</id>
968                             <goals>
969                                 <goal>integration-test</goal>
970                                 <goal>verify</goal>
971                             </goals>
972                             <configuration>
973                                 <!-- Sets the VM argument line used when
974                                     integration tests are run. -->
975                                 <argLine>${failsafeArgLine}</argLine>
976                             </configuration>
977                         </execution>
978                     </executions>
979                 </plugin>
980                 <plugin>
981                     <groupId>org.apache.maven.plugins</groupId>
982                     <artifactId>maven-compiler-plugin</artifactId>
983                     <version>${maven.compile.plugin.version}</version>
984                     <configuration>
985                         <source>${java.version.source}</source>
986                         <target>${java.version.target}</target>
987                     </configuration>
988                 </plugin>
989                 <plugin>
990                     <groupId>org.sonarsource.scanner.maven</groupId>
991                     <artifactId>sonar-maven-plugin</artifactId>
992                     <version>3.3.0.603</version>
993                 </plugin>
994
995                 <!-- End of plugins from ONAP oparent -->
996
997                 <plugin>
998                     <groupId>org.apache.maven.plugins</groupId>
999                     <artifactId>maven-javadoc-plugin</artifactId>
1000                     <version>2.10</version>
1001                     <configuration>
1002                         <additionalDependencies>
1003                             <additionalDependency>
1004                                 <groupId>org.slf4j</groupId>
1005                                 <artifactId>slf4j-api</artifactId>
1006                                 <version>${slf4j.version}</version>
1007                             </additionalDependency>
1008                             <additionalDependency>
1009                                 <groupId>org.antlr</groupId>
1010                                 <artifactId>antlr4</artifactId>
1011                                 <version>${antlr.version}</version>
1012                             </additionalDependency>
1013                             <additionalDependency>
1014                                 <groupId>org.antlr</groupId>
1015                                 <artifactId>antlr4-runtime</artifactId>
1016                                 <version>${antlr.version}</version>
1017                             </additionalDependency>
1018
1019                             <additionalDependency>
1020                                 <groupId>com.sun.jersey</groupId>
1021                                 <artifactId>jersey-client</artifactId>
1022                                 <version>${jersey.client.version}</version>
1023                             </additionalDependency>
1024                             <additionalDependency>
1025                                 <groupId>com.sun.jersey</groupId>
1026                                 <artifactId>jersey-core</artifactId>
1027                                 <version>${jersey.version}</version>
1028                             </additionalDependency>
1029                             <additionalDependency>
1030                                 <groupId>org.apache.httpcomponents</groupId>
1031                                 <artifactId>httpcore-osgi</artifactId>
1032                                 <version>${apache.httpcomponents.core.version}</version>
1033                             </additionalDependency>
1034                             <additionalDependency>
1035                                 <groupId>org.apache.httpcomponents</groupId>
1036                                 <artifactId>httpclient-osgi</artifactId>
1037                                 <version>${apache.httpcomponents.client.version}</version>
1038                             </additionalDependency>
1039                             <additionalDependency>
1040                                 <groupId>com.fasterxml.jackson.core</groupId>
1041                                 <artifactId>jackson-databind</artifactId>
1042                                 <version>${jackson.version}</version>
1043                             </additionalDependency>
1044                             <additionalDependency>
1045                                 <groupId>com.fasterxml.jackson.core</groupId>
1046                                 <artifactId>jackson-annotations</artifactId>
1047                                 <version>${jackson.version}</version>
1048                             </additionalDependency>
1049                             <additionalDependency>
1050                                 <groupId>com.fasterxml.jackson.core</groupId>
1051                                 <artifactId>jackson-core</artifactId>
1052                                 <version>${jackson.version}</version>
1053                             </additionalDependency>
1054                             <additionalDependency>
1055                                 <groupId>commons-lang</groupId>
1056                                 <artifactId>commons-lang</artifactId>
1057                                 <version>${commons.lang.version}</version>
1058                             </additionalDependency>
1059                         </additionalDependencies>
1060                     </configuration>
1061
1062                     <executions>
1063                         <execution>
1064                             <id>aggregate</id>
1065                             <goals>
1066                                 <goal>aggregate</goal>
1067                             </goals>
1068                             <phase>site</phase>
1069
1070                         </execution>
1071                     </executions>
1072                 </plugin>
1073                 <plugin>
1074                     <artifactId>maven-source-plugin</artifactId>
1075                     <version>2.1.1</version>
1076                     <executions>
1077                         <execution>
1078                             <id>bundle-sources</id>
1079                             <phase>package</phase>
1080                             <goals>
1081                                 <!-- produce source artifact for main project
1082                                     sources -->
1083                                 <goal>jar-no-fork</goal>
1084
1085                                 <!-- produce source artifact for project
1086                                     test sources -->
1087                                 <goal>test-jar-no-fork</goal>
1088                             </goals>
1089                         </execution>
1090                     </executions>
1091                 </plugin>
1092
1093
1094             </plugins>
1095
1096         </pluginManagement>
1097
1098         <plugins>
1099             <!-- Plugins from ONAP oparent -->
1100             <plugin>
1101                 <artifactId>maven-checkstyle-plugin</artifactId>
1102             </plugin>
1103             <plugin>
1104                 <groupId>org.codehaus.mojo</groupId>
1105                 <artifactId>build-helper-maven-plugin</artifactId>
1106                 <version>1.12</version>
1107             </plugin>
1108             <!-- Jacoco / Sonar -->
1109             <plugin>
1110                 <groupId>org.jacoco</groupId>
1111                 <artifactId>jacoco-maven-plugin</artifactId>
1112             </plugin>
1113             <plugin>
1114                 <groupId>org.apache.maven.plugins</groupId>
1115                 <artifactId>maven-surefire-plugin</artifactId>
1116             </plugin>
1117             <plugin>
1118                 <groupId>org.apache.maven.plugins</groupId>
1119                 <artifactId>maven-failsafe-plugin</artifactId>
1120             </plugin>
1121
1122             <!-- End of plugins from ONAP oparent -->
1123             <plugin>
1124                 <groupId>org.codehaus.mojo</groupId>
1125                 <artifactId>properties-maven-plugin</artifactId>
1126                 <version>1.0.0</version>
1127                 <executions>
1128                     <execution>
1129                         <goals>
1130                             <goal>set-system-properties</goal>
1131                         </goals>
1132                         <configuration>
1133                             <properties>
1134                                 <property>
1135                                     <name>maven.wagon.http.ssl.allowall</name>
1136                                     <value>${ssl.allowall}</value>
1137                                 </property>
1138                                 <property>
1139                                     <name>maven.wagon.http.ssl.insecure</name>
1140                                     <value>${ssl.insecure}</value>
1141                                 </property>
1142                             </properties>
1143                         </configuration>
1144                     </execution>
1145                 </executions>
1146             </plugin>
1147             <plugin>
1148                 <groupId>org.sonatype.plugins</groupId>
1149                 <artifactId>nexus-staging-maven-plugin</artifactId>
1150                 <version>1.6.7</version>
1151                 <extensions>true</extensions>
1152                 <configuration>
1153                     <nexusUrl>${onap.nexus.url}</nexusUrl>
1154                     <stagingProfileId>176c31dfe190a</stagingProfileId>
1155                     <serverId>ecomp-staging</serverId>
1156                 </configuration>
1157             </plugin>
1158             <plugin>
1159                 <groupId>org.codehaus.mojo</groupId>
1160                 <artifactId>versions-maven-plugin</artifactId>
1161                 <version>2.5</version>
1162                  <configuration>
1163                     <processAllModules>true</processAllModules>
1164                 </configuration>
1165             </plugin>
1166             <plugin>
1167                 <artifactId>maven-scm-plugin</artifactId>
1168                 <version>1.8.1</version>
1169                 <configuration>
1170                     <tag>${project.artifactId}-${project.version}</tag>
1171                 </configuration>
1172             </plugin>
1173         </plugins>
1174     </build>
1175     <organization>
1176         <name>ONAP</name>
1177     </organization>
1178 </project>