Roll snapshot parent pom back to snapshot versions
[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.2.0-SNAPSHOT</version>
10
11         <parent>
12                 <groupId>org.springframework.boot</groupId>
13                 <artifactId>spring-boot-starter-parent</artifactId>
14                 <version>2.1.0.RELEASE</version>
15                 <relativePath/>
16         </parent>
17
18
19         <url>http://wiki.onap.org</url>
20         <name>ONAP :: ${project.groupId} :: ${project.artifactId}</name>
21         <description>Root POM to be used in place of odlparent for CCSDK based projects</description>
22
23
24         <issueManagement>
25                 <system>JIRA</system>
26                 <url>https://jira.onap.org/</url>
27         </issueManagement>
28
29         <properties>
30
31                 <!-- properties from oparent -->
32                 <maven.compiler.source>1.8</maven.compiler.source>
33                 <maven.compiler.target>1.8</maven.compiler.target>
34                 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
35                 <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
36                 <onap.nexus.url>https://nexus.onap.org</onap.nexus.url>
37                 <!-- sitePath may be overridden in the inheriting POM if desired -->
38                 <sitePath>/content/sites/site/${project.groupId}/${project.artifactId}/${project.version}</sitePath>
39                 <jacoco.version>0.7.7.201606060606</jacoco.version>
40                 <sonar-jacoco-listeners.version>3.2</sonar-jacoco-listeners.version>
41                 <sonar.core.codeCoveragePlugin>jacoco</sonar.core.codeCoveragePlugin>
42                 <!-- Default Sonar configuration -->
43                 <sonar.jacoco.reportPaths>target/code-coverage/jacoco-ut.exec,target/code-coverage/jacoco-it.exec</sonar.jacoco.reportPaths>
44                 <!-- Note: This list should match jacoco-maven-plugin's exclusion list 
45                         below -->
46                 <sonar.exclusions>**/gen/**,**/generated-sources/**,**/yang-gen**,**/pax/**</sonar.exclusions>
47                 <!-- If following file exist, auto-generation of swagger.json will be done -->
48                 <swagger-properties>${basedir}/src/main/resources/swagger.properties</swagger-properties>
49                 <!-- If following file exist, auto-generation of sdk will be done -->
50                 <swagger-json>${basedir}/src/main/resources/swagger.json</swagger-json>
51                 <!-- end of properties from oparent -->
52
53                 <!-- ONAP repositories -->
54                 <onap.nexus.host>nexus.onap.org</onap.nexus.host>
55                 <onap.nexus.port>443</onap.nexus.port>
56                 <onap.nexus.protocol>https</onap.nexus.protocol>
57                 <onap.nexus.public-url>https://nexus.onap.org/content/groups/public</onap.nexus.public-url>
58                 <onap.nexus.staging-url>https://nexus.onap.org/content/groups/staging</onap.nexus.staging-url>
59                 <onap.nexus.release-url>https://nexus.onap.org/content/repositories/releases</onap.nexus.release-url>
60                 <onap.nexus.snapshot-url>https://nexus.onap.org/content/repositories/snapshots</onap.nexus.snapshot-url>
61                 <onap.nexus.staging.server-id>ecomp-staging</onap.nexus.staging.server-id>
62                 <onap.nexus.staging.profile-id>176c31dfe190a</onap.nexus.staging.profile-id>
63
64
65                 <java.version.source>1.8</java.version.source>
66                 <java.version.target>1.8</java.version.target>
67                 <bundle.plugin.version>2.5.0</bundle.plugin.version>
68                 <maven.compile.plugin.version>2.5.1</maven.compile.plugin.version>
69                 <features.file>features.xml</features.file>
70                 <jmxGeneratorPath>src/main/yang-gen-config</jmxGeneratorPath>
71                 <salGeneratorPath>src/main/yang-gen-sal</salGeneratorPath>
72                 <checkstyle.skip>true</checkstyle.skip>
73
74
75                 <sonar.language>java</sonar.language>
76                 <sonar.java.coveragePlugin>jacoco</sonar.java.coveragePlugin>
77                 <sonar.surefire.reportsPath>${project.build.directory}/surefire-reports</sonar.surefire.reportsPath>
78                 <sonar.jacoco.reportMissing.force.zero>true</sonar.jacoco.reportMissing.force.zero>
79                 <sonar.projectVersion>${project.version}</sonar.projectVersion>
80
81
82
83
84                 <!-- CCSDK component versions -->
85                 <ccsdk.sli.core.version>0.4.0-SNAPSHOT</ccsdk.sli.core.version>
86                 <ccsdk.sli.adaptors.version>0.4.0-SNAPSHOT</ccsdk.sli.adaptors.version>
87                 <ccsdk.sli.northbound.version>0.4.0-SNAPSHOT</ccsdk.sli.northbound.version>
88                 <ccsdk.sli.plugins.version>0.4.0-SNAPSHOT</ccsdk.sli.plugins.version>
89                 <ccsdk.distribution.version>0.4.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         </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
331         </profiles>
332
333
334         <dependencyManagement>
335                 <dependencies>
336                         <dependency>
337                                 <groupId>org.onap.ccsdk.sli.core</groupId>
338                                 <artifactId>sli-common</artifactId>
339                                 <version>${ccsdk.sli.core.version}</version>
340                         </dependency>
341
342                         <dependency>
343                                 <groupId>org.onap.ccsdk.sli.core</groupId>
344                                 <artifactId>sli-provider</artifactId>
345                                 <version>${ccsdk.sli.core.version}</version>
346                         </dependency>
347                         <dependency>
348                                 <groupId>org.onap.ccsdk.sli.core</groupId>
349                                 <artifactId>ccsdk-sli</artifactId>
350                                 <version>${ccsdk.sli.core.version}</version>
351                                 <type>xml</type>
352                                 <classifier>features</classifier>
353                         </dependency>
354                         <dependency>
355                                 <groupId>org.onap.ccsdk.sli.adaptors</groupId>
356                                 <artifactId>aai-service-provider</artifactId>
357                                 <version>${sdnctl.aai.service.version}</version>
358                         </dependency>
359
360                         <dependency>
361                                 <groupId>org.onap.ccsdk.sli.core</groupId>
362                                 <artifactId>dblib-provider</artifactId>
363                                 <version>${sdnctl.dblib.version}</version>
364                         </dependency>
365
366                 </dependencies>
367
368         </dependencyManagement>
369
370
371         <reporting>
372                 <plugins>
373                         <plugin>
374                                 <artifactId>maven-javadoc-plugin</artifactId>
375                                 <version>2.10.4</version>
376                                 <configuration>
377                                         <failOnError>false</failOnError>
378                                         <doclet>org.umlgraph.doclet.UmlGraphDoc</doclet>
379                                         <docletArtifact>
380                                                 <groupId>org.umlgraph</groupId>
381                                                 <artifactId>umlgraph</artifactId>
382                                                 <version>5.6</version>
383                                         </docletArtifact>
384                                         <additionalparam>-views</additionalparam>
385                                         <useStandardDocletOptions>true</useStandardDocletOptions>
386                                         <excludePackageNames>org.opendaylight.*</excludePackageNames>
387                                 </configuration>
388                                 <reportSets>
389                                         <reportSet>
390                                                 <reports>
391                                                         <report>javadoc-no-fork</report>
392                                                         <report>test-javadoc-no-fork</report>
393                                                 </reports>
394                                         </reportSet>
395                                         <reportSet>
396                                                 <id>aggregate</id>
397                                                 <reports>
398                                                         <report>aggregate</report>
399                                                         <report>test-aggregate</report>
400                                                 </reports>
401                                         </reportSet>
402                                 </reportSets>
403                         </plugin>
404                         <plugin>
405                                 <groupId>org.apache.maven.plugins</groupId>
406                                 <artifactId>maven-jxr-plugin</artifactId>
407                                 <version>2.3</version>
408                                 <reportSets>
409                                         <reportSet>
410                                                 <id>aggregate</id>
411                                                 <reports>
412                                                         <report>aggregate</report>
413                                                         <report>test-aggregate</report>
414                                                 </reports>
415                                         </reportSet>
416                                 </reportSets>
417                         </plugin>
418
419                         <plugin>
420                                 <artifactId>maven-surefire-plugin</artifactId>
421                                 <version>2.17</version>
422                         </plugin>
423                         <plugin>
424                                 <groupId>org.apache.maven.plugins</groupId>
425                                 <artifactId>maven-changelog-plugin</artifactId>
426                                 <version>2.3</version>
427                                 <reportSets>
428                                         <reportSet>
429                                                 <id>dual-report</id>
430                                                 <configuration>
431                                                         <type>range</type>
432                                                         <range>30</range>
433                                                 </configuration>
434                                                 <reports>
435                                                         <report>changelog</report>
436                                                         <report>file-activity</report>
437                                                 </reports>
438                                         </reportSet>
439                                 </reportSets>
440                         </plugin>
441                         <plugin>
442                                 <groupId>org.codehaus.mojo</groupId>
443                                 <artifactId>taglist-maven-plugin</artifactId>
444                                 <version>2.4</version>
445                         </plugin>
446                 </plugins>
447         </reporting>
448
449
450         <pluginRepositories>
451                 <pluginRepository>
452                         <id>onap-public</id>
453                         <url>${onap.nexus.public-url}</url>
454                         <releases>
455                                 <enabled>true</enabled>
456                         </releases>
457                         <snapshots>
458                                 <enabled>true</enabled>
459                         </snapshots>
460                 </pluginRepository>
461                 <pluginRepository>
462                         <id>onap-staging</id>
463                         <url>${onap.nexus.staging-url}</url>
464                         <releases>
465                                 <enabled>true</enabled>
466                         </releases>
467                         <snapshots>
468                                 <enabled>true</enabled>
469                         </snapshots>
470                 </pluginRepository>
471                 <pluginRepository>
472                         <id>onap-snapshot</id>
473                         <url>${onap.nexus.snapshot-url}</url>
474                         <releases>
475                                 <enabled>false</enabled>
476                         </releases>
477                         <snapshots>
478                                 <enabled>true</enabled>
479                         </snapshots>
480                 </pluginRepository>
481                 <pluginRepository>
482                         <id>opendaylight-mirror</id>
483                         <name>opendaylight-mirror</name>
484                         <url>${opendaylight.nexus.public-url}</url>
485                         <releases>
486                                 <enabled>true</enabled>
487                                 <updatePolicy>never</updatePolicy>
488                         </releases>
489                         <snapshots>
490                                 <enabled>false</enabled>
491                         </snapshots>
492                 </pluginRepository>
493                 <pluginRepository>
494                         <id>opendaylight-snapshot</id>
495                         <name>opendaylight-snapshot</name>
496                         <url>${opendaylight.nexus.snapshot-url}</url>
497                         <releases>
498                                 <enabled>false</enabled>
499                         </releases>
500                         <snapshots>
501                                 <enabled>true</enabled>
502                         </snapshots>
503                 </pluginRepository>
504                 <!-- Black Duck plugin dependencies -->
505                 <pluginRepository>
506                         <id>JCenter</id>
507                         <name>JCenter Repository</name>
508                         <url>http://jcenter.bintray.com</url>
509                 </pluginRepository>
510
511                 <pluginRepository>
512                         <id>Restlet</id>
513                         <name>Restlet Repository</name>
514                         <url>http://maven.restlet.com</url>
515                 </pluginRepository>
516         </pluginRepositories>
517
518
519         <repositories>
520                 <repository>
521                         <id>onap-public</id>
522                         <url>https://nexus.onap.org/content/groups/public</url>
523                         <releases>
524                                 <enabled>true</enabled>
525                                 <updatePolicy>never</updatePolicy>
526                         </releases>
527                         <snapshots>
528                                 <enabled>true</enabled>
529                                 <updatePolicy>always</updatePolicy>
530                         </snapshots>
531                 </repository>
532                 <repository>
533                         <id>onap-staging</id>
534                         <url>https://nexus.onap.org/content/groups/staging</url>
535                         <releases>
536                                 <enabled>true</enabled>
537                                 <updatePolicy>never</updatePolicy>
538                         </releases>
539                         <snapshots>
540                                 <enabled>true</enabled>
541                                 <updatePolicy>always</updatePolicy>
542                         </snapshots>
543                 </repository>
544                 <repository>
545                         <id>ecomp-release</id>
546                         <name>onap-repository-releases</name>
547                         <url>https://nexus.onap.org/content/repositories/releases</url>
548                         <releases>
549                                 <enabled>true</enabled>
550                                 <updatePolicy>never</updatePolicy>
551                         </releases>
552                         <snapshots>
553                                 <enabled>false</enabled>
554                         </snapshots>
555                 </repository>
556                 <repository>
557                         <id>ecomp-snapshot</id>
558                         <name>onap-repository-snapshots</name>
559                         <url>https://nexus.onap.org/content/repositories/snapshots</url>
560                         <releases>
561                                 <enabled>false</enabled>
562                         </releases>
563                         <snapshots>
564                                 <enabled>true</enabled>
565                         </snapshots>
566                 </repository>
567                 <repository>
568                         <id>opendaylight-mirror</id>
569                         <name>opendaylight-mirror</name>
570                         <url>https://nexus.opendaylight.org/content/repositories/public/</url>
571                         <releases>
572                                 <enabled>true</enabled>
573                                 <updatePolicy>never</updatePolicy>
574                         </releases>
575                         <snapshots>
576                                 <enabled>false</enabled>
577                         </snapshots>
578                 </repository>
579                 <repository>
580                         <id>opendaylight-snapshot</id>
581                         <name>opendaylight-snapshot</name>
582                         <url>https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/</url>
583                         <releases>
584                                 <enabled>false</enabled>
585                         </releases>
586                         <snapshots>
587                                 <enabled>true</enabled>
588                         </snapshots>
589                 </repository>
590
591         </repositories>
592
593         <distributionManagement>
594                 <repository>
595                         <id>ecomp-releases</id>
596                         <url>https://nexus.onap.org/content/repositories/releases</url>
597                 </repository>
598                 <snapshotRepository>
599                         <id>ecomp-snapshots</id>
600                         <url>https://nexus.onap.org/content/repositories/snapshots</url>
601                 </snapshotRepository>
602         </distributionManagement>
603
604         <build>
605                 <pluginManagement>
606                         <plugins>
607
608                                 <!-- Plugins from ONAP oparent -->
609                                 <plugin>
610                                         <groupId>org.apache.maven.plugins</groupId>
611                                         <artifactId>maven-deploy-plugin</artifactId>
612                                         <!-- This version supports the "deployAtEnd" parameter -->
613                                         <version>2.8</version>
614                                         <configuration>
615                                                 <skip/>
616                                         </configuration>
617                                 </plugin>
618
619                                 <plugin>
620                                         <groupId>org.apache.maven.plugins</groupId>
621                                         <artifactId>maven-site-plugin</artifactId>
622                                         <version>3.6</version>
623                                         <dependencies>
624                                                 <dependency>
625                                                         <groupId>org.apache.maven.wagon</groupId>
626                                                         <artifactId>wagon-webdav-jackrabbit</artifactId>
627                                                         <version>2.10</version>
628                                                 </dependency>
629                                                 <dependency>
630                                                         <groupId>org.apache.maven.doxia</groupId>
631                                                         <artifactId>doxia-core</artifactId>
632                                                         <version>1.7</version>
633                                                 </dependency>
634                                                 <dependency>
635                                                         <groupId>org.apache.maven.doxia</groupId>
636                                                         <artifactId>doxia-sink-api</artifactId>
637                                                         <version>1.7</version>
638                                                 </dependency>
639                                                 <dependency>
640                                                         <groupId>org.apache.maven.doxia</groupId>
641                                                         <artifactId>doxia-logging-api</artifactId>
642                                                         <version>1.7</version>
643                                                 </dependency>
644                                         </dependencies>
645                                         <executions>
646                                                 <execution>
647                                                         <id>attach-descriptor</id>
648                                                         <goals>
649                                                                 <goal>attach-descriptor</goal>
650                                                         </goals>
651                                                 </execution>
652                                         </executions>
653                                 </plugin>
654                                 <plugin>
655                                         <artifactId>maven-checkstyle-plugin</artifactId>
656                                         <version>2.17</version>
657                                         <dependencies>
658                                                 <dependency>
659                                                         <groupId>org.onap.oparent</groupId>
660                                                         <artifactId>checkstyle</artifactId>
661                                                         <version>1.1.1</version>
662                                                 </dependency>
663                                         </dependencies>
664                                         <executions>
665                                                 <execution>
666                                                         <id>check-license</id>
667                                                         <goals>
668                                                                 <goal>check</goal>
669                                                         </goals>
670                                                         <phase>process-sources</phase>
671                                                         <configuration>
672                                                                 <configLocation>onap-checkstyle/check-license.xml</configLocation>
673                                                                 <headerLocation>onap-checkstyle/apache-license-2.regexp.txt</headerLocation>
674                                                                 <includeResources>false</includeResources>
675                                                                 <includeTestSourceDirectory>true</includeTestSourceDirectory>
676                                                                 <includeTestResources>false</includeTestResources>
677                                                                 <sourceDirectory>${project.build.sourceDirectory}</sourceDirectory>
678                                                                 <excludes>
679                                                                 </excludes>
680                                                                 <failsOnError>false</failsOnError>
681                                                                 <consoleOutput>true</consoleOutput>
682                                                         </configuration>
683                                                 </execution>
684                                                 <execution>
685                                                         <id>check-style</id>
686                                                         <goals>
687                                                                 <goal>check</goal>
688                                                         </goals>
689                                                         <phase>process-sources</phase>
690                                                         <configuration>
691                                                                 <!-- Use Google Java Style Guide: https://github.com/checkstyle/checkstyle/blob/master/src/main/resources/google_checks.xml 
692                                                                         with minor changes -->
693                                                                 <configLocation>onap-checkstyle/onap-java-style.xml</configLocation>
694                                                                 <!-- <sourceDirectory> is needed so that checkstyle ignores the generated 
695                                                                         sources directory -->
696                                                                 <sourceDirectory>${project.build.sourceDirectory}/src/main/java</sourceDirectory>
697                                                                 <includeResources>true</includeResources>
698                                                                 <includeTestSourceDirectory>true</includeTestSourceDirectory>
699                                                                 <includeTestResources>true</includeTestResources>
700                                                                 <excludes>
701                                                                 </excludes>
702                                                                 <failsOnError>false</failsOnError>
703                                                                 <consoleOutput>true</consoleOutput>
704                                                         </configuration>
705                                                 </execution>
706                                         </executions>
707                                 </plugin>
708                                 <plugin>
709                                         <groupId>org.jacoco</groupId>
710                                         <artifactId>jacoco-maven-plugin</artifactId>
711                                         <version>${jacoco.version}</version>
712                                         <configuration>
713                                                 <!-- Note: This exclusion list should match <sonar.exclusions> property 
714                                                         above -->
715                                                 <excludes>
716                                                         <exclude>**/gen/**</exclude>
717                                                         <exclude>**/generated-sources/**</exclude>
718                                                         <exclude>**/yang-gen/**</exclude>
719                                                         <exclude>**/pax/**</exclude>
720                                                 </excludes>
721                                         </configuration>
722                                         <executions>
723                                                 <!-- Prepares the property pointing to the JaCoCo runtime agent which 
724                                                         is passed as VM argument when Maven the Surefire plugin is executed. -->
725                                                 <execution>
726                                                         <id>pre-unit-test</id>
727                                                         <goals>
728                                                                 <goal>prepare-agent</goal>
729                                                         </goals>
730                                                         <configuration>
731                                                                 <!-- Sets the path to the file which contains the execution data. -->
732                                                                 <destFile>${project.build.directory}/code-coverage/jacoco-ut.exec</destFile>
733                                                                 <!-- Sets the name of the property containing the settings for JaCoCo 
734                                                                         runtime agent. -->
735                                                                 <propertyName>surefireArgLine</propertyName>
736                                                         </configuration>
737                                                 </execution>
738                                                 <!-- Ensures that the code coverage report for unit tests is created 
739                                                         after unit tests have been run. -->
740                                                 <execution>
741                                                         <id>post-unit-test</id>
742                                                         <phase>test</phase>
743                                                         <goals>
744                                                                 <goal>report</goal>
745                                                         </goals>
746                                                         <configuration>
747                                                                 <!-- Sets the path to the file which contains the execution data. -->
748                                                                 <dataFile>${project.build.directory}/code-coverage/jacoco-ut.exec</dataFile>
749                                                                 <!-- Sets the output directory for the code coverage report. -->
750                                                                 <outputDirectory>${project.reporting.outputDirectory}/jacoco-ut</outputDirectory>
751                                                         </configuration>
752                                                 </execution>
753                                                 <execution>
754                                                         <id>pre-integration-test</id>
755                                                         <phase>pre-integration-test</phase>
756                                                         <goals>
757                                                                 <goal>prepare-agent</goal>
758                                                         </goals>
759                                                         <configuration>
760                                                                 <!-- Sets the path to the file which contains the execution data. -->
761                                                                 <destFile>${project.build.directory}/code-coverage/jacoco-it.exec</destFile>
762                                                                 <!-- Sets the name of the property containing the settings for JaCoCo 
763                                                                         runtime agent. -->
764                                                                 <propertyName>failsafeArgLine</propertyName>
765                                                         </configuration>
766                                                 </execution>
767                                                 <!-- Ensures that the code coverage report for integration tests after 
768                                                         integration tests have been run. -->
769                                                 <execution>
770                                                         <id>post-integration-test</id>
771                                                         <phase>post-integration-test</phase>
772                                                         <goals>
773                                                                 <goal>report</goal>
774                                                         </goals>
775                                                         <configuration>
776                                                                 <!-- Sets the path to the file which contains the execution data. -->
777                                                                 <dataFile>${project.build.directory}/code-coverage/jacoco-it.exec</dataFile>
778                                                                 <!-- Sets the output directory for the code coverage report. -->
779                                                                 <outputDirectory>${project.reporting.outputDirectory}/jacoco-it</outputDirectory>
780                                                         </configuration>
781                                                 </execution>
782                                         </executions>
783                                 </plugin>
784                                 <plugin>
785                                         <groupId>org.apache.maven.plugins</groupId>
786                                         <artifactId>maven-surefire-plugin</artifactId>
787                                         <version>2.19.1</version>
788                                         <configuration>
789                                                 <!-- Sets the VM argument line used when unit tests are run. -->
790                                                 <argLine>${surefireArgLine}</argLine>
791                                                 <!-- Excludes integration tests when unit tests are run. -->
792                                                 <excludes>
793                                                         <exclude>**/IT*.java</exclude>
794                                                 </excludes>
795                                         </configuration>
796                                 </plugin>
797                                 <plugin>
798                                         <groupId>org.apache.maven.plugins</groupId>
799                                         <artifactId>maven-failsafe-plugin</artifactId>
800                                         <version>2.19.1</version>
801                                         <executions>
802                                                 <!-- Ensures that both integration-test and verify goals of the Failsafe 
803                                                         Maven plugin are executed. -->
804                                                 <execution>
805                                                         <id>integration-tests</id>
806                                                         <goals>
807                                                                 <goal>integration-test</goal>
808                                                                 <goal>verify</goal>
809                                                         </goals>
810                                                         <configuration>
811                                                                 <!-- Sets the VM argument line used when integration tests are run. -->
812                                                                 <argLine>${failsafeArgLine}</argLine>
813                                                         </configuration>
814                                                 </execution>
815                                         </executions>
816                                 </plugin>
817                                 <plugin>
818                                         <groupId>org.apache.maven.plugins</groupId>
819                                         <artifactId>maven-compiler-plugin</artifactId>
820                                         <version>${maven.compile.plugin.version}</version>
821                                         <configuration>
822                                                 <source>${java.version.source}</source>
823                                                 <target>${java.version.target}</target>
824                                         </configuration>
825                                 </plugin>
826                                 <plugin>
827                                         <groupId>org.sonarsource.scanner.maven</groupId>
828                                         <artifactId>sonar-maven-plugin</artifactId>
829                                         <version>3.3.0.603</version>
830                                 </plugin>
831
832                                 <!-- End of plugins from ONAP oparent -->
833
834                                 <plugin>
835                                         <groupId>org.apache.maven.plugins</groupId>
836                                         <artifactId>maven-javadoc-plugin</artifactId>
837                                         <version>2.10</version>
838                                         <configuration>
839                                                 <additionalDependencies>
840                                                         <additionalDependency>
841                                                                 <groupId>org.slf4j</groupId>
842                                                                 <artifactId>slf4j-api</artifactId>
843                                                                 <version>${slf4j.version}</version>
844                                                         </additionalDependency>
845                                                         <additionalDependency>
846                                                                 <groupId>org.antlr</groupId>
847                                                                 <artifactId>antlr4</artifactId>
848                                                                 <version>${antlr.version}</version>
849                                                         </additionalDependency>
850                                                         <additionalDependency>
851                                                                 <groupId>org.antlr</groupId>
852                                                                 <artifactId>antlr4-runtime</artifactId>
853                                                                 <version>${antlr.version}</version>
854                                                         </additionalDependency>
855
856                                                         <additionalDependency>
857                                                                 <groupId>com.sun.jersey</groupId>
858                                                                 <artifactId>jersey-client</artifactId>
859                                                                 <version>${jersey.client.version}</version>
860                                                         </additionalDependency>
861                                                         <additionalDependency>
862                                                                 <groupId>com.sun.jersey</groupId>
863                                                                 <artifactId>jersey-core</artifactId>
864                                                                 <version>${jersey.version}</version>
865                                                         </additionalDependency>
866                                                         <additionalDependency>
867                                                                 <groupId>org.apache.httpcomponents</groupId>
868                                                                 <artifactId>httpcore-osgi</artifactId>
869                                                                 <version>${apache.httpcomponents.core.version}</version>
870                                                         </additionalDependency>
871                                                         <additionalDependency>
872                                                                 <groupId>org.apache.httpcomponents</groupId>
873                                                                 <artifactId>httpclient-osgi</artifactId>
874                                                                 <version>${apache.httpcomponents.client.version}</version>
875                                                         </additionalDependency>
876                                                         <additionalDependency>
877                                                                 <groupId>commons-lang</groupId>
878                                                                 <artifactId>commons-lang</artifactId>
879                                                                 <version>${commons.lang.version}</version>
880                                                         </additionalDependency>
881                                                 </additionalDependencies>
882                                         </configuration>
883
884                                         <executions>
885                                                 <execution>
886                                                         <id>aggregate</id>
887                                                         <goals>
888                                                                 <goal>aggregate</goal>
889                                                         </goals>
890                                                         <phase>site</phase>
891
892                                                 </execution>
893                                         </executions>
894                                 </plugin>
895
896                         </plugins>
897
898                 </pluginManagement>
899
900                 <plugins>
901                         <!-- Plugins from ONAP oparent -->
902                         <plugin>
903                                 <artifactId>maven-checkstyle-plugin</artifactId>
904                         </plugin>
905                         <plugin>
906                                 <groupId>org.codehaus.mojo</groupId>
907                                 <artifactId>build-helper-maven-plugin</artifactId>
908                                 <version>1.12</version>
909                         </plugin>
910                         <!-- Jacoco / Sonar -->
911                         <plugin>
912                                 <groupId>org.jacoco</groupId>
913                                 <artifactId>jacoco-maven-plugin</artifactId>
914                         </plugin>
915                         <plugin>
916                                 <groupId>org.apache.maven.plugins</groupId>
917                                 <artifactId>maven-surefire-plugin</artifactId>
918                         </plugin>
919                         <plugin>
920                                 <groupId>org.apache.maven.plugins</groupId>
921                                 <artifactId>maven-failsafe-plugin</artifactId>
922                         </plugin>
923
924                         <!-- End of plugins from ONAP oparent -->
925                         <plugin>
926                                 <groupId>org.codehaus.mojo</groupId>
927                                 <artifactId>properties-maven-plugin</artifactId>
928                                 <version>1.0.0</version>
929                                 <executions>
930                                         <execution>
931                                                 <goals>
932                                                         <goal>set-system-properties</goal>
933                                                 </goals>
934                                                 <configuration>
935                                                         <properties>
936                                                                 <property>
937                                                                         <name>maven.wagon.http.ssl.allowall</name>
938                                                                         <value>${ssl.allowall}</value>
939                                                                 </property>
940                                                                 <property>
941                                                                         <name>maven.wagon.http.ssl.insecure</name>
942                                                                         <value>${ssl.insecure}</value>
943                                                                 </property>
944                                                         </properties>
945                                                 </configuration>
946                                         </execution>
947                                 </executions>
948                         </plugin>
949                         <plugin>
950                                 <groupId>org.sonatype.plugins</groupId>
951                                 <artifactId>nexus-staging-maven-plugin</artifactId>
952                                 <version>1.6.7</version>
953                                 <extensions>true</extensions>
954                                 <configuration>
955                                         <nexusUrl>${onap.nexus.url}</nexusUrl>
956                                         <stagingProfileId>176c31dfe190a</stagingProfileId>
957                                         <serverId>ecomp-staging</serverId>
958                                 </configuration>
959                         </plugin>
960                         <plugin>
961                                 <groupId>org.codehaus.mojo</groupId>
962                                 <artifactId>versions-maven-plugin</artifactId>
963                                 <version>2.5</version>
964                                 <configuration>
965                                         <processAllModules>true</processAllModules>
966                                 </configuration>
967                         </plugin>
968                         <plugin>
969                                 <artifactId>maven-scm-plugin</artifactId>
970                                 <version>1.8.1</version>
971                                 <configuration>
972                                         <tag>${project.artifactId}-${project.version}</tag>
973                                 </configuration>
974                         </plugin>
975                 </plugins>
976         </build>
977         <organization>
978                 <name>ONAP</name>
979         </organization>
980 </project>