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