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