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