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