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