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