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