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