blob: cebd4a89f98205d1baacffeacd7c8c0549a10e07 [file] [log] [blame]
DylanB95ESTb5a23832021-06-02 19:45:46 +01001<!--
2 ============LICENSE_START=======================================================
egernugb0ee0382024-04-17 10:08:38 +01003 Copyright (c) 2021-2024 Nordix Foundation.
puthuparambil.aditya08fe9712021-07-13 11:52:13 +01004 Modifications Copyright (C) 2021 Bell Canada.
DylanB95ESTb5a23832021-06-02 19:45:46 +01005 ================================================================================
6 Licensed under the Apache License, Version 2.0 (the "License");
7 you may not use this file except in compliance with the License.
8 You may obtain a copy of the License at
lukegleesonb208aeb2021-07-08 16:48:15 +01009
DylanB95ESTb5a23832021-06-02 19:45:46 +010010 http://www.apache.org/licenses/LICENSE-2.0
lukegleesonb208aeb2021-07-08 16:48:15 +010011
DylanB95ESTb5a23832021-06-02 19:45:46 +010012 Unless required by applicable law or agreed to in writing, software
13 distributed under the License is distributed on an "AS IS" BASIS,
14 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 See the License for the specific language governing permissions and
16 limitations under the License.
lukegleesonb208aeb2021-07-08 16:48:15 +010017
18 SPDX-License-Identifier: Apache-2.0
DylanB95ESTb5a23832021-06-02 19:45:46 +010019 ============LICENSE_END=========================================================
ToineSiebelink4cbd60b2021-09-30 16:53:42 +010020-->
DylanB95ESTb5a23832021-06-02 19:45:46 +010021<project xmlns="http://maven.apache.org/POM/4.0.0"
puthuparambil.aditya08fe9712021-07-13 11:52:13 +010022 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
23 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
DylanB95ESTb5a23832021-06-02 19:45:46 +010024 <modelVersion>4.0.0</modelVersion>
DylanB95ESTb5a23832021-06-02 19:45:46 +010025 <parent>
26 <groupId>org.onap.oparent</groupId>
27 <artifactId>oparent</artifactId>
ToineSiebelink54d10a72022-04-05 13:54:32 +010028 <version>3.3.0</version>
DylanB95ESTb5a23832021-06-02 19:45:46 +010029 <relativePath/>
30 </parent>
DylanB95ESTb5a23832021-06-02 19:45:46 +010031 <organization>
32 <name>ONAP - CPS</name>
33 <url>http://www.onap.org/</url>
34 </organization>
DylanB95ESTb5a23832021-06-02 19:45:46 +010035 <groupId>org.onap.cps</groupId>
36 <artifactId>ncmp-dmi-plugin</artifactId>
seanbeirne2a83a1e2024-05-14 15:39:35 +010037 <version>1.5.1-SNAPSHOT</version>
DylanB95ESTb5a23832021-06-02 19:45:46 +010038 <name>ncmp-dmi-plugin</name>
39 <description>DMI Plugin Service</description>
DylanB95ESTb5a23832021-06-02 19:45:46 +010040 <properties>
niamhcore71a61bb2021-07-06 10:32:17 +010041 <app>org.onap.cps.ncmp.dmi.Application</app>
egernug92f74d72023-07-17 13:45:51 +010042 <base.image>${docker.pull.registry}/onap/integration-java17:12.0.0</base.image>
seanbeirne1a835512024-05-14 10:43:00 +010043 <cps.version>3.4.9</cps.version>
shivasubedif4b36ef2021-06-23 16:01:10 +010044 <image.tag>${project.version}-${maven.build.timestamp}</image.tag>
ToineSiebelink4cbd60b2021-09-30 16:53:42 +010045 <jacoco.minimum.coverage>0.98</jacoco.minimum.coverage>
shivasubedif4b36ef2021-06-23 16:01:10 +010046 <maven.build.timestamp.format>yyyyMMdd'T'HHmmss'Z'</maven.build.timestamp.format>
DylanB95ESTb5a23832021-06-02 19:45:46 +010047 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
DylanB95ESTb5a23832021-06-02 19:45:46 +010048 </properties>
DylanB95ESTb5a23832021-06-02 19:45:46 +010049 <dependencyManagement>
50 <dependencies>
51 <dependency>
egernugd59b5ef2023-10-19 11:23:13 +010052 <groupId>org.springframework.boot</groupId>
53 <artifactId>spring-boot-dependencies</artifactId>
54 <version>3.1.2</version>
55 <type>pom</type>
56 <scope>import</scope>
57 </dependency>
58 <dependency>
59 <groupId>org.springframework.cloud</groupId>
60 <artifactId>spring-cloud-dependencies</artifactId>
61 <version>2022.0.3</version>
62 <type>pom</type>
63 <scope>import</scope>
64 </dependency>
65 <dependency>
JosephKeenan2cd8b982022-05-23 15:43:05 +010066 <groupId>com.google.code.gson</groupId>
67 <artifactId>gson</artifactId>
68 <version>2.8.9</version>
69 </dependency>
70 <dependency>
ToineSiebelink17c24ef2023-04-19 16:52:14 +010071 <groupId>io.swagger.core.v3</groupId>
JosephKeenan2cd8b982022-05-23 15:43:05 +010072 <artifactId>swagger-annotations</artifactId>
egernug1118bed2023-06-28 10:57:53 +010073 <version>2.2.10</version>
JosephKeenan2cd8b982022-05-23 15:43:05 +010074 </dependency>
75 <dependency>
mpriyanka9b8d9d2023-06-20 13:42:31 +010076 <groupId>io.cloudevents</groupId>
77 <artifactId>cloudevents-json-jackson</artifactId>
78 <version>2.5.0</version>
79 </dependency>
80 <dependency>
81 <groupId>io.cloudevents</groupId>
82 <artifactId>cloudevents-kafka</artifactId>
83 <version>2.5.0</version>
84 </dependency>
85 <dependency>
86 <groupId>io.cloudevents</groupId>
87 <artifactId>cloudevents-spring</artifactId>
88 <version>2.5.0</version>
89 </dependency>
90 <dependency>
JosephKeenan2cd8b982022-05-23 15:43:05 +010091 <groupId>net.logstash.logback</groupId>
92 <artifactId>logstash-logback-encoder</artifactId>
93 <version>7.0.1</version>
94 </dependency>
95 <dependency>
egernuga12d2712023-11-01 11:02:24 +000096 <groupId>net.minidev</groupId>
97 <artifactId>json-smart</artifactId>
98 <version>2.5.0</version>
99 </dependency>
100 <dependency>
ToineSiebelink17c24ef2023-04-19 16:52:14 +0100101 <groupId>org.apache.httpcomponents</groupId>
102 <artifactId>httpclient</artifactId>
103 <version>4.5.13</version>
104 </dependency>
105 <dependency>
egernugd59b5ef2023-10-19 11:23:13 +0100106 <groupId>org.codehaus.groovy</groupId>
107 <artifactId>groovy</artifactId>
108 <version>3.0.18</version>
DylanB95ESTb5a23832021-06-02 19:45:46 +0100109 </dependency>
110 <dependency>
DylanB95ESTb5a23832021-06-02 19:45:46 +0100111 <groupId>org.spockframework</groupId>
egernugd59b5ef2023-10-19 11:23:13 +0100112 <artifactId>spock-core</artifactId>
113 <version>2.4-M1-groovy-3.0</version>
114 </dependency>
115 <dependency>
116 <groupId>org.spockframework</groupId>
117 <artifactId>spock-spring</artifactId>
118 <version>2.4-M1-groovy-3.0</version>
DylanB95ESTb5a23832021-06-02 19:45:46 +0100119 </dependency>
niamhcore98351072021-12-15 11:23:56 +0000120 <dependency>
JosephKeenan2cd8b982022-05-23 15:43:05 +0100121 <groupId>org.springdoc</groupId>
egernugd59b5ef2023-10-19 11:23:13 +0100122 <artifactId>springdoc-openapi-starter-webmvc-ui</artifactId>
123 <version>2.0.2</version>
JosephKeenanbe383b42022-03-23 15:12:53 +0000124 </dependency>
mpriyank78e1d062022-04-08 15:12:22 +0530125 <dependency>
126 <groupId>org.testcontainers</groupId>
127 <artifactId>testcontainers-bom</artifactId>
egernugd59b5ef2023-10-19 11:23:13 +0100128 <version>1.18.3</version>
mpriyank78e1d062022-04-08 15:12:22 +0530129 <type>pom</type>
130 <scope>import</scope>
131 </dependency>
sourabh_sourabhdf26bc32022-05-04 11:38:52 +0100132 <dependency>
sourabh_sourabhdf26bc32022-05-04 11:38:52 +0100133 <groupId>org.codehaus.janino</groupId>
134 <artifactId>janino</artifactId>
egernuga12d2712023-11-01 11:02:24 +0000135 <version>3.1.10</version>
sourabh_sourabhdf26bc32022-05-04 11:38:52 +0100136 </dependency>
JosephKeenan2cd8b982022-05-23 15:43:05 +0100137 <dependency>
egernugd59b5ef2023-10-19 11:23:13 +0100138 <groupId>org.projectlombok</groupId>
139 <artifactId>lombok</artifactId>
140 <version>1.18.24</version>
141 </dependency>
142 <dependency>
JosephKeenan2cd8b982022-05-23 15:43:05 +0100143 <groupId>org.onap.cps</groupId>
144 <artifactId>cps-ncmp-events</artifactId>
mpriyankb1332ae2022-09-23 12:59:38 +0100145 <version>${cps.version}</version>
JosephKeenan2cd8b982022-05-23 15:43:05 +0100146 </dependency>
egernugd59b5ef2023-10-19 11:23:13 +0100147 <dependency>
148 <groupId>org.apache.httpcomponents.client5</groupId>
149 <artifactId>httpclient5</artifactId>
150 <version>5.2.1</version>
151 </dependency>
DylanB95ESTb5a23832021-06-02 19:45:46 +0100152 </dependencies>
153 </dependencyManagement>
DylanB95ESTb5a23832021-06-02 19:45:46 +0100154 <dependencies>
155 <dependency>
egernugd59b5ef2023-10-19 11:23:13 +0100156 <groupId>org.springframework.boot</groupId>
157 <artifactId>spring-boot-starter-web</artifactId>
158 </dependency>
159 <dependency>
160 <groupId>org.springframework.boot</groupId>
161 <artifactId>spring-boot-starter-validation</artifactId>
162 </dependency>
163 <dependency>
164 <groupId>org.springdoc</groupId>
165 <artifactId>springdoc-openapi-starter-webmvc-ui</artifactId>
166 </dependency>
167 <dependency>
168 <groupId>org.springframework.boot</groupId>
169 <artifactId>spring-boot-starter-security</artifactId>
170 </dependency>
171 <dependency>
172 <groupId>org.springframework.boot</groupId>
173 <artifactId>spring-boot-starter-actuator</artifactId>
174 </dependency>
175 <dependency>
176 <groupId>org.springframework.kafka</groupId>
177 <artifactId>spring-kafka</artifactId>
178 </dependency>
179 <dependency>
JosephKeenan2cd8b982022-05-23 15:43:05 +0100180 <groupId>com.google.code.gson</groupId>
181 <artifactId>gson</artifactId>
182 </dependency>
183 <dependency>
184 <groupId>com.jayway.jsonpath</groupId>
185 <artifactId>json-path</artifactId>
186 </dependency>
187 <dependency>
188 <groupId>io.micrometer</groupId>
189 <artifactId>micrometer-registry-prometheus</artifactId>
190 </dependency>
191 <dependency>
ToineSiebelink17c24ef2023-04-19 16:52:14 +0100192 <groupId>io.swagger.core.v3</groupId>
JosephKeenan2cd8b982022-05-23 15:43:05 +0100193 <artifactId>swagger-annotations</artifactId>
194 </dependency>
195 <dependency>
mpriyanka9b8d9d2023-06-20 13:42:31 +0100196 <groupId>io.cloudevents</groupId>
197 <artifactId>cloudevents-json-jackson</artifactId>
198 </dependency>
199 <dependency>
200 <groupId>io.cloudevents</groupId>
201 <artifactId>cloudevents-kafka</artifactId>
202 </dependency>
203 <dependency>
204 <groupId>io.cloudevents</groupId>
205 <artifactId>cloudevents-spring</artifactId>
206 </dependency>
207 <dependency>
JosephKeenan2cd8b982022-05-23 15:43:05 +0100208 <groupId>net.logstash.logback</groupId>
209 <artifactId>logstash-logback-encoder</artifactId>
210 </dependency>
211 <dependency>
212 <groupId>net.minidev</groupId>
213 <artifactId>json-smart</artifactId>
214 </dependency>
215 <dependency>
216 <groupId>org.apache.httpcomponents</groupId>
217 <artifactId>httpclient</artifactId>
JosephKeenan2cd8b982022-05-23 15:43:05 +0100218 </dependency>
egernugd59b5ef2023-10-19 11:23:13 +0100219
JosephKeenan2cd8b982022-05-23 15:43:05 +0100220 <dependency>
221 <groupId>org.codehaus.groovy</groupId>
222 <artifactId>groovy</artifactId>
223 </dependency>
224 <dependency>
225 <groupId>org.codehaus.janino</groupId>
226 <artifactId>janino</artifactId>
227 </dependency>
228 <dependency>
egernugd59b5ef2023-10-19 11:23:13 +0100229 <groupId>org.eclipse.jetty</groupId>
230 <artifactId>jetty-server</artifactId>
231 </dependency>
232 <dependency>
233 <groupId>org.eclipse.jetty</groupId>
234 <artifactId>jetty-http</artifactId>
235 </dependency>
236 <dependency>
JosephKeenan2cd8b982022-05-23 15:43:05 +0100237 <groupId>org.onap.cps</groupId>
238 <artifactId>cps-ncmp-events</artifactId>
239 </dependency>
240 <dependency>
241 <groupId>org.projectlombok</groupId>
242 <artifactId>lombok</artifactId>
243 </dependency>
244 <dependency>
egernugd59b5ef2023-10-19 11:23:13 +0100245 <groupId>org.apache.httpcomponents.client5</groupId>
246 <artifactId>httpclient5</artifactId>
JosephKeenan2cd8b982022-05-23 15:43:05 +0100247 </dependency>
248 <!-- T E S T - D E P E N D E N C I E S -->
249 <dependency>
250 <groupId>org.spockframework</groupId>
251 <artifactId>spock-core</artifactId>
252 <scope>test</scope>
253 </dependency>
254 <dependency>
255 <groupId>org.spockframework</groupId>
256 <artifactId>spock-spring</artifactId>
257 <scope>test</scope>
Renu Kumari306cadd2021-10-22 00:50:29 -0400258 </dependency>
259 <dependency>
DylanB95ESTb5a23832021-06-02 19:45:46 +0100260 <groupId>org.springframework.boot</groupId>
261 <artifactId>spring-boot-starter-test</artifactId>
262 <scope>test</scope>
263 <exclusions>
264 <exclusion>
265 <groupId>org.junit.vintage</groupId>
266 <artifactId>junit-vintage-engine</artifactId>
267 </exclusion>
268 </exclusions>
269 </dependency>
270 <dependency>
JosephKeenan2cd8b982022-05-23 15:43:05 +0100271 <groupId>org.springframework.kafka</groupId>
272 <artifactId>spring-kafka-test</artifactId>
DylanB95ESTb5a23832021-06-02 19:45:46 +0100273 <scope>test</scope>
274 </dependency>
275 <dependency>
Renu Kumari306cadd2021-10-22 00:50:29 -0400276 <groupId>org.springframework.security</groupId>
277 <artifactId>spring-security-test</artifactId>
278 <scope>test</scope>
279 </dependency>
280 <dependency>
mpriyank78e1d062022-04-08 15:12:22 +0530281 <groupId>org.testcontainers</groupId>
282 <artifactId>spock</artifactId>
283 <scope>test</scope>
284 </dependency>
285 <dependency>
286 <groupId>org.testcontainers</groupId>
287 <artifactId>kafka</artifactId>
288 <scope>test</scope>
289 </dependency>
DylanB95ESTb5a23832021-06-02 19:45:46 +0100290 </dependencies>
DylanB95ESTb5a23832021-06-02 19:45:46 +0100291 <build>
292 <resources>
293 <resource>
294 <directory>src/main/resources</directory>
295 <filtering>true</filtering>
296 </resource>
297 <resource>
298 <directory>target/generated-sources/license</directory>
299 <includes>
300 <include>third-party-licenses.txt</include>
301 </includes>
302 </resource>
303 <resource>
304 <directory>target/generated-resources/licenses</directory>
305 <includes>
306 <include>*.*</include>
307 </includes>
308 <targetPath>third-party-licenses</targetPath>
309 </resource>
310 </resources>
311 <plugins>
312 <plugin>
egernug1118bed2023-06-28 10:57:53 +0100313 <groupId>org.openapitools</groupId>
314 <artifactId>openapi-generator-maven-plugin</artifactId>
315 <version>6.6.0</version>
DylanB95ESTb5a23832021-06-02 19:45:46 +0100316 <executions>
317 <execution>
egernugb0ee0382024-04-17 10:08:38 +0100318 <id>dmi-code-gen</id>
DylanB95ESTb5a23832021-06-02 19:45:46 +0100319 <goals>
320 <goal>generate</goal>
321 </goals>
322 <configuration>
Renu Kumari3aea57e2021-10-12 13:41:01 -0400323 <inputSpec>${project.basedir}/openapi/openapi.yml</inputSpec>
egernug1118bed2023-06-28 10:57:53 +0100324 <generatorName>spring</generatorName>
DylanB95ESTb5a23832021-06-02 19:45:46 +0100325 <generateSupportingFiles>false</generateSupportingFiles>
egernug1118bed2023-06-28 10:57:53 +0100326 <invokerPackage>org.onap.cps.ncmp.dmi.rest.controller</invokerPackage>
tragait7c4a9aa2021-07-19 13:46:37 +0100327 <apiPackage>org.onap.cps.ncmp.dmi.rest.api</apiPackage>
328 <modelPackage>org.onap.cps.ncmp.dmi.model</modelPackage>
egernug1118bed2023-06-28 10:57:53 +0100329 <generateAliasAsModel>true</generateAliasAsModel>
DylanB95ESTb5a23832021-06-02 19:45:46 +0100330 <configOptions>
331 <sourceFolder>src/gen/java</sourceFolder>
332 <dateLibrary>java11</dateLibrary>
333 <interfaceOnly>true</interfaceOnly>
334 <useTags>true</useTags>
egernugd59b5ef2023-10-19 11:23:13 +0100335 <useSpringBoot3>true</useSpringBoot3>
egernug1118bed2023-06-28 10:57:53 +0100336 <openApiNullable>false</openApiNullable>
337 <skipDefaultInterface>true</skipDefaultInterface>
DylanB95ESTb5a23832021-06-02 19:45:46 +0100338 </configOptions>
339 </configuration>
340 </execution>
shivasubedi3d1579c2021-09-13 16:43:20 +0100341 <execution>
egernugb0ee0382024-04-17 10:08:38 +0100342 <id>dmi-datajob-code-gen</id>
343 <goals>
344 <goal>generate</goal>
345 </goals>
346 <configuration>
347 <inputSpec>${project.basedir}/openapi/openapi-datajob.yml</inputSpec>
348 <generatorName>spring</generatorName>
349 <generateSupportingFiles>false</generateSupportingFiles>
350 <invokerPackage>org.onap.cps.ncmp.dmi.rest.controller</invokerPackage>
351 <apiPackage>org.onap.cps.ncmp.dmi.rest.api</apiPackage>
352 <modelPackage>org.onap.cps.ncmp.dmi.model</modelPackage>
353 <generateAliasAsModel>true</generateAliasAsModel>
354 <configOptions>
355 <sourceFolder>src/gen/java</sourceFolder>
356 <dateLibrary>java11</dateLibrary>
357 <interfaceOnly>true</interfaceOnly>
358 <useTags>true</useTags>
359 <useSpringBoot3>true</useSpringBoot3>
360 <openApiNullable>false</openApiNullable>
361 <skipDefaultInterface>true</skipDefaultInterface>
362 </configOptions>
363 </configuration>
364 </execution>
365 <execution>
shivasubedi3d1579c2021-09-13 16:43:20 +0100366 <id>openapi-yaml-gen</id>
367 <goals>
368 <goal>generate</goal>
369 </goals>
370 <phase>compile</phase>
371 <configuration>
Renu Kumari3aea57e2021-10-12 13:41:01 -0400372 <inputSpec>${project.basedir}/openapi/openapi.yml</inputSpec>
egernug1118bed2023-06-28 10:57:53 +0100373 <generatorName>openapi-yaml</generatorName>
egernugb0ee0382024-04-17 10:08:38 +0100374 <configOptions>
375 <outputFile>openapi/openapi.yaml</outputFile>
376 </configOptions>
377 </configuration>
378 </execution>
379 <execution>
380 <id>openapi-datajob-yaml-gen</id>
381 <goals>
382 <goal>generate</goal>
383 </goals>
384 <phase>compile</phase>
385 <configuration>
386 <inputSpec>${project.basedir}/openapi/openapi-datajob.yml</inputSpec>
387 <generatorName>openapi-yaml</generatorName>
388 <configOptions>
389 <outputFile>openapi/openapi-datajob.yaml</outputFile>
390 </configOptions>
shivasubedi3d1579c2021-09-13 16:43:20 +0100391 </configuration>
392 </execution>
DylanB95ESTb5a23832021-06-02 19:45:46 +0100393 </executions>
394 </plugin>
395 <plugin>
puthuparambil.aditya1d902262021-11-23 14:53:43 +0000396 <artifactId>maven-resources-plugin</artifactId>
397 <executions>
398 <execution>
399 <id>copy-resources</id>
400 <phase>compile</phase>
401 <goals>
402 <goal>copy-resources</goal>
403 </goals>
404 <configuration>
405 <outputDirectory>${project.basedir}/target/classes/static/api-docs</outputDirectory>
406 <resources>
407 <resource>
egernug1118bed2023-06-28 10:57:53 +0100408 <directory>${project.basedir}/target/generated-sources/openapi/openapi</directory>
puthuparambil.aditya1d902262021-11-23 14:53:43 +0000409 <includes>
egernugb0ee0382024-04-17 10:08:38 +0100410 <include>openapi*.yaml</include>
puthuparambil.aditya1d902262021-11-23 14:53:43 +0000411 </includes>
412 </resource>
413 </resources>
414 </configuration>
415 </execution>
416 </executions>
417 </plugin>
418 <plugin>
DylanB95ESTb5a23832021-06-02 19:45:46 +0100419 <groupId>org.springframework.boot</groupId>
420 <artifactId>spring-boot-maven-plugin</artifactId>
egernugd59b5ef2023-10-19 11:23:13 +0100421 <version>3.1.2</version>
DylanB95ESTb5a23832021-06-02 19:45:46 +0100422 <executions>
423 <execution>
424 <goals>
425 <goal>build-info</goal>
426 <goal>repackage</goal>
427 </goals>
428 </execution>
429 </executions>
430 </plugin>
431 <plugin>
432 <groupId>org.codehaus.gmavenplus</groupId>
433 <artifactId>gmavenplus-plugin</artifactId>
434 <executions>
435 <execution>
436 <goals>
437 <goal>compileTests</goal>
438 </goals>
439 </execution>
440 </executions>
441 </plugin>
442 <plugin>
443 <groupId>org.apache.maven.plugins</groupId>
444 <artifactId>maven-surefire-plugin</artifactId>
445 <configuration>
446 <argLine>${surefireArgLine}</argLine>
447 <includes>
448 <include>**/*Spec.java</include>
449 </includes>
450 <excludes>
451 <exclude>**/IT*.java</exclude>
452 </excludes>
mpriyank78e1d062022-04-08 15:12:22 +0530453 <environmentVariables>
454 <!--
455 Disable privileged container usage to cleanup the test containers;
456 these are removed automatically on jvm termination;
457 see https://www.testcontainers.org/features/configuration/#disabling-ryuk
458 -->
459 <TESTCONTAINERS_RYUK_DISABLED>true</TESTCONTAINERS_RYUK_DISABLED>
460 </environmentVariables>
DylanB95ESTb5a23832021-06-02 19:45:46 +0100461 </configuration>
462 </plugin>
shivasubedi55500c32021-06-23 16:31:02 +0100463 <plugin>
464 <groupId>org.apache.maven.plugins</groupId>
465 <artifactId>maven-checkstyle-plugin</artifactId>
466 <executions>
467 <execution>
Bruno Sakotoff5f74d2021-07-14 11:15:48 -0400468 <id>onap-license</id>
469 <goals>
470 <goal>check</goal>
471 </goals>
472 <phase>process-sources</phase>
473 <configuration>
474 <configLocation>onap-checkstyle/check-license.xml</configLocation>
475 <includeResources>false</includeResources>
476 <includeTestSourceDirectory>true</includeTestSourceDirectory>
477 <includeTestResources>false</includeTestResources>
478 <sourceDirectories>
479 <sourceDirectory>${project.build.sourceDirectory}</sourceDirectory>
480 </sourceDirectories>
481 <consoleOutput>false</consoleOutput>
482 <violationSeverity>warning</violationSeverity>
483 <failOnViolation>true</failOnViolation>
484 </configuration>
485 </execution>
486 <execution>
487 <id>onap-java-style</id>
488 <goals>
489 <goal>check</goal>
490 </goals>
491 <phase>process-sources</phase>
492 <configuration>
493 <configLocation>onap-checkstyle/onap-java-style.xml</configLocation>
494 <sourceDirectories>
495 <sourceDirectory>${project.build.sourceDirectory}</sourceDirectory>
496 </sourceDirectories>
497 <includeResources>true</includeResources>
498 <includeTestSourceDirectory>true</includeTestSourceDirectory>
499 <includeTestResources>true</includeTestResources>
500 <consoleOutput>false</consoleOutput>
501 <violationSeverity>warning</violationSeverity>
502 <failOnViolation>true</failOnViolation>
503 </configuration>
504 </execution>
505 <execution>
shivasubedi55500c32021-06-23 16:31:02 +0100506 <id>cps-java-style</id>
507 <goals>
508 <goal>check</goal>
509 </goals>
510 <phase>process-sources</phase>
511 <configuration>
512 <configLocation>cps-java-style.xml</configLocation>
513 <sourceDirectories>
514 <sourceDirectory>${project.build.sourceDirectory}</sourceDirectory>
515 </sourceDirectories>
516 <includeResources>true</includeResources>
517 <includeTestSourceDirectory>true</includeTestSourceDirectory>
518 <includeTestResources>true</includeTestResources>
519 <consoleOutput>true</consoleOutput>
520 <violationSeverity>warning</violationSeverity>
521 <failOnViolation>true</failOnViolation>
522 </configuration>
523 </execution>
524 </executions>
525 <dependencies>
526 <dependency>
527 <groupId>${project.groupId}</groupId>
528 <artifactId>checkstyle</artifactId>
529 <version>${cps.version}</version>
530 </dependency>
531 </dependencies>
532 </plugin>
533 <plugin>
534 <groupId>com.github.spotbugs</groupId>
535 <artifactId>spotbugs-maven-plugin</artifactId>
egernug92f74d72023-07-17 13:45:51 +0100536 <version>4.4.2</version>
shivasubedi55500c32021-06-23 16:31:02 +0100537 <executions>
538 <execution>
539 <id>analyze-compile</id>
540 <phase>compile</phase>
541 <goals>
542 <goal>check</goal>
543 </goals>
544 </execution>
545 </executions>
546 <dependencies>
547 <dependency>
548 <groupId>${project.groupId}</groupId>
549 <artifactId>spotbugs</artifactId>
550 <version>${cps.version}</version>
551 <scope>compile</scope>
552 </dependency>
553 </dependencies>
554 <configuration>
555 <plugins>
556 <plugin>
557 <groupId>jp.skypencil.findbugs.slf4j</groupId>
558 <artifactId>bug-pattern</artifactId>
shivasubedi275c1dc2021-07-07 16:39:34 +0100559 <version>1.5.0</version>
shivasubedi55500c32021-06-23 16:31:02 +0100560 </plugin>
561 </plugins>
562 <effort>Max</effort>
563 <threshold>Low</threshold>
564 <failOnError>true</failOnError>
565 <excludeFilterFile>spotbugs-exclude.xml</excludeFilterFile>
niamhcore4f431882021-09-21 16:08:29 +0100566 <addSourceDirs>true</addSourceDirs>
shivasubedi55500c32021-06-23 16:31:02 +0100567 <xmlOutput>true</xmlOutput>
568 <xmlOutputDirectory>${basedir}/target/spotbugs</xmlOutputDirectory>
569 </configuration>
570 </plugin>
571 <plugin>
572 <groupId>org.jacoco</groupId>
573 <artifactId>jacoco-maven-plugin</artifactId>
egernugd59b5ef2023-10-19 11:23:13 +0100574 <version>0.8.10</version>
shivasubedi55500c32021-06-23 16:31:02 +0100575 <configuration>
576 <excludes>
tragait7c4a9aa2021-07-19 13:46:37 +0100577 <exclude>org/onap/cps/ncmp/dmi/model/*</exclude>
shivasubedi55500c32021-06-23 16:31:02 +0100578 </excludes>
579 </configuration>
580 <executions>
581 <execution>
582 <id>default-prepare-agent</id>
583 <goals>
584 <goal>prepare-agent</goal>
585 </goals>
586 </execution>
587 <execution>
588 <id>coverage-check</id>
589 <goals>
590 <goal>check</goal>
591 </goals>
592 <configuration>
593 <dataFile>${basedir}/target/code-coverage/jacoco-ut.exec</dataFile>
594 <rules>
595 <rule>
596 <element>BUNDLE</element>
597 <limits>
598 <limit>
599 <counter>INSTRUCTION</counter>
600 <value>COVEREDRATIO</value>
601 <minimum>${jacoco.minimum.coverage}</minimum>
602 </limit>
603 </limits>
604 </rule>
605 </rules>
606 </configuration>
607 </execution>
608 <execution>
609 <id>report</id>
610 <phase>verify</phase>
611 <goals>
612 <goal>report-aggregate</goal>
613 </goals>
614 <configuration>
615 <dataFileIncludes>
616 <fileInclude>**/code-coverage/jacoco-ut.exec</fileInclude>
617 </dataFileIncludes>
618 </configuration>
619 </execution>
620 </executions>
621 </plugin>
DylanB95ESTb5a23832021-06-02 19:45:46 +0100622 </plugins>
shivasubedif4b36ef2021-06-23 16:01:10 +0100623 <pluginManagement>
624 <plugins>
625 <plugin>
626 <groupId>com.google.cloud.tools</groupId>
627 <artifactId>jib-maven-plugin</artifactId>
egernugd59b5ef2023-10-19 11:23:13 +0100628 <version>3.3.2</version>
shivasubedif4b36ef2021-06-23 16:01:10 +0100629 <configuration>
630 <container>
631 <mainClass>${app}</mainClass>
632 <creationTime>USE_CURRENT_TIMESTAMP</creationTime>
633 </container>
634 <from>
635 <image>${base.image}</image>
636 </from>
637 <to>
638 <tags>
ToineSiebelink98df7fc2022-10-27 11:06:53 +0100639 <tag>latest</tag>
JosephKeenan371ec2f2021-12-01 09:46:58 +0000640 <tag>${project.version}-latest</tag>
shivasubedif4b36ef2021-06-23 16:01:10 +0100641 </tags>
642 <image>${docker.push.registry}/onap/${image.name}:${image.tag}</image>
643 </to>
644 </configuration>
645 <executions>
646 <execution>
647 <phase>package</phase>
648 <id>build</id>
649 <goals>
650 <goal>dockerBuild</goal>
651 </goals>
652 </execution>
653 <execution>
654 <phase>deploy</phase>
655 <id>buildAndPush</id>
656 <goals>
657 <goal>build</goal>
658 </goals>
659 </execution>
660 </executions>
661 </plugin>
662 </plugins>
663 </pluginManagement>
DylanB95ESTb5a23832021-06-02 19:45:46 +0100664 </build>
shivasubedif4b36ef2021-06-23 16:01:10 +0100665 <profiles>
666 <profile>
puthuparambil.adityaeddb3dd2021-07-27 15:57:19 +0100667 <id>docker</id>
shivasubedif4b36ef2021-06-23 16:01:10 +0100668 <activation>
669 <activeByDefault>true</activeByDefault>
670 </activation>
671 <properties>
672 <image.name>ncmp-dmi-plugin</image.name>
673 </properties>
674 <build>
675 <plugins>
676 <plugin>
677 <groupId>com.google.cloud.tools</groupId>
678 <artifactId>jib-maven-plugin</artifactId>
679 </plugin>
680 </plugins>
681 </build>
682 </profile>
683 </profiles>
lukegleesonb208aeb2021-07-08 16:48:15 +0100684</project>