4c3f4c06e98d33256f4de78c40019c35bcfb7b04
[ccsdk/parent.git] / odlparent / bundle-parent / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <project xmlns="http://maven.apache.org/POM/4.0.0"
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>bundle-parent</artifactId>
14         <version>1.3.0-SNAPSHOT</version>
15
16         <parent>
17                 <groupId>org.opendaylight.odlparent</groupId>
18                 <artifactId>bundle-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.5.0-SNAPSHOT</ccsdk.sli.core.version>
97                 <ccsdk.sli.adaptors.version>0.5.0-SNAPSHOT</ccsdk.sli.adaptors.version>
98                 <ccsdk.sli.northbound.version>0.5.0-SNAPSHOT</ccsdk.sli.northbound.version>
99                 <ccsdk.sli.plugins.version>0.5.0-SNAPSHOT</ccsdk.sli.plugins.version>
100                 <ccsdk.distribution.version>0.5.0-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.12</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>4.3.18.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                                                 <version>2.1.8</version>
479                                                 <dependencies>
480                                                         <dependency>
481                                                                 <groupId>org.opendaylight.mdsal</groupId>
482                                                                 <artifactId>maven-sal-api-gen-plugin</artifactId>
483                                                                 <version>${odl.mdsal.model.version}</version>
484                                                                 <type>jar</type>
485                                                         </dependency>
486                                                         <dependency>
487                                                                 <groupId>org.opendaylight.netconf</groupId>
488                                                                 <artifactId>sal-rest-docgen-maven</artifactId>
489                                                                 <version>${odl.netconf.sal.rest.docgen.version}</version>
490                                                                 <type>jar</type>
491                                                         </dependency>
492                                                 </dependencies>
493                                                 <executions>
494                                                         <execution>
495                                                                 <goals>
496                                                                         <goal>generate-sources</goal>
497                                                                 </goals>
498                                                                 <configuration>
499                                                                         <yangFilesRootDir>${yang.file.directory}</yangFilesRootDir>
500                                                                         <codeGenerators>
501                                                                                 <generator>
502                                                                                         <codeGeneratorClass>org.opendaylight.mdsal.binding.maven.api.gen.plugin.CodeGeneratorImpl</codeGeneratorClass>
503                                                                                         <outputBaseDir>${salGeneratorPath}</outputBaseDir>
504                                                                                 </generator>
505                                                                                 <generator>
506                                                                                         <codeGeneratorClass>org.opendaylight.netconf.sal.rest.doc.maven.StaticDocGenerator</codeGeneratorClass>
507                                                                                         <outputBaseDir>target/swagger</outputBaseDir>
508                                                                                 </generator>
509                                                                         </codeGenerators>
510                                                                         <inspectDependencies>true</inspectDependencies>
511                                                                 </configuration>
512                                                         </execution>
513                                                 </executions>
514                                         </plugin>
515                                 </plugins>
516                         </build>
517                 </profile>
518
519         </profiles>
520
521
522         <dependencyManagement>
523                 <dependencies>
524                         <dependency>
525                                 <groupId>org.opendaylight.controller</groupId>
526                                 <artifactId>mdsal-artifacts</artifactId>
527                                 <version>${odl.controller.mdsal.version}</version>
528                                 <type>pom</type>
529                                 <scope>import</scope>
530                         </dependency>
531                         <dependency>
532                                 <groupId>org.opendaylight.mdsal</groupId>
533                                 <artifactId>mdsal-artifacts</artifactId>
534                                 <version>${odl.mdsal.version}</version>
535                                 <type>pom</type>
536                                 <scope>import</scope>
537                         </dependency>
538                         <dependency>
539                                 <groupId>org.opendaylight.mdsal.model</groupId>
540                                 <artifactId>mdsal-model-artifacts</artifactId>
541                                 <version>${odl.mdsal.model.version}</version>
542                                 <type>pom</type>
543                                 <scope>import</scope>
544                         </dependency>
545                         <dependency>
546                                 <groupId>org.opendaylight.netconf</groupId>
547                                 <artifactId>netconf-artifacts</artifactId>
548                                 <version>${odl.netconf.netconf.version}</version>
549                                 <type>pom</type>
550                                 <scope>import</scope>
551                         </dependency>
552                         <dependency>
553                                 <groupId>org.opendaylight.netconf</groupId>
554                                 <artifactId>restconf-artifacts</artifactId>
555                                 <version>${odl.netconf.restconf.version}</version>
556                                 <type>pom</type>
557                                 <scope>import</scope>
558                         </dependency>
559                         <dependency>
560                             <groupId>com.fasterxml.jackson</groupId>
561                             <artifactId>jackson-bom</artifactId>
562                             <version>${jackson.bom.version}</version>
563                             <type>pom</type>
564                             <scope>import</scope>
565                         </dependency>
566
567                         <dependency>
568                                 <groupId>org.opendaylight.controller</groupId>
569                                 <artifactId>sal-test-model</artifactId>
570                                 <version>${odl.controller.mdsal.version}</version>
571                         </dependency>
572                         <dependency>
573                                 <groupId>org.opendaylight.controller</groupId>
574                                 <artifactId>sal-binding-broker-impl</artifactId>
575                                 <version>${odl.controller.mdsal.version}</version>
576                         </dependency>
577                         <dependency>
578                                 <groupId>org.opendaylight.controller</groupId>
579                                 <artifactId>sal-binding-broker-impl</artifactId>
580                                 <version>${odl.controller.mdsal.version}</version>
581                                 <type>test-jar</type>
582                                 <classifier>tests</classifier>
583                                 <scope>test</scope>
584                         </dependency>
585                         <dependency>
586                                 <groupId>junit</groupId>
587                                 <artifactId>junit</artifactId>
588                                 <version>${junit.version}</version>
589                                 <scope>test</scope>
590                         </dependency>
591
592                         <dependency>
593                                 <groupId>org.testng</groupId>
594                                 <artifactId>testng</artifactId>
595                                 <version>6.11</version>
596                         </dependency>
597                         <dependency>
598                                 <groupId>org.springframework</groupId>
599                                 <artifactId>spring-test</artifactId>
600                                 <version>${spring.version}</version>
601                         </dependency>
602                         <dependency>
603                                 <groupId>org.springframework</groupId>
604                                 <artifactId>spring-beans</artifactId>
605                                 <version>${spring.version}</version>
606                         </dependency>
607                         <dependency>
608                                 <groupId>org.springframework</groupId>
609                                 <artifactId>spring-context</artifactId>
610                                 <version>${spring.version}</version>
611                         </dependency>
612                         <dependency>
613                                 <groupId>com.att.eelf</groupId>
614                                 <artifactId>eelf-core</artifactId>
615                                 <version>${eelf.version}</version>
616                         </dependency>
617                         <dependency>
618                                 <groupId>org.apache.derby</groupId>
619                                 <artifactId>derby</artifactId>
620                                 <version>${derby.version}</version>
621                                 <scope>test</scope>
622                         </dependency>
623                 </dependencies>
624
625         </dependencyManagement>
626
627         <pluginRepositories>
628                 <pluginRepository>
629                         <id>onap-public</id>
630                         <url>${onap.nexus.public-url}</url>
631                         <releases>
632                                 <enabled>true</enabled>
633                         </releases>
634                         <snapshots>
635                                 <enabled>true</enabled>
636                         </snapshots>
637                 </pluginRepository>
638                 <pluginRepository>
639                         <id>onap-staging</id>
640                         <url>${onap.nexus.staging-url}</url>
641                         <releases>
642                                 <enabled>true</enabled>
643                         </releases>
644                         <snapshots>
645                                 <enabled>true</enabled>
646                         </snapshots>
647                 </pluginRepository>
648                 <pluginRepository>
649                         <id>onap-snapshot</id>
650                         <url>${onap.nexus.snapshot-url}</url>
651                         <releases>
652                                 <enabled>false</enabled>
653                         </releases>
654                         <snapshots>
655                                 <enabled>true</enabled>
656                         </snapshots>
657                 </pluginRepository>
658                 <pluginRepository>
659                         <id>opendaylight-mirror</id>
660                         <name>opendaylight-mirror</name>
661                         <url>${opendaylight.nexus.public-url}</url>
662                         <releases>
663                                 <enabled>true</enabled>
664                                 <updatePolicy>never</updatePolicy>
665                         </releases>
666                         <snapshots>
667                                 <enabled>false</enabled>
668                         </snapshots>
669                 </pluginRepository>
670                 <pluginRepository>
671                         <id>opendaylight-snapshot</id>
672                         <name>opendaylight-snapshot</name>
673                         <url>${opendaylight.nexus.snapshot-url}</url>
674                         <releases>
675                                 <enabled>false</enabled>
676                         </releases>
677                         <snapshots>
678                                 <enabled>true</enabled>
679                         </snapshots>
680                 </pluginRepository>
681                 <!-- Black Duck plugin dependencies -->
682                 <pluginRepository>
683                         <id>JCenter</id>
684                         <name>JCenter Repository</name>
685                         <url>http://jcenter.bintray.com</url>
686                 </pluginRepository>
687
688                 <pluginRepository>
689                         <id>Restlet</id>
690                         <name>Restlet Repository</name>
691                         <url>http://maven.restlet.com</url>
692                 </pluginRepository>
693         </pluginRepositories>
694
695
696         <repositories>
697                 <repository>
698                         <id>onap-public</id>
699                         <url>https://nexus.onap.org/content/groups/public</url>
700                         <releases>
701                                 <enabled>true</enabled>
702                                 <updatePolicy>never</updatePolicy>
703                         </releases>
704                         <snapshots>
705                                 <enabled>true</enabled>
706                                 <updatePolicy>always</updatePolicy>
707                         </snapshots>
708                 </repository>
709                 <repository>
710                         <id>onap-staging</id>
711                         <url>https://nexus.onap.org/content/groups/staging</url>
712                         <releases>
713                                 <enabled>true</enabled>
714                                 <updatePolicy>never</updatePolicy>
715                         </releases>
716                         <snapshots>
717                                 <enabled>true</enabled>
718                                 <updatePolicy>always</updatePolicy>
719                         </snapshots>
720                 </repository>
721                 <repository>
722                         <id>ecomp-release</id>
723                         <name>onap-repository-releases</name>
724                         <url>https://nexus.onap.org/content/repositories/releases</url>
725                         <releases>
726                                 <enabled>true</enabled>
727                                 <updatePolicy>never</updatePolicy>
728                         </releases>
729                         <snapshots>
730                                 <enabled>false</enabled>
731                         </snapshots>
732                 </repository>
733                 <repository>
734                         <id>ecomp-snapshot</id>
735                         <name>onap-repository-snapshots</name>
736                         <url>https://nexus.onap.org/content/repositories/snapshots</url>
737                         <releases>
738                                 <enabled>false</enabled>
739                         </releases>
740                         <snapshots>
741                                 <enabled>true</enabled>
742                         </snapshots>
743                 </repository>
744                 <repository>
745                         <id>opendaylight-mirror</id>
746                         <name>opendaylight-mirror</name>
747                         <url>https://nexus.opendaylight.org/content/repositories/public/</url>
748                         <releases>
749                                 <enabled>true</enabled>
750                                 <updatePolicy>never</updatePolicy>
751                         </releases>
752                         <snapshots>
753                                 <enabled>false</enabled>
754                         </snapshots>
755                 </repository>
756                 <repository>
757                         <id>opendaylight-snapshot</id>
758                         <name>opendaylight-snapshot</name>
759                         <url>https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/</url>
760                         <releases>
761                                 <enabled>false</enabled>
762                         </releases>
763                         <snapshots>
764                                 <enabled>true</enabled>
765                         </snapshots>
766                 </repository>
767
768         </repositories>
769
770         <distributionManagement>
771                 <repository>
772                         <id>ecomp-releases</id>
773                         <url>https://nexus.onap.org/content/repositories/releases</url>
774                 </repository>
775                 <snapshotRepository>
776                         <id>ecomp-snapshots</id>
777                         <url>https://nexus.onap.org/content/repositories/snapshots</url>
778                 </snapshotRepository>
779         </distributionManagement>
780
781         <build>
782                 <pluginManagement>
783                         <plugins>
784
785                                 <!-- Plugins from ONAP version (parent of oparent) -->
786
787                                 <plugin>
788                                         <groupId>org.apache.maven.plugins</groupId>
789                                         <artifactId>maven-deploy-plugin</artifactId>
790                                         <!-- This version supports the "deployAtEnd" parameter -->
791                                         <version>2.8</version>
792                                         <configuration>
793                                                 <skip />
794                                         </configuration>
795                                 </plugin>
796                                 <plugin>
797                                         <groupId>org.apache.maven.plugins</groupId>
798                                         <artifactId>maven-site-plugin</artifactId>
799                                         <version>3.6</version>
800                                         <dependencies>
801                                                 <dependency>
802                                                         <groupId>org.apache.maven.wagon</groupId>
803                                                         <artifactId>wagon-webdav-jackrabbit</artifactId>
804                                                         <version>2.10</version>
805                                                 </dependency>
806                                         </dependencies>
807                                 </plugin>
808                                 <plugin>
809                                         <groupId>org.apache.maven.plugins</groupId>
810                                         <artifactId>maven-enforcer-plugin</artifactId>
811                                         <version>3.0.0-M2</version>
812                                         <executions>
813                                                 <execution>
814                                                         <id>enforce-property</id>
815                                                         <goals>
816                                                                 <goal>enforce</goal>
817                                                         </goals>
818                                                         <configuration>
819                                                                 <rules>
820                                                                         <requireProperty>
821                                                                                 <property>onap.nexus.url</property>
822                                                                                 <message>You must set a onap.nexus.url property in your
823                                                                                         ~/.m2/settings.xml. See oparent/settings.xml for an example.</message>
824                                                                         </requireProperty>
825                                                                 </rules>
826                                                                 <fail>true</fail>
827                                                         </configuration>
828                                                 </execution>
829                                                 <execution>
830                                                         <id>enforce-no-snapshots</id>
831                                                         <goals>
832                                                                 <goal>enforce</goal>
833                                                         </goals>
834                                                         <configuration>
835                                                                 <rules>
836                                                                         <requireReleaseDeps>
837                                                                                 <failWhenParentIsSnapshot>false</failWhenParentIsSnapshot>
838                                                                                 <onlyWhenRelease>true</onlyWhenRelease>
839                                                                                 <level>WARN</level>
840                                                                         </requireReleaseDeps>
841                                                                 </rules>
842                                                         </configuration>
843                                                 </execution>
844                                         </executions>
845                                 </plugin>
846                                 <!-- https://mvnrepository.com/artifact/org.sonarsource.scanner.maven/sonar-maven-plugin -->
847                                 <plugin>
848                                         <groupId>org.sonarsource.scanner.maven</groupId>
849                                         <artifactId>sonar-maven-plugin</artifactId>
850                                         <version>3.2</version>
851                                 </plugin>
852                                 <!-- end of plugins from ONAP version (parent of oparent) -->
853
854                                 <!-- Plugins from ONAP oparent -->
855
856                                 <plugin>
857                                         <groupId>org.jacoco</groupId>
858                                         <artifactId>jacoco-maven-plugin</artifactId>
859                                         <version>${jacoco.version}</version>
860                                         <configuration>
861                                                 <!-- Note: This exclusion list should match <sonar.exclusions> property 
862                                                         above -->
863                                                 <excludes>
864                                                         <exclude>**/gen/**</exclude>
865                                                         <exclude>**/generated-sources/**</exclude>
866                                                         <exclude>**/yang-gen/**</exclude>
867                                                         <exclude>**/pax/**</exclude>
868                                                 </excludes>
869                                         </configuration>
870                                         <executions>
871                                                 <!-- Prepares the property pointing to the JaCoCo runtime agent which 
872                                                         is passed as VM argument when Maven the Surefire plugin is executed. -->
873                                                 <execution>
874                                                         <id>pre-unit-test</id>
875                                                         <goals>
876                                                                 <goal>prepare-agent</goal>
877                                                         </goals>
878                                                         <configuration>
879                                                                 <!-- Sets the path to the file which contains the execution data. -->
880                                                                 <destFile>${project.build.directory}/code-coverage/jacoco-ut.exec</destFile>
881                                                                 <!-- Sets the name of the property containing the settings for JaCoCo 
882                                                                         runtime agent. -->
883                                                                 <propertyName>surefireArgLine</propertyName>
884                                                         </configuration>
885                                                 </execution>
886                                                 <!-- Ensures that the code coverage report for unit tests is created 
887                                                         after unit tests have been run. -->
888                                                 <execution>
889                                                         <id>post-unit-test</id>
890                                                         <phase>test</phase>
891                                                         <goals>
892                                                                 <goal>report</goal>
893                                                         </goals>
894                                                         <configuration>
895                                                                 <!-- Sets the path to the file which contains the execution data. -->
896                                                                 <dataFile>${project.build.directory}/code-coverage/jacoco-ut.exec</dataFile>
897                                                                 <!-- Sets the output directory for the code coverage report. -->
898                                                                 <outputDirectory>${project.reporting.outputDirectory}/jacoco-ut</outputDirectory>
899                                                         </configuration>
900                                                 </execution>
901                                                 <execution>
902                                                         <id>pre-integration-test</id>
903                                                         <phase>pre-integration-test</phase>
904                                                         <goals>
905                                                                 <goal>prepare-agent</goal>
906                                                         </goals>
907                                                         <configuration>
908                                                                 <!-- Sets the path to the file which contains the execution data. -->
909                                                                 <destFile>${project.build.directory}/code-coverage/jacoco-it.exec</destFile>
910                                                                 <!-- Sets the name of the property containing the settings for JaCoCo 
911                                                                         runtime agent. -->
912                                                                 <propertyName>failsafeArgLine</propertyName>
913                                                         </configuration>
914                                                 </execution>
915                                                 <!-- Ensures that the code coverage report for integration tests after 
916                                                         integration tests have been run. -->
917                                                 <execution>
918                                                         <id>post-integration-test</id>
919                                                         <phase>post-integration-test</phase>
920                                                         <goals>
921                                                                 <goal>report</goal>
922                                                         </goals>
923                                                         <configuration>
924                                                                 <!-- Sets the path to the file which contains the execution data. -->
925                                                                 <dataFile>${project.build.directory}/code-coverage/jacoco-it.exec</dataFile>
926                                                                 <!-- Sets the output directory for the code coverage report. -->
927                                                                 <outputDirectory>${project.reporting.outputDirectory}/jacoco-it</outputDirectory>
928                                                         </configuration>
929                                                 </execution>
930                                         </executions>
931                                 </plugin>
932                                 <plugin>
933                                         <groupId>org.apache.maven.plugins</groupId>
934                                         <artifactId>maven-surefire-plugin</artifactId>
935                                         <version>2.22.0</version>
936                                         <configuration>
937                                                 <!-- Sets the VM argument line used when unit tests are run. -->
938                                                 <argLine>${surefireArgLine}</argLine>
939                                                 <!-- Excludes integration tests when unit tests are run. -->
940                                                 <excludes>
941                                                         <exclude>**/IT*.java</exclude>
942                                                 </excludes>
943                                         </configuration>
944                                 </plugin>
945                                 <plugin>
946                                         <groupId>org.apache.maven.plugins</groupId>
947                                         <artifactId>maven-failsafe-plugin</artifactId>
948                                         <version>2.22.0</version>
949                                         <executions>
950                                                 <!-- Ensures that both integration-test and verify goals of the Failsafe 
951                                                         Maven plugin are executed. -->
952                                                 <execution>
953                                                         <id>integration-tests</id>
954                                                         <goals>
955                                                                 <goal>integration-test</goal>
956                                                                 <goal>verify</goal>
957                                                         </goals>
958                                                         <configuration>
959                                                                 <!-- Sets the VM argument line used when integration tests are run. -->
960                                                                 <argLine>${failsafeArgLine}</argLine>
961                                                         </configuration>
962                                                 </execution>
963                                         </executions>
964                                 </plugin>
965
966                                 <!-- End of plugins from ONAP oparent -->
967                                 <plugin>
968                                         <groupId>org.codehaus.mojo</groupId>
969                                         <artifactId>properties-maven-plugin</artifactId>
970                                         <version>1.0.0</version>
971                                         <executions>
972                                                 <execution>
973                                                         <goals>
974                                                                 <goal>set-system-properties</goal>
975                                                         </goals>
976                                                         <configuration>
977                                                                 <properties>
978                                                                         <property>
979                                                                                 <name>maven.wagon.http.ssl.allowall</name>
980                                                                                 <value>${ssl.allowall}</value>
981                                                                         </property>
982                                                                         <property>
983                                                                                 <name>maven.wagon.http.ssl.insecure</name>
984                                                                                 <value>${ssl.insecure}</value>
985                                                                         </property>
986                                                                 </properties>
987                                                         </configuration>
988                                                 </execution>
989                                         </executions>
990                                 </plugin>
991
992                                 <plugin>
993                                         <groupId>org.codehaus.mojo</groupId>
994                                         <artifactId>versions-maven-plugin</artifactId>
995                                         <version>2.5</version>
996                                         <configuration>
997                                                 <processAllModules>true</processAllModules>
998                                         </configuration>
999                                 </plugin>
1000                                 <plugin>
1001                                         <artifactId>maven-scm-plugin</artifactId>
1002                                         <version>1.8.1</version>
1003                                         <configuration>
1004                                                 <tag>${project.artifactId}-${project.version}</tag>
1005                                         </configuration>
1006                                 </plugin>
1007                         </plugins>
1008                 </pluginManagement>
1009                 <plugins>
1010
1011                         <!-- Plugins from oparent version (parent of oparent) -->
1012                         <plugin>
1013                                 <groupId>org.apache.maven.plugins</groupId>
1014                                 <artifactId>maven-deploy-plugin</artifactId>
1015                         </plugin>
1016                         <plugin>
1017                                 <groupId>org.apache.maven.plugins</groupId>
1018                                 <artifactId>maven-site-plugin</artifactId>
1019                         </plugin>
1020                         <plugin>
1021                                 <groupId>org.apache.maven.plugins</groupId>
1022                                 <artifactId>maven-enforcer-plugin</artifactId>
1023                         </plugin>
1024                         <!-- end of plugins from oparent version (parent of oparent) -->
1025
1026                         <!-- Plugins from oparent -->
1027                         <plugin>
1028                                 <artifactId>maven-checkstyle-plugin</artifactId>
1029                                 <version>2.17</version>
1030                                 <dependencies>
1031                                         <dependency>
1032                                                 <groupId>org.onap.oparent</groupId>
1033                                                 <artifactId>checkstyle</artifactId>
1034                                                 <version>1.2.2</version>
1035                                         </dependency>
1036                                 </dependencies>
1037                                 <executions>
1038                                         <execution>
1039                                                 <id>onap-license</id>
1040                                                 <goals>
1041                                                         <goal>check</goal>
1042                                                 </goals>
1043                                                 <phase>process-sources</phase>
1044                                                 <configuration>
1045                                                         <configLocation>onap-checkstyle/check-license.xml</configLocation>
1046                                                         <includeResources>false</includeResources>
1047                                                         <includeTestSourceDirectory>true</includeTestSourceDirectory>
1048                                                         <includeTestResources>false</includeTestResources>
1049                                                         <sourceDirectory>${project.build.sourceDirectory}</sourceDirectory>
1050                                                         <excludes>
1051                                                         </excludes>
1052                                                         <consoleOutput>true</consoleOutput>
1053                                                         <failsOnViolation>false</failsOnViolation>
1054                                                 </configuration>
1055                                         </execution>
1056                                         <execution>
1057                                                 <id>onap-java-style</id>
1058                                                 <goals>
1059                                                         <goal>check</goal>
1060                                                 </goals>
1061                                                 <phase>process-sources</phase>
1062                                                 <configuration>
1063                                                         <!-- Use Google Java Style Guide: https://github.com/checkstyle/checkstyle/blob/master/src/main/resources/google_checks.xml 
1064                                                                 with minor changes -->
1065                                                         <configLocation>onap-checkstyle/onap-java-style.xml</configLocation>
1066                                                         <!-- <sourceDirectory> is needed so that checkstyle ignores the generated 
1067                                                                 sources directory -->
1068                                                         <sourceDirectory>${project.build.sourceDirectory}/src/main/java</sourceDirectory>
1069                                                         <includeResources>true</includeResources>
1070                                                         <includeTestSourceDirectory>true</includeTestSourceDirectory>
1071                                                         <includeTestResources>true</includeTestResources>
1072                                                         <excludes>
1073                                                         </excludes>
1074                                                         <consoleOutput>true</consoleOutput>
1075                                                         <failsOnViolation>false</failsOnViolation>
1076                                                 </configuration>
1077                                         </execution>
1078                                 </executions>
1079                         </plugin>
1080                         <plugin>
1081                                 <groupId>org.codehaus.mojo</groupId>
1082                                 <artifactId>build-helper-maven-plugin</artifactId>
1083                                 <version>1.12</version>
1084                         </plugin>
1085                         <!-- Jacoco / Sonar -->
1086                         <plugin>
1087                                 <groupId>org.jacoco</groupId>
1088                                 <artifactId>jacoco-maven-plugin</artifactId>
1089                         </plugin>
1090                         <plugin>
1091                                 <groupId>org.apache.maven.plugins</groupId>
1092                                 <artifactId>maven-surefire-plugin</artifactId>
1093                         </plugin>
1094                         <plugin>
1095                                 <groupId>org.apache.maven.plugins</groupId>
1096                                 <artifactId>maven-failsafe-plugin</artifactId>
1097                         </plugin>
1098                         <!-- end of plugins from oparent -->
1099                         <plugin>
1100                             <groupId>org.apache.maven.plugins</groupId>
1101                             <artifactId>maven-javadoc-plugin</artifactId>
1102                             <version>2.10.4</version>
1103                             <executions>
1104                                 <execution>
1105                                     <id>attach-javadocs</id>
1106                                     <goals>
1107                                         <goal>jar</goal>
1108                                     </goals>
1109                                     <configuration>
1110                                         <additionalparam>-Xdoclint:none</additionalparam>
1111                                     </configuration>
1112                                 </execution>
1113                             </executions>
1114                         </plugin>
1115                 </plugins>
1116         </build>
1117     <reporting>
1118                 <plugins>
1119                         <plugin>
1120                                 <artifactId>maven-javadoc-plugin</artifactId>
1121                                 <version>2.10.4</version>
1122                                 <configuration>
1123                                         <failOnError>false</failOnError>
1124                                         <additionalparam>-Xdoclint:none</additionalparam>
1125                                 </configuration>
1126                         </plugin>
1127                 </plugins>
1128         </reporting>
1129         <organization>
1130                 <name>ONAP</name>
1131         </organization>
1132 </project>