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