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