blob: 903aee080b9e57c0dc6cbadac3fd9a3ecb59cbdd [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>
Singal, Kapil (ks220y)9714cfc2021-05-17 13:23:11 -040031
Singal, Kapil (ks220y)46751a72020-02-19 17:45:00 -050032 <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>
Singal, Kapil (ks220y)46751a72020-02-19 17:45:00 -050061 <!-- 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 -->
Singal, Kapil (ks220y)9714cfc2021-05-17 13:23:11 -040071 <onap.nexus.url>https://nexus.onap.org</onap.nexus.url>
Singal, Kapil (ks220y)46751a72020-02-19 17:45:00 -050072 <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 -->
Claudio D. Gasparini10688642021-05-14 10:33:22 +020092 <logging-analytics.version>1.6.9</logging-analytics.version>
Singal, Kapil (ks220y)46751a72020-02-19 17:45:00 -050093
94 <!-- CCSDK component versions -->
Dan Timoneyac582d92021-03-15 08:43:10 -040095 <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>
Jozsef Csongvaia4d399c2020-12-14 07:39:31 -050099 <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>
Singal, Kapil (ks220y)46751a72020-02-19 17:45:00 -0500103
104 <!-- Spring versions -->
105 <spring.boot.version>${springbootparent.version}</spring.boot.version>
106 <spring.version>${spring.version}</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 -->
Dan Timoney4b9f4f22021-03-22 15:09:59 -0400120 <antlr.version>4.8-1</antlr.version>
Singal, Kapil (ks220y)46751a72020-02-19 17:45:00 -0500121 <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>
Singal, Kapil (ks220y)46751a72020-02-19 17:45:00 -0500129 <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>
Singal, Kapil (ks220y)b5adc452020-02-20 13:53:41 -0500136 <testng.version>6.14.3</testng.version>
Rich Tabedzkifce995d2020-03-11 11:06:57 -0400137 <tomcat-jdbc.version>9.0.30</tomcat-jdbc.version>
Singal, Kapil (ks220y)46751a72020-02-19 17:45:00 -0500138 <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>${project.version}</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>
Singal, Kapil (ks220y)9714cfc2021-05-17 13:23:11 -0400242
Singal, Kapil (ks220y)46751a72020-02-19 17:45:00 -0500243 <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/>
Singal, Kapil (ks220y)6fa7fc92021-02-01 16:11:38 -0500299 <deployAtEnd>true</deployAtEnd>
Singal, Kapil (ks220y)46751a72020-02-19 17:45:00 -0500300 </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>
Singal, Kapil (ks220y)b2db3c42021-06-08 12:00:17 -0400338 <groupId>org.apache.maven.plugins</groupId>
Singal, Kapil (ks220y)46751a72020-02-19 17:45:00 -0500339 <artifactId>maven-checkstyle-plugin</artifactId>
340 <version>2.17</version>
341 <dependencies>
342 <dependency>
343 <groupId>org.onap.oparent</groupId>
344 <artifactId>checkstyle</artifactId>
345 <version>1.1.1</version>
346 </dependency>
347 </dependencies>
348 <executions>
349 <execution>
350 <id>check-license</id>
351 <goals>
352 <goal>check</goal>
353 </goals>
354 <phase>process-sources</phase>
355 <configuration>
356 <configLocation>onap-checkstyle/check-license.xml</configLocation>
357 <headerLocation>onap-checkstyle/apache-license-2.regexp.txt</headerLocation>
358 <includeResources>false</includeResources>
359 <includeTestSourceDirectory>true</includeTestSourceDirectory>
360 <includeTestResources>false</includeTestResources>
361 <sourceDirectory>\${project.build.sourceDirectory}</sourceDirectory>
362 <excludes>
363 </excludes>
364 <failsOnError>false</failsOnError>
365 <consoleOutput>true</consoleOutput>
366 </configuration>
367 </execution>
368 <execution>
369 <id>check-style</id>
370 <goals>
371 <goal>check</goal>
372 </goals>
373 <phase>process-sources</phase>
374 <configuration>
375 <!-- Use Google Java Style Guide: https://github.com/checkstyle/checkstyle/blob/master/src/main/resources/google_checks.xml
376 with minor changes -->
377 <configLocation>onap-checkstyle/onap-java-style.xml</configLocation>
378 <!-- <sourceDirectory> is needed so that checkstyle ignores the generated sources directory -->
379 <sourceDirectory>\${project.build.sourceDirectory}/src/main/java</sourceDirectory>
380 <includeResources>true</includeResources>
381 <includeTestSourceDirectory>true</includeTestSourceDirectory>
382 <includeTestResources>true</includeTestResources>
383 <excludes>
384 </excludes>
385 <failsOnError>false</failsOnError>
386 <consoleOutput>true</consoleOutput>
387 </configuration>
388 </execution>
389 </executions>
390 </plugin>
391
392 <plugin>
393 <groupId>org.apache.maven.plugins</groupId>
394 <artifactId>maven-surefire-plugin</artifactId>
395 <version>2.19.1</version>
396 <configuration>
397 <!-- Sets the VM argument line used when unit tests are run. -->
398 <argLine>\${surefireArgLine}</argLine>
399 <!-- Excludes integration tests when unit tests are run. -->
400 <excludes>
401 <exclude>**/IT*.java</exclude>
402 </excludes>
403 </configuration>
404 </plugin>
405 <plugin>
406 <groupId>org.apache.maven.plugins</groupId>
407 <artifactId>maven-failsafe-plugin</artifactId>
408 <version>2.19.1</version>
409 <executions>
410 <!-- Ensures that both integration-test and verify goals of the Failsafe Maven plugin are executed. -->
411 <execution>
412 <id>integration-tests</id>
413 <goals>
414 <goal>integration-test</goal>
415 <goal>verify</goal>
416 </goals>
417 <configuration>
418 <!-- Sets the VM argument line used when integration tests are run. -->
419 <argLine>\${failsafeArgLine}</argLine>
420 </configuration>
421 </execution>
422 </executions>
423 </plugin>
424 <plugin>
425 <groupId>org.apache.maven.plugins</groupId>
426 <artifactId>maven-compiler-plugin</artifactId>
427 <version>\${maven.compile.plugin.version}</version>
428 <configuration>
429 <source>\${java.version.source}</source>
430 <target>\${java.version.target}</target>
431 </configuration>
432 </plugin>
433 <plugin>
434 <groupId>org.sonarsource.scanner.maven</groupId>
435 <artifactId>sonar-maven-plugin</artifactId>
436 <version>3.6.0.1398</version>
437 </plugin>
438
439 <!-- End of plugins from ONAP oparent -->
440
441 <plugin>
442 <groupId>org.apache.maven.plugins</groupId>
443 <artifactId>maven-javadoc-plugin</artifactId>
Dan Timoneye816a592020-09-03 08:56:01 -0400444 <version>3.2.0</version>
Singal, Kapil (ks220y)46751a72020-02-19 17:45:00 -0500445 <configuration>
446 <additionalDependencies>
447 <additionalDependency>
448 <groupId>org.slf4j</groupId>
449 <artifactId>slf4j-api</artifactId>
450 <version>\${slf4j.version}</version>
451 </additionalDependency>
452 <additionalDependency>
453 <groupId>org.antlr</groupId>
454 <artifactId>antlr4</artifactId>
455 <version>\${antlr.version}</version>
456 </additionalDependency>
457 <additionalDependency>
458 <groupId>org.antlr</groupId>
459 <artifactId>antlr4-runtime</artifactId>
460 <version>\${antlr.version}</version>
461 </additionalDependency>
462 <additionalDependency>
463 <groupId>com.sun.jersey</groupId>
464 <artifactId>jersey-client</artifactId>
465 <version>\${jersey.client.version}</version>
466 </additionalDependency>
467 <additionalDependency>
468 <groupId>com.sun.jersey</groupId>
469 <artifactId>jersey-core</artifactId>
470 <version>\${jersey.version}</version>
471 </additionalDependency>
472 <additionalDependency>
473 <groupId>org.apache.httpcomponents</groupId>
474 <artifactId>httpcore-osgi</artifactId>
475 <version>\${apache.httpcomponents.core.version}</version>
476 </additionalDependency>
477 <additionalDependency>
478 <groupId>org.apache.httpcomponents</groupId>
479 <artifactId>httpclient-osgi</artifactId>
480 <version>\${apache.httpcomponents.client.version}</version>
481 </additionalDependency>
482 <additionalDependency>
483 <groupId>commons-lang</groupId>
484 <artifactId>commons-lang</artifactId>
485 <version>\${commons.lang.version}</version>
486 </additionalDependency>
487 </additionalDependencies>
Dan Timoneye816a592020-09-03 08:56:01 -0400488 <failOnError>false</failOnError>
Singal, Kapil (ks220y)46751a72020-02-19 17:45:00 -0500489 </configuration>
490 <executions>
491 <execution>
492 <id>aggregate</id>
493 <goals>
494 <goal>aggregate</goal>
495 </goals>
496 <phase>site</phase>
497 </execution>
498 </executions>
499 </plugin>
500 <plugin>
501 <groupId>com.github.ferstl</groupId>
502 <artifactId>depgraph-maven-plugin</artifactId>
503 <version>3.3.0</version>
504 <configuration>
505 <graphFormat>text</graphFormat>
506 <outputFileName>\${dependency-list.file}</outputFileName>
507 <outputDirectory>\${project.basedir}</outputDirectory>
508 <transitiveExcludes>*</transitiveExcludes>
509 <showVersions>true</showVersions>
510 <showGroupIds>true</showGroupIds>
511 </configuration>
512 </plugin>
513 </plugins>
514 </pluginManagement>
Singal, Kapil (ks220y)46751a72020-02-19 17:45:00 -0500515 <plugins>
516 <!-- Plugins from ONAP oparent -->
517 <!-- Jacoco / Sonar -->
518 <plugin>
519 <groupId>org.jacoco</groupId>
520 <artifactId>jacoco-maven-plugin</artifactId>
521 <version>\${jacoco.version}</version>
522 <executions>
523 <execution>
524 <id>pre-unit-test</id>
525 <goals>
526 <goal>prepare-agent</goal>
527 </goals>
528 <configuration>
529 <!-- Sets the path to the file which contains the execution data. -->
530 <destFile>\${project.build.directory}/code-coverage/jacoco-ut.exec</destFile>
531 <!-- Sets the name of the property containing the settings for JaCoCo runtime agent. -->
532 <propertyName>surefireArgLine</propertyName>
533 </configuration>
534 </execution>
535 <!-- Ensures that the code coverage report for unit tests is created after unit tests have been run. -->
536 <execution>
537 <id>post-unit-test</id>
538 <phase>test</phase>
539 <goals>
540 <goal>report</goal>
541 </goals>
542 <configuration>
543 <!-- Sets the path to the file which contains the execution data. -->
544 <dataFile>\${project.build.directory}/code-coverage/jacoco-ut.exec</dataFile>
545 <!-- Sets the output directory for the code coverage report. -->
546 <outputDirectory>\${project.reporting.outputDirectory}/jacoco-ut</outputDirectory>
547 </configuration>
548 </execution>
549 <execution>
550 <id>pre-integration-test</id>
551 <phase>pre-integration-test</phase>
552 <goals>
553 <goal>prepare-agent</goal>
554 </goals>
555 <configuration>
556 <!-- Sets the path to the file which contains the execution data. -->
557 <destFile>\${project.build.directory}/code-coverage/jacoco-it.exec</destFile>
558 <!-- Sets the name of the property containing the settings for JaCoCo runtime agent. -->
559 <propertyName>failsafeArgLine</propertyName>
560 </configuration>
561 </execution>
562 <!-- Ensures that the code coverage report for integration tests after integration tests have been run. -->
563 <execution>
564 <id>post-integration-test</id>
565 <phase>post-integration-test</phase>
566 <goals>
567 <goal>report</goal>
568 </goals>
569 <configuration>
570 <!-- Sets the path to the file which contains the execution data. -->
571 <dataFile>\${project.build.directory}/code-coverage/jacoco-it.exec</dataFile>
572 <!-- Sets the output directory for the code coverage report. -->
573 <outputDirectory>\${project.reporting.outputDirectory}/jacoco-it</outputDirectory>
574 </configuration>
575 </execution>
576 <execution>
577 <id>default-prepare-agent</id>
578 <goals>
579 <goal>prepare-agent</goal>
580 </goals>
581 </execution>
582 <execution>
583 <id>default-report</id>
584 <phase>prepare-package</phase>
585 <goals>
586 <goal>report</goal>
587 </goals>
588 </execution>
589 <execution>
590 <id>default-check</id>
591 <goals>
592 <goal>check</goal>
593 </goals>
594 <configuration>
595 <rules>
596 <rule>
597 <element>PACKAGE</element>
598 <limits>
599 <limit>
600 <counter>COMPLEXITY</counter>
601 <value>COVEREDRATIO</value>
602 <minimum>0.0</minimum>
603 </limit>
604 </limits>
605 </rule>
606 </rules>
607 </configuration>
608 </execution>
609 </executions>
610 </plugin>
611 <plugin>
Singal, Kapil (ks220y)e1d0e252021-02-01 22:06:16 -0500612 <groupId>org.apache.maven.plugins</groupId>
613 <artifactId>maven-deploy-plugin</artifactId>
614 </plugin>
615 <plugin>
Singal, Kapil (ks220y)b2db3c42021-06-08 12:00:17 -0400616 <groupId>org.apache.maven.plugins</groupId>
Singal, Kapil (ks220y)46751a72020-02-19 17:45:00 -0500617 <artifactId>maven-checkstyle-plugin</artifactId>
618 </plugin>
619 <plugin>
620 <groupId>org.codehaus.mojo</groupId>
621 <artifactId>build-helper-maven-plugin</artifactId>
622 <version>1.12</version>
623 </plugin>
624 <!-- Jacoco / Sonar -->
625 <plugin>
Singal, Kapil (ks220y)46751a72020-02-19 17:45:00 -0500626 <groupId>org.apache.maven.plugins</groupId>
627 <artifactId>maven-surefire-plugin</artifactId>
628 </plugin>
629 <plugin>
630 <groupId>org.apache.maven.plugins</groupId>
631 <artifactId>maven-failsafe-plugin</artifactId>
632 </plugin>
633
634 <!-- End of plugins from ONAP oparent -->
635 <plugin>
636 <groupId>org.codehaus.mojo</groupId>
637 <artifactId>properties-maven-plugin</artifactId>
638 <version>1.0.0</version>
639 <executions>
640 <execution>
641 <goals>
642 <goal>set-system-properties</goal>
643 </goals>
644 <configuration>
645 <properties>
646 <property>
647 <name>maven.wagon.http.ssl.allowall</name>
648 <value>\${ssl.allowall}</value>
649 </property>
650 <property>
651 <name>maven.wagon.http.ssl.insecure</name>
652 <value>\${ssl.insecure}</value>
653 </property>
654 </properties>
655 </configuration>
656 </execution>
657 </executions>
658 </plugin>
659 <plugin>
660 <groupId>org.codehaus.mojo</groupId>
661 <artifactId>versions-maven-plugin</artifactId>
662 <version>2.5</version>
663 <configuration>
664 <processAllModules>true</processAllModules>
665 </configuration>
666 </plugin>
667 <plugin>
668 <artifactId>maven-scm-plugin</artifactId>
669 <version>1.8.1</version>
670 <configuration>
671 <tag>\${project.artifactId}-\${project.version}</tag>
672 </configuration>
673 </plugin>
Singal, Kapil (ks220y)da2d9762020-09-04 10:34:58 -0400674 <plugin>
675 <groupId>pl.project13.maven</groupId>
676 <artifactId>git-commit-id-plugin</artifactId>
677 <version>4.0.0</version>
678 <configuration>
679 <commitIdGenerationMode>full</commitIdGenerationMode>
680 <includeOnlyProperties>
681 <includeOnlyProperty>^git.build.(time|version)$</includeOnlyProperty>
682 <includeOnlyProperty>^git.commit.id.(abbrev|full)$</includeOnlyProperty>
683 </includeOnlyProperties>
684 </configuration>
685 </plugin>
Singal, Kapil (ks220y)46751a72020-02-19 17:45:00 -0500686 </plugins>
687 </build>
688
689 <reporting>
690 <plugins>
691 <plugin>
692 <artifactId>maven-javadoc-plugin</artifactId>
693 <version>2.10.4</version>
694 <configuration>
695 <failOnError>false</failOnError>
696 <doclet>org.umlgraph.doclet.UmlGraphDoc</doclet>
697 <docletArtifact>
698 <groupId>org.umlgraph</groupId>
699 <artifactId>umlgraph</artifactId>
700 <version>5.6</version>
701 </docletArtifact>
702 <additionalparam>-views</additionalparam>
703 <useStandardDocletOptions>true</useStandardDocletOptions>
704 <excludePackageNames>org.opendaylight.*</excludePackageNames>
705 </configuration>
706 <reportSets>
707 <reportSet>
708 <reports>
709 <report>javadoc-no-fork</report>
710 <report>test-javadoc-no-fork</report>
711 </reports>
712 </reportSet>
713 <reportSet>
714 <id>aggregate</id>
715 <reports>
716 <report>aggregate</report>
717 <report>test-aggregate</report>
718 </reports>
719 </reportSet>
720 </reportSets>
721 </plugin>
722 <plugin>
723 <groupId>org.apache.maven.plugins</groupId>
724 <artifactId>maven-jxr-plugin</artifactId>
725 <version>2.3</version>
726 <reportSets>
727 <reportSet>
728 <id>aggregate</id>
729 <reports>
730 <report>aggregate</report>
731 <report>test-aggregate</report>
732 </reports>
733 </reportSet>
734 </reportSets>
735 </plugin>
736 <plugin>
737 <artifactId>maven-surefire-plugin</artifactId>
738 <version>2.17</version>
739 </plugin>
740 <plugin>
741 <groupId>org.apache.maven.plugins</groupId>
742 <artifactId>maven-changelog-plugin</artifactId>
743 <version>2.3</version>
744 <reportSets>
745 <reportSet>
746 <id>dual-report</id>
747 <configuration>
748 <type>range</type>
749 <range>30</range>
750 </configuration>
751 <reports>
752 <report>changelog</report>
753 <report>file-activity</report>
754 </reports>
755 </reportSet>
756 </reportSets>
757 </plugin>
758 <plugin>
759 <groupId>org.codehaus.mojo</groupId>
760 <artifactId>taglist-maven-plugin</artifactId>
761 <version>2.4</version>
762 </plugin>
763 </plugins>
764 </reporting>
765
766 <profiles>
767 <!-- Profiles from ONAP oparent -->
768 <profile>
769 <id>generate-json</id>
770 <activation>
771 <file>
772 <exists>\${swagger-properties}</exists>
773 </file>
774 <property>
775 <name>swagger-sdk.generate-json</name>
776 </property>
777 </activation>
778 <build>
779 <plugins>
780 <plugin>
781 <groupId>org.codehaus.mojo</groupId>
782 <artifactId>properties-maven-plugin</artifactId>
783 <version>1.0.0</version>
784 <executions>
785 <execution>
786 <phase>initialize</phase>
787 <goals>
788 <goal>read-project-properties</goal>
789 </goals>
790 <configuration>
791 <files>
792 <file>\${basedir}/src/main/resources/swagger.properties</file>
793 </files>
794 </configuration>
795 </execution>
796 </executions>
797 </plugin>
798 <plugin>
799 <groupId>com.github.kongchen</groupId>
800 <artifactId>swagger-maven-plugin</artifactId>
801 <version>3.1.4</version>
802 <configuration>
803 <apiSources>
804 <apiSource>
805 <locations>\${api-rest-package}</locations>
806 <schemes>http,https</schemes>
807 <host>\${api-host-ip}:\${api-host-port}</host>
808 <basePath>\${api-base-path}</basePath>
809 <info>
810 <title>\${api-title}</title>
811 <version>\${api-version}</version>
812 <description>\${api-description}</description>
813 <license>
814 <name>\${api-license}</name>
815 </license>
816 </info>
817 <swaggerDirectory>\${basedir}/src/main/resources</swaggerDirectory>
818 </apiSource>
819 </apiSources>
820 </configuration>
821 <executions>
822 <execution>
823 <phase>compile</phase>
824 <goals>
825 <goal>generate</goal>
826 </goals>
827 </execution>
828 </executions>
829 </plugin>
830 <plugin>
831 <groupId>org.apache.maven.plugins</groupId>
832 <artifactId>maven-install-plugin</artifactId>
833 <version>2.3.1</version>
834 <executions>
835 <execution>
836 <id>install-file-id</id>
837 <phase>install</phase>
838 <goals>
839 <goal>install-file</goal>
840 </goals>
841 <configuration>
842 <file>\${basedir}/src/main/resources/swagger.json</file>
843 <groupId>\${project.groupId}</groupId>
844 <artifactId>\${project.artifactId}-swagger-schema</artifactId>
845 <version>\${project.version}</version>
846 <packaging>json</packaging>
847 </configuration>
848 </execution>
849 </executions>
850 </plugin>
851 </plugins>
852 </build>
853 </profile>
854 <profile>
855 <id>generate-sdk</id>
856 <activation>
857 <file>
858 <exists>\${swagger-json}</exists>
859 </file>
860 <property>
861 <name>swagger-sdk.generate-java-sdk</name>
862 </property>
863 </activation>
864 <build>
865 <plugins>
866 <plugin>
867 <groupId>org.apache.maven.plugins</groupId>
868 <artifactId>maven-antrun-plugin</artifactId>
869 <version>1.8</version>
870 <executions>
871 <execution>
872 <phase>initialize</phase>
873 <id>ant-create-script</id>
874 <configuration>
875 <exportAntProperties>true</exportAntProperties>
876 <tasks>
877 <taskdef resource="net/sf/antcontrib/antlib.xml" classpathref="maven.plugin.classpath"/>
878 <condition property="is_windows" value="true">
879 <os family="windows"/>
880 </condition>
881 <condition property="isLinux" value="true">
882 <os family="unix"/>
883 </condition>
884 <if>
885 <equals arg1="\${is_windows}" arg2="true"/>
886 <then>
887 <property name="swagger.sdk.script.file" value="generated-source-script.bat"/>
888 <echo file="\${project.build.directory}\${file.separator}generated-source-script.bat" append="true" message="cd \${project.build.directory}\${file.separator}generated-sources\${line.separator}"/>
889 <echo file="\${project.build.directory}\${file.separator}generated-source-script.bat" append="true" message="mvn clean install -Dmaven.test.skip=true\${line.separator}"/>
890 </then>
891 <else>
892 <property name="swagger.sdk.script.file" value="generated-source-script.sh"/>
893 <echo file="\${project.build.directory}\${file.separator}generated-source-script.sh" append="true" message="cd \${project.build.directory}\${file.separator}generated-sources\${line.separator}"/>
894 <echo file="\${project.build.directory}\${file.separator}generated-source-script.sh" append="true" message="mvn clean install -Dmaven.test.skip=true\${line.separator}"/>
895 <chmod file="\${project.build.directory}\${file.separator}generated-source-script.sh" perm="755"/>
896 </else>
897 </if>
898 </tasks>
899 </configuration>
900 <goals>
901 <goal>run</goal>
902 </goals>
903 </execution>
904 </executions>
905 <dependencies>
906 <dependency>
907 <groupId>ant-contrib</groupId>
908 <artifactId>ant-contrib</artifactId>
909 <version>1.0b3</version>
910 <exclusions>
911 <exclusion>
912 <groupId>ant</groupId>
913 <artifactId>ant</artifactId>
914 </exclusion>
915 </exclusions>
916 </dependency>
917 </dependencies>
918 </plugin>
919 <plugin>
920 <groupId>io.swagger</groupId>
921 <artifactId>swagger-codegen-maven-plugin</artifactId>
922 <version>2.2.1</version>
923 <executions>
924 <execution>
925 <goals>
926 <goal>generate</goal>
927 </goals>
928 <configuration>
929 <inputSpec>\${basedir}/src/main/resources/swagger.json</inputSpec>
930 <output>\${project.build.directory}/generated-sources</output>
931 <language>java</language>
932 <configOptions>
933 <dateLibrary>joda</dateLibrary>
934 </configOptions>
935 <library>jersey2</library>
936 <groupId>\${project.groupId}</groupId>
937 <artifactId>\${project.artifactId}-java-sdk</artifactId>
938 <artifactVersion>\${project.version}</artifactVersion>
939 <modelPackage>\${project.groupId}.\${project.artifactId}.client.model</modelPackage>
940 <apiPackage>\${project.groupId}.\${project.artifactId}.client.api</apiPackage>
941 <invokerPackage>\${project.groupId}.\${project.artifactId}.client.invoker</invokerPackage>
942 </configuration>
943 </execution>
944 </executions>
945 </plugin>
946 <plugin>
947 <groupId>org.codehaus.mojo</groupId>
948 <artifactId>exec-maven-plugin</artifactId>
949 <version>1.5.0</version>
950 <executions>
951 <execution>
952 <id>swagger-generate-sources</id>
953 <phase>generate-sources</phase>
954 <goals>
955 <goal>exec</goal>
956 </goals>
957 <configuration>
958 <executable>\${project.build.directory}\${file.separator}\${swagger.sdk.script.file}</executable>
959 </configuration>
960 </execution>
961 </executions>
962 </plugin>
963 <plugin>
964 <groupId>org.apache.maven.plugins</groupId>
965 <artifactId>maven-clean-plugin</artifactId>
966 <version>3.0.0</version>
967 <executions>
968 <execution>
969 <id>clean-generated-files</id>
970 <phase>generate-sources</phase>
971 <goals>
972 <goal>clean</goal>
973 </goals>
974 <configuration>
975 <filesets>
976 <fileset>
977 <directory>\${project.build.directory}/generated-sources</directory>
978 </fileset>
979 </filesets>
980 </configuration>
981 </execution>
982 </executions>
983 </plugin>
984 </plugins>
985 </build>
986 <dependencies>
987 <dependency>
988 <groupId>org.onap.msb.swagger-sdk</groupId>
989 <artifactId>swagger-sdk</artifactId>
990 <version>1.0.0</version>
991 </dependency>
992 </dependencies>
993 </profile>
994 <profile>
995 <!-- http://blog2.vorburger.ch/2016/06/improve-maven-build-speed-with-q.html
996 q = http://memory-alpha.wikia.com/wiki/Q ;)
997
998 The Quick profile is used during incremental local development, when you want to "just get that JAR built",
999 which is very handy e.g. for fast hot reloading cycles in Karaf with bundle watch. It (intentionally!) skips
1000 tests, quality checks etc. which are great and useful to run before finally submitting changes to Gerrit, and
1001 which all must run on Gerrit, but which are overhead during ongoing fast iterative local development.
1002
1003 Note that the idea here is that your IDE will already have run quality checks such as e.g. Checkstyle
1004 while you typed the code anyway. Similarly, if you wrote a test, you'll probably already have compiled and run it
1005 from your IDE, so when you want the OSGi bundle JAR for Karaf, ASAP, you typically don't want all that to run again.
1006 -->
1007 <id>q</id>
1008 <properties>
1009 <skipTests>true</skipTests>
Singal, Kapil (ks220y)44bb42e2020-09-18 11:00:50 -04001010 <skipPush>true</skipPush>
1011 <docker.skip.push>true</docker.skip.push>
Singal, Kapil (ks220y)46751a72020-02-19 17:45:00 -05001012 <!-- But NOT <maven.test.skip>true, as that's for compiling, not running, tests;
1013 and that's usually quick. Skipping test compilation with -Pq with maven.test.skip would be
1014 particularly confusing when used in a project with maven-jar-plugin <goal>test-jar, so don't.) -->
1015 <skipIT>true</skipIT>
1016 <skipITs>true</skipITs>
1017 <skip.karaf.featureTest>true</skip.karaf.featureTest>
1018 <jacoco.skip>true</jacoco.skip>
1019 <maven.javadoc.skip>true</maven.javadoc.skip>
1020 <maven.source.skip>true</maven.source.skip>
1021 <checkstyle.skip>true</checkstyle.skip>
1022 <findbugs.skip>true</findbugs.skip>
1023 <spotbugs.skip>true</spotbugs.skip>
1024 <pmd.skip>true</pmd.skip>
1025 <cpd.skip>true</cpd.skip>
1026 <maven.site.skip>true</maven.site.skip>
1027 <invoker.skip>true</invoker.skip>
1028 <enforcer.skip>true</enforcer.skip>
1029 <duplicate-finder.skip>true</duplicate-finder.skip>
1030 <mdsal.skip.verbose>true</mdsal.skip.verbose> <!-- Bug 6236 -->
1031 <maven.gitcommitid.skip>true</maven.gitcommitid.skip>
1032 <modernizer.skip>true</modernizer.skip>
1033 <format.skipExecute>true</format.skipExecute>
1034 <format.skipValidate>true</format.skipValidate>
1035 </properties>
1036 </profile>
1037 <profile>
1038 <id>sonar-jacoco-aggregate</id>
1039 <activation>
1040 <property>
1041 <name>onap.jacoco.aggregateFile</name>
1042 </property>
1043 </activation>
1044 <build>
1045 <plugins>
1046 <plugin>
1047 <groupId>org.jacoco</groupId>
1048 <artifactId>jacoco-maven-plugin</artifactId>
1049 <executions>
1050 <execution>
1051 <id>merge</id>
1052 <goals>
1053 <goal>merge</goal>
1054 </goals>
1055 <phase>generate-resources</phase>
1056 <configuration>
1057 <destFile>${onap.jacoco.aggregateFile}</destFile>
1058 <fileSets>
1059 <fileSet>
1060 <directory>\${project.basedir}</directory>
1061 <includes>
1062 <include>**/target/code-coverage/*.exec</include>
1063 </includes>
1064 </fileSet>
1065 </fileSets>
1066 </configuration>
1067 </execution>
1068 </executions>
1069 </plugin>
1070 </plugins>
1071 </build>
1072 </profile>
1073 <!-- End of profiles from ONAP oparent -->
1074 </profiles>
1075</project>