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