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