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