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