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