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