1 <?xml version="1.0" encoding="UTF-8"?>
3 ============LICENSE_START=======================================================
4 Copyright (c) 2021 Bell Canada.
5 Modifications Copyright (C) 2021 Nordix Foundation.
6 ================================================================================
7 Licensed under the Apache License, Version 2.0 (the "License");
8 you may not use this file except in compliance with the License.
9 You may obtain a copy of the License at
11 http://www.apache.org/licenses/LICENSE-2.0
13 Unless required by applicable law or agreed to in writing, software
14 distributed under the License is distributed on an "AS IS" BASIS,
15 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 See the License for the specific language governing permissions and
17 limitations under the License.
19 SPDX-License-Identifier: Apache-2.0
20 ============LICENSE_END=========================================================
23 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
24 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
25 <modelVersion>4.0.0</modelVersion>
28 <groupId>org.onap.oparent</groupId>
29 <artifactId>oparent</artifactId>
30 <version>3.2.0</version>
34 <groupId>org.onap.cps</groupId>
35 <artifactId>cps-temporal</artifactId>
36 <version>0.0.1-SNAPSHOT</version>
37 <name>cps-temporal</name>
38 <description>CPS Temporal Service</description>
41 <docker.repository.pull>nexus3.onap.org:10001/</docker.repository.pull>
42 <docker.repository.push>nexus3.onap.org:10003/</docker.repository.push>
43 <image.base>${docker.repository.pull}onap/integration-java11:8.0.0</image.base>
44 <image.name>${docker.repository.push}onap/cps-temporal</image.name>
45 <java.version>11</java.version>
46 <maven.build.timestamp.format>yyyyMMdd'T'HHmmss'Z'</maven.build.timestamp.format>
47 <minimum-coverage>0.8</minimum-coverage>
48 <!-- Application dependencies versions -->
49 <!--cps.version need to be changed to released Istanbul version-->
50 <cps.version>1.1.0-SNAPSHOT</cps.version>
51 <mapstruct.version>1.4.2.Final</mapstruct.version>
54 <dependencyManagement>
57 <groupId>org.springframework.boot</groupId>
58 <artifactId>spring-boot-dependencies</artifactId>
59 <version>2.5.0</version>
64 <groupId>org.spockframework</groupId>
65 <artifactId>spock-bom</artifactId>
66 <version>2.0-M4-groovy-3.0</version>
71 <groupId>org.testcontainers</groupId>
72 <artifactId>testcontainers-bom</artifactId>
73 <version>1.15.3</version>
78 </dependencyManagement>
82 <groupId>org.springframework.boot</groupId>
83 <artifactId>spring-boot-starter</artifactId>
86 <groupId>org.springframework.boot</groupId>
87 <artifactId>spring-boot-starter-web</artifactId>
90 <groupId>org.springframework.boot</groupId>
91 <artifactId>spring-boot-starter-data-jpa</artifactId>
94 <groupId>com.vladmihalcea</groupId>
95 <artifactId>hibernate-types-52</artifactId>
96 <version>2.10.0</version>
99 <groupId>org.liquibase</groupId>
100 <artifactId>liquibase-core</artifactId>
101 <version>4.3.2</version>
104 <groupId>org.projectlombok</groupId>
105 <artifactId>lombok</artifactId>
108 <groupId>org.springframework.boot</groupId>
109 <artifactId>spring-boot-starter-validation</artifactId>
112 <groupId>org.mapstruct</groupId>
113 <artifactId>mapstruct</artifactId>
114 <version>${mapstruct.version}</version>
117 <groupId>org.springframework.kafka</groupId>
118 <artifactId>spring-kafka</artifactId>
121 <groupId>org.onap.cps</groupId>
122 <artifactId>cps-events</artifactId>
123 <version>1.1.0-SNAPSHOT</version>
126 <groupId>org.springdoc</groupId>
127 <artifactId>springdoc-openapi-ui</artifactId>
128 <version>1.5.9</version>
130 <!-- Runtime dependencies-->
132 <groupId>org.postgresql</groupId>
133 <artifactId>postgresql</artifactId>
134 <scope>runtime</scope>
136 <!-- Test dependencies-->
138 <groupId>org.codehaus.groovy</groupId>
139 <artifactId>groovy</artifactId>
140 <version>3.0.7</version>
143 <groupId>org.springframework.boot</groupId>
144 <artifactId>spring-boot-starter-test</artifactId>
148 <groupId>org.junit.vintage</groupId>
149 <artifactId>junit-vintage-engine</artifactId>
154 <groupId>org.spockframework</groupId>
155 <artifactId>spock-core</artifactId>
159 <groupId>org.spockframework</groupId>
160 <artifactId>spock-spring</artifactId>
164 <groupId>org.testcontainers</groupId>
165 <artifactId>spock</artifactId>
169 <groupId>org.testcontainers</groupId>
170 <artifactId>postgresql</artifactId>
174 <groupId>org.testcontainers</groupId>
175 <artifactId>kafka</artifactId>
179 <groupId>org.springframework.kafka</groupId>
180 <artifactId>spring-kafka-test</artifactId>
184 <groupId>com.tngtech.archunit</groupId>
185 <artifactId>archunit-junit5</artifactId>
186 <version>0.18.0</version>
194 <directory>docs/api</directory>
195 <targetPath>static</targetPath>
196 <filtering>true</filtering>
199 <directory>src/main/resources</directory>
200 <filtering>true</filtering>
205 <groupId>org.apache.maven.plugins</groupId>
206 <artifactId>maven-compiler-plugin</artifactId>
207 <version>3.8.1</version>
209 <annotationProcessorPaths>
211 <groupId>org.projectlombok</groupId>
212 <artifactId>lombok</artifactId>
213 <version>1.18.20</version>
216 <groupId>org.mapstruct</groupId>
217 <artifactId>mapstruct-processor</artifactId>
218 <version>${mapstruct.version}</version>
220 </annotationProcessorPaths>
224 <groupId>org.springframework.boot</groupId>
225 <artifactId>spring-boot-maven-plugin</artifactId>
226 <version>2.3.3.RELEASE</version>
230 <goal>build-info</goal>
231 <goal>repackage</goal>
237 <!-- The gmavenplus plugin is used to compile Groovy code. To learn more about this plugin,
238 visit https://github.com/groovy/GMavenPlus/wiki -->
239 <groupId>org.codehaus.gmavenplus</groupId>
240 <artifactId>gmavenplus-plugin</artifactId>
241 <version>1.12.1</version>
246 <goal>compileTests</goal>
252 <groupId>org.apache.maven.plugins</groupId>
253 <artifactId>maven-checkstyle-plugin</artifactId>
256 <id>onap-license</id>
260 <phase>process-sources</phase>
262 <configLocation>onap-checkstyle/check-license.xml</configLocation>
263 <includeResources>false</includeResources>
264 <includeTestSourceDirectory>true</includeTestSourceDirectory>
265 <includeTestResources>false</includeTestResources>
267 <sourceDirectory>${project.build.sourceDirectory}</sourceDirectory>
269 <consoleOutput>false</consoleOutput>
270 <violationSeverity>warning</violationSeverity>
271 <failOnViolation>true</failOnViolation>
275 <id>onap-java-style</id>
279 <phase>process-sources</phase>
281 <configLocation>onap-checkstyle/onap-java-style.xml</configLocation>
283 <sourceDirectory>${project.build.sourceDirectory}</sourceDirectory>
285 <includeResources>true</includeResources>
286 <includeTestSourceDirectory>true</includeTestSourceDirectory>
287 <includeTestResources>true</includeTestResources>
288 <consoleOutput>false</consoleOutput>
289 <violationSeverity>warning</violationSeverity>
290 <failOnViolation>true</failOnViolation>
294 <id>cps-java-style</id>
298 <phase>process-sources</phase>
300 <configLocation>cps-java-style.xml</configLocation>
302 <sourceDirectory>${project.build.sourceDirectory}</sourceDirectory>
304 <includeResources>true</includeResources>
305 <includeTestSourceDirectory>true</includeTestSourceDirectory>
306 <includeTestResources>true</includeTestResources>
307 <consoleOutput>true</consoleOutput>
308 <violationSeverity>warning</violationSeverity>
309 <failOnViolation>true</failOnViolation>
315 <groupId>org.onap.oparent</groupId>
316 <artifactId>checkstyle</artifactId>
317 <version>3.2.0</version>
320 <groupId>org.onap.cps</groupId>
321 <artifactId>checkstyle</artifactId>
322 <version>${cps.version}</version>
327 <groupId>com.github.spotbugs</groupId>
328 <artifactId>spotbugs-maven-plugin</artifactId>
329 <version>4.1.3</version>
332 <groupId>com.github.spotbugs</groupId>
333 <artifactId>spotbugs</artifactId>
334 <version>4.2.0</version>
337 <groupId>org.onap.cps</groupId>
338 <artifactId>spotbugs</artifactId>
339 <version>${cps.version}</version>
342 <!-- The SpotBugs Maven plugin uses SLF4J 1.8 beta 2 -->
343 <groupId>org.slf4j</groupId>
344 <artifactId>slf4j-simple</artifactId>
345 <version>1.8.0-beta4</version>
351 <groupId>jp.skypencil.findbugs.slf4j</groupId>
352 <artifactId>bug-pattern</artifactId>
353 <version>1.5.0</version>
357 Enables analysis which takes more memory but finds more bugs.
358 If you run out of memory, changes the value of the effort element
362 <addSourceDirs>true</addSourceDirs>
363 <!-- Reports all bugs (other values are medium and max) -->
364 <threshold>Low</threshold>
365 <!-- Build doesn't fail if problems are found -->
366 <failOnError>true</failOnError>
367 <!-- References the excluded rules -->
368 <excludeFilterFile>spotbugs-exclude.xml</excludeFilterFile>
369 <!-- Produces XML report -->
370 <xmlOutput>true</xmlOutput>
371 <!-- Configures the directory in which the XML report is created -->
372 <xmlOutputDirectory>${project.build.directory}/spotbugs</xmlOutputDirectory>
376 Ensures that SpotBugs inspects source code when project is compiled.
379 <id>analyze-compile</id>
380 <phase>compile</phase>
388 <groupId>org.apache.maven.plugins</groupId>
389 <artifactId>maven-surefire-plugin</artifactId>
391 <!--suppress UnresolvedMavenProperty -->
392 <argLine>${surefireArgLine}</argLine>
393 <useFile>false</useFile>
395 <include>**/*Spec.java</include>
396 <include>**/*Test.java</include>
398 <environmentVariables>
400 Disable privileged container usage to cleanup the test containers;
401 these are removed automatically on jvm termination;
402 see https://www.testcontainers.org/features/configuration/#disabling-ryuk
404 <TESTCONTAINERS_RYUK_DISABLED>true</TESTCONTAINERS_RYUK_DISABLED>
405 </environmentVariables>
409 <groupId>org.jacoco</groupId>
410 <artifactId>jacoco-maven-plugin</artifactId>
413 <id>coverage-prepare-agent</id>
415 <goal>prepare-agent</goal>
419 <id>coverage-check</id>
425 <exclude>org/onap/cps/temporal/controller/rest/model/*</exclude>
427 <dataFile>${project.build.directory}/code-coverage/jacoco-ut.exec</dataFile>
430 <element>BUNDLE</element>
433 <counter>INSTRUCTION</counter>
434 <value>COVEREDRATIO</value>
435 <minimum>${minimum-coverage}</minimum>
443 <id>coverage-report</id>
448 <dataFile>${project.build.directory}/code-coverage/jacoco-ut.exec</dataFile>
454 <groupId>io.swagger.codegen.v3</groupId>
455 <artifactId>swagger-codegen-maven-plugin</artifactId>
456 <version>3.0.27</version>
460 <goal>generate</goal>
463 <inputSpec>${project.basedir}/docs/api/swagger/openapi.yml</inputSpec>
464 <invokerPackage>org.onap.cps.temporal.controller.rest</invokerPackage>
465 <modelPackage>org.onap.cps.temporal.controller.rest.model</modelPackage>
466 <apiPackage>org.onap.cps.temporal.controller.rest</apiPackage>
467 <language>spring</language>
468 <generateSupportingFiles>false</generateSupportingFiles>
470 <sourceFolder>src/gen/java</sourceFolder>
471 <dateLibrary>java11</dateLibrary>
472 <interfaceOnly>true</interfaceOnly>
473 <useTags>true</useTags>
484 <groupId>org.apache.maven.plugins</groupId>
485 <artifactId>maven-surefire-plugin</artifactId>
486 <version>3.0.0-M5</version>
489 <groupId>com.google.cloud.tools</groupId>
490 <artifactId>jib-maven-plugin</artifactId>
491 <version>3.0.0</version>
494 <mainClass>${app}</mainClass>
495 <creationTime>USE_CURRENT_TIMESTAMP</creationTime>
498 <image>${image.base}</image>
504 <image>${image.name}:${project.version}-${maven.build.timestamp}</image>
509 <phase>package</phase>
512 <goal>dockerBuild</goal>
516 <phase>deploy</phase>
517 <id>buildAndPush</id>
534 <groupId>com.google.cloud.tools</groupId>
535 <artifactId>jib-maven-plugin</artifactId>