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