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