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