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