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