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