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