DylanB95EST | b5a2383 | 2021-06-02 19:45:46 +0100 | [diff] [blame] | 1 | <!-- |
| 2 | ============LICENSE_START======================================================= |
sourabh_sourabh | 4537a8b | 2023-02-01 12:56:44 +0000 | [diff] [blame] | 3 | Copyright (c) 2021-2023 Nordix Foundation. |
puthuparambil.aditya | 08fe971 | 2021-07-13 11:52:13 +0100 | [diff] [blame] | 4 | Modifications Copyright (C) 2021 Bell Canada. |
DylanB95EST | b5a2383 | 2021-06-02 19:45:46 +0100 | [diff] [blame] | 5 | ================================================================================ |
| 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 |
lukegleeson | b208aeb | 2021-07-08 16:48:15 +0100 | [diff] [blame] | 9 | |
DylanB95EST | b5a2383 | 2021-06-02 19:45:46 +0100 | [diff] [blame] | 10 | http://www.apache.org/licenses/LICENSE-2.0 |
lukegleeson | b208aeb | 2021-07-08 16:48:15 +0100 | [diff] [blame] | 11 | |
DylanB95EST | b5a2383 | 2021-06-02 19:45:46 +0100 | [diff] [blame] | 12 | 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. |
lukegleeson | b208aeb | 2021-07-08 16:48:15 +0100 | [diff] [blame] | 17 | |
| 18 | SPDX-License-Identifier: Apache-2.0 |
DylanB95EST | b5a2383 | 2021-06-02 19:45:46 +0100 | [diff] [blame] | 19 | ============LICENSE_END========================================================= |
ToineSiebelink | 4cbd60b | 2021-09-30 16:53:42 +0100 | [diff] [blame] | 20 | --> |
DylanB95EST | b5a2383 | 2021-06-02 19:45:46 +0100 | [diff] [blame] | 21 | <project xmlns="http://maven.apache.org/POM/4.0.0" |
puthuparambil.aditya | 08fe971 | 2021-07-13 11:52:13 +0100 | [diff] [blame] | 22 | 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"> |
DylanB95EST | b5a2383 | 2021-06-02 19:45:46 +0100 | [diff] [blame] | 24 | <modelVersion>4.0.0</modelVersion> |
DylanB95EST | b5a2383 | 2021-06-02 19:45:46 +0100 | [diff] [blame] | 25 | <parent> |
| 26 | <groupId>org.onap.oparent</groupId> |
| 27 | <artifactId>oparent</artifactId> |
ToineSiebelink | 54d10a7 | 2022-04-05 13:54:32 +0100 | [diff] [blame] | 28 | <version>3.3.0</version> |
DylanB95EST | b5a2383 | 2021-06-02 19:45:46 +0100 | [diff] [blame] | 29 | <relativePath/> |
| 30 | </parent> |
DylanB95EST | b5a2383 | 2021-06-02 19:45:46 +0100 | [diff] [blame] | 31 | <organization> |
| 32 | <name>ONAP - CPS</name> |
| 33 | <url>http://www.onap.org/</url> |
| 34 | </organization> |
DylanB95EST | b5a2383 | 2021-06-02 19:45:46 +0100 | [diff] [blame] | 35 | <groupId>org.onap.cps</groupId> |
| 36 | <artifactId>ncmp-dmi-plugin</artifactId> |
mpriyank | 3c6ab23 | 2023-04-07 10:20:37 +0100 | [diff] [blame] | 37 | <version>1.4.0-SNAPSHOT</version> |
DylanB95EST | b5a2383 | 2021-06-02 19:45:46 +0100 | [diff] [blame] | 38 | <name>ncmp-dmi-plugin</name> |
| 39 | <description>DMI Plugin Service</description> |
DylanB95EST | b5a2383 | 2021-06-02 19:45:46 +0100 | [diff] [blame] | 40 | <properties> |
niamhcore | 71a61bb | 2021-07-06 10:32:17 +0100 | [diff] [blame] | 41 | <app>org.onap.cps.ncmp.dmi.Application</app> |
egernug | 92f74d7 | 2023-07-17 13:45:51 +0100 | [diff] [blame^] | 42 | <base.image>${docker.pull.registry}/onap/integration-java17:12.0.0</base.image> |
| 43 | <cps.version>3.3.5</cps.version> |
shivasubedi | f4b36ef | 2021-06-23 16:01:10 +0100 | [diff] [blame] | 44 | <image.tag>${project.version}-${maven.build.timestamp}</image.tag> |
ToineSiebelink | 4cbd60b | 2021-09-30 16:53:42 +0100 | [diff] [blame] | 45 | <jacoco.minimum.coverage>0.98</jacoco.minimum.coverage> |
shivasubedi | f4b36ef | 2021-06-23 16:01:10 +0100 | [diff] [blame] | 46 | <maven.build.timestamp.format>yyyyMMdd'T'HHmmss'Z'</maven.build.timestamp.format> |
DylanB95EST | b5a2383 | 2021-06-02 19:45:46 +0100 | [diff] [blame] | 47 | <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
DylanB95EST | b5a2383 | 2021-06-02 19:45:46 +0100 | [diff] [blame] | 48 | </properties> |
DylanB95EST | b5a2383 | 2021-06-02 19:45:46 +0100 | [diff] [blame] | 49 | <dependencyManagement> |
| 50 | <dependencies> |
| 51 | <dependency> |
JosephKeenan | 2cd8b98 | 2022-05-23 15:43:05 +0100 | [diff] [blame] | 52 | <groupId>com.google.code.gson</groupId> |
| 53 | <artifactId>gson</artifactId> |
| 54 | <version>2.8.9</version> |
| 55 | </dependency> |
| 56 | <dependency> |
ToineSiebelink | 17c24ef | 2023-04-19 16:52:14 +0100 | [diff] [blame] | 57 | <groupId>io.swagger.core.v3</groupId> |
JosephKeenan | 2cd8b98 | 2022-05-23 15:43:05 +0100 | [diff] [blame] | 58 | <artifactId>swagger-annotations</artifactId> |
egernug | 1118bed | 2023-06-28 10:57:53 +0100 | [diff] [blame] | 59 | <version>2.2.10</version> |
JosephKeenan | 2cd8b98 | 2022-05-23 15:43:05 +0100 | [diff] [blame] | 60 | </dependency> |
| 61 | <dependency> |
mpriyank | a9b8d9d | 2023-06-20 13:42:31 +0100 | [diff] [blame] | 62 | <groupId>io.cloudevents</groupId> |
| 63 | <artifactId>cloudevents-json-jackson</artifactId> |
| 64 | <version>2.5.0</version> |
| 65 | </dependency> |
| 66 | <dependency> |
| 67 | <groupId>io.cloudevents</groupId> |
| 68 | <artifactId>cloudevents-kafka</artifactId> |
| 69 | <version>2.5.0</version> |
| 70 | </dependency> |
| 71 | <dependency> |
| 72 | <groupId>io.cloudevents</groupId> |
| 73 | <artifactId>cloudevents-spring</artifactId> |
| 74 | <version>2.5.0</version> |
| 75 | </dependency> |
| 76 | <dependency> |
JosephKeenan | 2cd8b98 | 2022-05-23 15:43:05 +0100 | [diff] [blame] | 77 | <groupId>net.logstash.logback</groupId> |
| 78 | <artifactId>logstash-logback-encoder</artifactId> |
| 79 | <version>7.0.1</version> |
| 80 | </dependency> |
| 81 | <dependency> |
ToineSiebelink | 17c24ef | 2023-04-19 16:52:14 +0100 | [diff] [blame] | 82 | <groupId>org.apache.httpcomponents</groupId> |
| 83 | <artifactId>httpclient</artifactId> |
| 84 | <version>4.5.13</version> |
| 85 | </dependency> |
| 86 | <dependency> |
DylanB95EST | b5a2383 | 2021-06-02 19:45:46 +0100 | [diff] [blame] | 87 | <groupId>org.springframework.boot</groupId> |
| 88 | <artifactId>spring-boot-dependencies</artifactId> |
ToineSiebelink | 17c24ef | 2023-04-19 16:52:14 +0100 | [diff] [blame] | 89 | <version>2.7.6</version> |
DylanB95EST | b5a2383 | 2021-06-02 19:45:46 +0100 | [diff] [blame] | 90 | <type>pom</type> |
| 91 | <scope>import</scope> |
| 92 | </dependency> |
| 93 | <dependency> |
DylanB95EST | b5a2383 | 2021-06-02 19:45:46 +0100 | [diff] [blame] | 94 | <groupId>org.spockframework</groupId> |
shivasubedi | 275c1dc | 2021-07-07 16:39:34 +0100 | [diff] [blame] | 95 | <artifactId>spock-bom</artifactId> |
| 96 | <version>2.0-M5-groovy-3.0</version> |
| 97 | <type>pom</type> |
| 98 | <scope>import</scope> |
DylanB95EST | b5a2383 | 2021-06-02 19:45:46 +0100 | [diff] [blame] | 99 | </dependency> |
niamhcore | 9835107 | 2021-12-15 11:23:56 +0000 | [diff] [blame] | 100 | <dependency> |
JosephKeenan | 2cd8b98 | 2022-05-23 15:43:05 +0100 | [diff] [blame] | 101 | <groupId>org.springdoc</groupId> |
| 102 | <artifactId>springdoc-openapi-ui</artifactId> |
ToineSiebelink | 17c24ef | 2023-04-19 16:52:14 +0100 | [diff] [blame] | 103 | <version>1.6.6</version> |
ToineSiebelink | 6b35430 | 2022-03-02 12:26:02 +0000 | [diff] [blame] | 104 | </dependency> |
JosephKeenan | be383b4 | 2022-03-23 15:12:53 +0000 | [diff] [blame] | 105 | <dependency> |
| 106 | <groupId>org.springframework.cloud</groupId> |
| 107 | <artifactId>spring-cloud-dependencies</artifactId> |
ToineSiebelink | 17c24ef | 2023-04-19 16:52:14 +0100 | [diff] [blame] | 108 | <version>2021.0.3</version> |
JosephKeenan | be383b4 | 2022-03-23 15:12:53 +0000 | [diff] [blame] | 109 | <type>pom</type> |
| 110 | <scope>import</scope> |
| 111 | </dependency> |
mpriyank | 78e1d06 | 2022-04-08 15:12:22 +0530 | [diff] [blame] | 112 | <dependency> |
| 113 | <groupId>org.testcontainers</groupId> |
| 114 | <artifactId>testcontainers-bom</artifactId> |
ToineSiebelink | 17c24ef | 2023-04-19 16:52:14 +0100 | [diff] [blame] | 115 | <version>1.17.3</version> |
mpriyank | 78e1d06 | 2022-04-08 15:12:22 +0530 | [diff] [blame] | 116 | <type>pom</type> |
| 117 | <scope>import</scope> |
| 118 | </dependency> |
sourabh_sourabh | df26bc3 | 2022-05-04 11:38:52 +0100 | [diff] [blame] | 119 | <dependency> |
sourabh_sourabh | df26bc3 | 2022-05-04 11:38:52 +0100 | [diff] [blame] | 120 | <groupId>org.codehaus.janino</groupId> |
| 121 | <artifactId>janino</artifactId> |
| 122 | <version>3.1.7</version> |
| 123 | </dependency> |
JosephKeenan | 2cd8b98 | 2022-05-23 15:43:05 +0100 | [diff] [blame] | 124 | <dependency> |
| 125 | <groupId>org.onap.cps</groupId> |
| 126 | <artifactId>cps-ncmp-events</artifactId> |
mpriyank | b1332ae | 2022-09-23 12:59:38 +0100 | [diff] [blame] | 127 | <version>${cps.version}</version> |
JosephKeenan | 2cd8b98 | 2022-05-23 15:43:05 +0100 | [diff] [blame] | 128 | </dependency> |
DylanB95EST | b5a2383 | 2021-06-02 19:45:46 +0100 | [diff] [blame] | 129 | </dependencies> |
| 130 | </dependencyManagement> |
DylanB95EST | b5a2383 | 2021-06-02 19:45:46 +0100 | [diff] [blame] | 131 | <dependencies> |
| 132 | <dependency> |
JosephKeenan | 2cd8b98 | 2022-05-23 15:43:05 +0100 | [diff] [blame] | 133 | <groupId>com.google.code.gson</groupId> |
| 134 | <artifactId>gson</artifactId> |
| 135 | </dependency> |
| 136 | <dependency> |
| 137 | <groupId>com.jayway.jsonpath</groupId> |
| 138 | <artifactId>json-path</artifactId> |
| 139 | </dependency> |
| 140 | <dependency> |
| 141 | <groupId>io.micrometer</groupId> |
| 142 | <artifactId>micrometer-registry-prometheus</artifactId> |
| 143 | </dependency> |
| 144 | <dependency> |
ToineSiebelink | 17c24ef | 2023-04-19 16:52:14 +0100 | [diff] [blame] | 145 | <groupId>io.swagger.core.v3</groupId> |
JosephKeenan | 2cd8b98 | 2022-05-23 15:43:05 +0100 | [diff] [blame] | 146 | <artifactId>swagger-annotations</artifactId> |
| 147 | </dependency> |
| 148 | <dependency> |
mpriyank | a9b8d9d | 2023-06-20 13:42:31 +0100 | [diff] [blame] | 149 | <groupId>io.cloudevents</groupId> |
| 150 | <artifactId>cloudevents-json-jackson</artifactId> |
| 151 | </dependency> |
| 152 | <dependency> |
| 153 | <groupId>io.cloudevents</groupId> |
| 154 | <artifactId>cloudevents-kafka</artifactId> |
| 155 | </dependency> |
| 156 | <dependency> |
| 157 | <groupId>io.cloudevents</groupId> |
| 158 | <artifactId>cloudevents-spring</artifactId> |
| 159 | </dependency> |
| 160 | <dependency> |
JosephKeenan | 2cd8b98 | 2022-05-23 15:43:05 +0100 | [diff] [blame] | 161 | <groupId>net.logstash.logback</groupId> |
| 162 | <artifactId>logstash-logback-encoder</artifactId> |
| 163 | </dependency> |
| 164 | <dependency> |
| 165 | <groupId>net.minidev</groupId> |
| 166 | <artifactId>json-smart</artifactId> |
| 167 | </dependency> |
| 168 | <dependency> |
| 169 | <groupId>org.apache.httpcomponents</groupId> |
| 170 | <artifactId>httpclient</artifactId> |
JosephKeenan | 2cd8b98 | 2022-05-23 15:43:05 +0100 | [diff] [blame] | 171 | </dependency> |
| 172 | <dependency> |
| 173 | <groupId>org.codehaus.groovy</groupId> |
| 174 | <artifactId>groovy</artifactId> |
| 175 | </dependency> |
| 176 | <dependency> |
| 177 | <groupId>org.codehaus.janino</groupId> |
| 178 | <artifactId>janino</artifactId> |
| 179 | </dependency> |
| 180 | <dependency> |
| 181 | <groupId>org.onap.cps</groupId> |
| 182 | <artifactId>cps-ncmp-events</artifactId> |
| 183 | </dependency> |
| 184 | <dependency> |
| 185 | <groupId>org.projectlombok</groupId> |
| 186 | <artifactId>lombok</artifactId> |
| 187 | </dependency> |
| 188 | <dependency> |
DylanB95EST | b5a2383 | 2021-06-02 19:45:46 +0100 | [diff] [blame] | 189 | <groupId>org.springframework.boot</groupId> |
| 190 | <artifactId>spring-boot-starter-web</artifactId> |
| 191 | </dependency> |
| 192 | <dependency> |
| 193 | <groupId>org.springframework.boot</groupId> |
| 194 | <artifactId>spring-boot-starter-validation</artifactId> |
| 195 | </dependency> |
| 196 | <dependency> |
JosephKeenan | 2cd8b98 | 2022-05-23 15:43:05 +0100 | [diff] [blame] | 197 | <groupId>org.springdoc</groupId> |
| 198 | <artifactId>springdoc-openapi-ui</artifactId> |
DylanB95EST | b5a2383 | 2021-06-02 19:45:46 +0100 | [diff] [blame] | 199 | </dependency> |
| 200 | <dependency> |
JosephKeenan | 2cd8b98 | 2022-05-23 15:43:05 +0100 | [diff] [blame] | 201 | <groupId>org.springframework.boot</groupId> |
| 202 | <artifactId>spring-boot-starter-security</artifactId> |
| 203 | </dependency> |
| 204 | <dependency> |
| 205 | <groupId>org.springframework.boot</groupId> |
| 206 | <artifactId>spring-boot-starter-actuator</artifactId> |
| 207 | </dependency> |
| 208 | <dependency> |
| 209 | <groupId>org.springframework.kafka</groupId> |
| 210 | <artifactId>spring-kafka</artifactId> |
| 211 | </dependency> |
| 212 | <!-- T E S T - D E P E N D E N C I E S --> |
| 213 | <dependency> |
| 214 | <groupId>org.spockframework</groupId> |
| 215 | <artifactId>spock-core</artifactId> |
| 216 | <scope>test</scope> |
| 217 | </dependency> |
| 218 | <dependency> |
| 219 | <groupId>org.spockframework</groupId> |
| 220 | <artifactId>spock-spring</artifactId> |
| 221 | <scope>test</scope> |
Renu Kumari | 306cadd | 2021-10-22 00:50:29 -0400 | [diff] [blame] | 222 | </dependency> |
| 223 | <dependency> |
DylanB95EST | b5a2383 | 2021-06-02 19:45:46 +0100 | [diff] [blame] | 224 | <groupId>org.springframework.boot</groupId> |
| 225 | <artifactId>spring-boot-starter-test</artifactId> |
| 226 | <scope>test</scope> |
| 227 | <exclusions> |
| 228 | <exclusion> |
| 229 | <groupId>org.junit.vintage</groupId> |
| 230 | <artifactId>junit-vintage-engine</artifactId> |
| 231 | </exclusion> |
| 232 | </exclusions> |
| 233 | </dependency> |
| 234 | <dependency> |
JosephKeenan | 2cd8b98 | 2022-05-23 15:43:05 +0100 | [diff] [blame] | 235 | <groupId>org.springframework.kafka</groupId> |
| 236 | <artifactId>spring-kafka-test</artifactId> |
DylanB95EST | b5a2383 | 2021-06-02 19:45:46 +0100 | [diff] [blame] | 237 | <scope>test</scope> |
| 238 | </dependency> |
| 239 | <dependency> |
Renu Kumari | 306cadd | 2021-10-22 00:50:29 -0400 | [diff] [blame] | 240 | <groupId>org.springframework.security</groupId> |
| 241 | <artifactId>spring-security-test</artifactId> |
| 242 | <scope>test</scope> |
| 243 | </dependency> |
| 244 | <dependency> |
mpriyank | 78e1d06 | 2022-04-08 15:12:22 +0530 | [diff] [blame] | 245 | <groupId>org.testcontainers</groupId> |
| 246 | <artifactId>spock</artifactId> |
| 247 | <scope>test</scope> |
| 248 | </dependency> |
| 249 | <dependency> |
| 250 | <groupId>org.testcontainers</groupId> |
| 251 | <artifactId>kafka</artifactId> |
| 252 | <scope>test</scope> |
| 253 | </dependency> |
DylanB95EST | b5a2383 | 2021-06-02 19:45:46 +0100 | [diff] [blame] | 254 | </dependencies> |
DylanB95EST | b5a2383 | 2021-06-02 19:45:46 +0100 | [diff] [blame] | 255 | <build> |
| 256 | <resources> |
| 257 | <resource> |
| 258 | <directory>src/main/resources</directory> |
| 259 | <filtering>true</filtering> |
| 260 | </resource> |
| 261 | <resource> |
| 262 | <directory>target/generated-sources/license</directory> |
| 263 | <includes> |
| 264 | <include>third-party-licenses.txt</include> |
| 265 | </includes> |
| 266 | </resource> |
| 267 | <resource> |
| 268 | <directory>target/generated-resources/licenses</directory> |
| 269 | <includes> |
| 270 | <include>*.*</include> |
| 271 | </includes> |
| 272 | <targetPath>third-party-licenses</targetPath> |
| 273 | </resource> |
| 274 | </resources> |
| 275 | <plugins> |
| 276 | <plugin> |
egernug | 1118bed | 2023-06-28 10:57:53 +0100 | [diff] [blame] | 277 | <groupId>org.openapitools</groupId> |
| 278 | <artifactId>openapi-generator-maven-plugin</artifactId> |
| 279 | <version>6.6.0</version> |
DylanB95EST | b5a2383 | 2021-06-02 19:45:46 +0100 | [diff] [blame] | 280 | <executions> |
| 281 | <execution> |
| 282 | <goals> |
| 283 | <goal>generate</goal> |
| 284 | </goals> |
| 285 | <configuration> |
Renu Kumari | 3aea57e | 2021-10-12 13:41:01 -0400 | [diff] [blame] | 286 | <inputSpec>${project.basedir}/openapi/openapi.yml</inputSpec> |
egernug | 1118bed | 2023-06-28 10:57:53 +0100 | [diff] [blame] | 287 | <generatorName>spring</generatorName> |
DylanB95EST | b5a2383 | 2021-06-02 19:45:46 +0100 | [diff] [blame] | 288 | <generateSupportingFiles>false</generateSupportingFiles> |
egernug | 1118bed | 2023-06-28 10:57:53 +0100 | [diff] [blame] | 289 | <invokerPackage>org.onap.cps.ncmp.dmi.rest.controller</invokerPackage> |
tragait | 7c4a9aa | 2021-07-19 13:46:37 +0100 | [diff] [blame] | 290 | <apiPackage>org.onap.cps.ncmp.dmi.rest.api</apiPackage> |
| 291 | <modelPackage>org.onap.cps.ncmp.dmi.model</modelPackage> |
egernug | 1118bed | 2023-06-28 10:57:53 +0100 | [diff] [blame] | 292 | <generateAliasAsModel>true</generateAliasAsModel> |
DylanB95EST | b5a2383 | 2021-06-02 19:45:46 +0100 | [diff] [blame] | 293 | <configOptions> |
| 294 | <sourceFolder>src/gen/java</sourceFolder> |
| 295 | <dateLibrary>java11</dateLibrary> |
| 296 | <interfaceOnly>true</interfaceOnly> |
| 297 | <useTags>true</useTags> |
egernug | 1118bed | 2023-06-28 10:57:53 +0100 | [diff] [blame] | 298 | <openApiNullable>false</openApiNullable> |
| 299 | <skipDefaultInterface>true</skipDefaultInterface> |
DylanB95EST | b5a2383 | 2021-06-02 19:45:46 +0100 | [diff] [blame] | 300 | </configOptions> |
| 301 | </configuration> |
| 302 | </execution> |
shivasubedi | 3d1579c | 2021-09-13 16:43:20 +0100 | [diff] [blame] | 303 | <execution> |
| 304 | <id>openapi-yaml-gen</id> |
| 305 | <goals> |
| 306 | <goal>generate</goal> |
| 307 | </goals> |
| 308 | <phase>compile</phase> |
| 309 | <configuration> |
Renu Kumari | 3aea57e | 2021-10-12 13:41:01 -0400 | [diff] [blame] | 310 | <inputSpec>${project.basedir}/openapi/openapi.yml</inputSpec> |
egernug | 1118bed | 2023-06-28 10:57:53 +0100 | [diff] [blame] | 311 | <generatorName>openapi-yaml</generatorName> |
shivasubedi | 3d1579c | 2021-09-13 16:43:20 +0100 | [diff] [blame] | 312 | </configuration> |
| 313 | </execution> |
DylanB95EST | b5a2383 | 2021-06-02 19:45:46 +0100 | [diff] [blame] | 314 | </executions> |
| 315 | </plugin> |
| 316 | <plugin> |
puthuparambil.aditya | 1d90226 | 2021-11-23 14:53:43 +0000 | [diff] [blame] | 317 | <artifactId>maven-resources-plugin</artifactId> |
| 318 | <executions> |
| 319 | <execution> |
| 320 | <id>copy-resources</id> |
| 321 | <phase>compile</phase> |
| 322 | <goals> |
| 323 | <goal>copy-resources</goal> |
| 324 | </goals> |
| 325 | <configuration> |
| 326 | <outputDirectory>${project.basedir}/target/classes/static/api-docs</outputDirectory> |
| 327 | <resources> |
| 328 | <resource> |
egernug | 1118bed | 2023-06-28 10:57:53 +0100 | [diff] [blame] | 329 | <directory>${project.basedir}/target/generated-sources/openapi/openapi</directory> |
puthuparambil.aditya | 1d90226 | 2021-11-23 14:53:43 +0000 | [diff] [blame] | 330 | <includes> |
| 331 | <include>openapi.yaml</include> |
| 332 | </includes> |
| 333 | </resource> |
| 334 | </resources> |
| 335 | </configuration> |
| 336 | </execution> |
| 337 | </executions> |
| 338 | </plugin> |
| 339 | <plugin> |
DylanB95EST | b5a2383 | 2021-06-02 19:45:46 +0100 | [diff] [blame] | 340 | <groupId>org.springframework.boot</groupId> |
| 341 | <artifactId>spring-boot-maven-plugin</artifactId> |
JosephKeenan | be383b4 | 2022-03-23 15:12:53 +0000 | [diff] [blame] | 342 | <version>2.6.4</version> |
DylanB95EST | b5a2383 | 2021-06-02 19:45:46 +0100 | [diff] [blame] | 343 | <executions> |
| 344 | <execution> |
| 345 | <goals> |
| 346 | <goal>build-info</goal> |
| 347 | <goal>repackage</goal> |
| 348 | </goals> |
| 349 | </execution> |
| 350 | </executions> |
| 351 | </plugin> |
| 352 | <plugin> |
| 353 | <groupId>org.codehaus.gmavenplus</groupId> |
| 354 | <artifactId>gmavenplus-plugin</artifactId> |
| 355 | <executions> |
| 356 | <execution> |
| 357 | <goals> |
| 358 | <goal>compileTests</goal> |
| 359 | </goals> |
| 360 | </execution> |
| 361 | </executions> |
| 362 | </plugin> |
| 363 | <plugin> |
| 364 | <groupId>org.apache.maven.plugins</groupId> |
| 365 | <artifactId>maven-surefire-plugin</artifactId> |
| 366 | <configuration> |
| 367 | <argLine>${surefireArgLine}</argLine> |
| 368 | <includes> |
| 369 | <include>**/*Spec.java</include> |
| 370 | </includes> |
| 371 | <excludes> |
| 372 | <exclude>**/IT*.java</exclude> |
| 373 | </excludes> |
mpriyank | 78e1d06 | 2022-04-08 15:12:22 +0530 | [diff] [blame] | 374 | <environmentVariables> |
| 375 | <!-- |
| 376 | Disable privileged container usage to cleanup the test containers; |
| 377 | these are removed automatically on jvm termination; |
| 378 | see https://www.testcontainers.org/features/configuration/#disabling-ryuk |
| 379 | --> |
| 380 | <TESTCONTAINERS_RYUK_DISABLED>true</TESTCONTAINERS_RYUK_DISABLED> |
| 381 | </environmentVariables> |
DylanB95EST | b5a2383 | 2021-06-02 19:45:46 +0100 | [diff] [blame] | 382 | </configuration> |
| 383 | </plugin> |
shivasubedi | 55500c3 | 2021-06-23 16:31:02 +0100 | [diff] [blame] | 384 | <plugin> |
| 385 | <groupId>org.apache.maven.plugins</groupId> |
| 386 | <artifactId>maven-checkstyle-plugin</artifactId> |
| 387 | <executions> |
| 388 | <execution> |
Bruno Sakoto | ff5f74d | 2021-07-14 11:15:48 -0400 | [diff] [blame] | 389 | <id>onap-license</id> |
| 390 | <goals> |
| 391 | <goal>check</goal> |
| 392 | </goals> |
| 393 | <phase>process-sources</phase> |
| 394 | <configuration> |
| 395 | <configLocation>onap-checkstyle/check-license.xml</configLocation> |
| 396 | <includeResources>false</includeResources> |
| 397 | <includeTestSourceDirectory>true</includeTestSourceDirectory> |
| 398 | <includeTestResources>false</includeTestResources> |
| 399 | <sourceDirectories> |
| 400 | <sourceDirectory>${project.build.sourceDirectory}</sourceDirectory> |
| 401 | </sourceDirectories> |
| 402 | <consoleOutput>false</consoleOutput> |
| 403 | <violationSeverity>warning</violationSeverity> |
| 404 | <failOnViolation>true</failOnViolation> |
| 405 | </configuration> |
| 406 | </execution> |
| 407 | <execution> |
| 408 | <id>onap-java-style</id> |
| 409 | <goals> |
| 410 | <goal>check</goal> |
| 411 | </goals> |
| 412 | <phase>process-sources</phase> |
| 413 | <configuration> |
| 414 | <configLocation>onap-checkstyle/onap-java-style.xml</configLocation> |
| 415 | <sourceDirectories> |
| 416 | <sourceDirectory>${project.build.sourceDirectory}</sourceDirectory> |
| 417 | </sourceDirectories> |
| 418 | <includeResources>true</includeResources> |
| 419 | <includeTestSourceDirectory>true</includeTestSourceDirectory> |
| 420 | <includeTestResources>true</includeTestResources> |
| 421 | <consoleOutput>false</consoleOutput> |
| 422 | <violationSeverity>warning</violationSeverity> |
| 423 | <failOnViolation>true</failOnViolation> |
| 424 | </configuration> |
| 425 | </execution> |
| 426 | <execution> |
shivasubedi | 55500c3 | 2021-06-23 16:31:02 +0100 | [diff] [blame] | 427 | <id>cps-java-style</id> |
| 428 | <goals> |
| 429 | <goal>check</goal> |
| 430 | </goals> |
| 431 | <phase>process-sources</phase> |
| 432 | <configuration> |
| 433 | <configLocation>cps-java-style.xml</configLocation> |
| 434 | <sourceDirectories> |
| 435 | <sourceDirectory>${project.build.sourceDirectory}</sourceDirectory> |
| 436 | </sourceDirectories> |
| 437 | <includeResources>true</includeResources> |
| 438 | <includeTestSourceDirectory>true</includeTestSourceDirectory> |
| 439 | <includeTestResources>true</includeTestResources> |
| 440 | <consoleOutput>true</consoleOutput> |
| 441 | <violationSeverity>warning</violationSeverity> |
| 442 | <failOnViolation>true</failOnViolation> |
| 443 | </configuration> |
| 444 | </execution> |
| 445 | </executions> |
| 446 | <dependencies> |
| 447 | <dependency> |
| 448 | <groupId>${project.groupId}</groupId> |
| 449 | <artifactId>checkstyle</artifactId> |
| 450 | <version>${cps.version}</version> |
| 451 | </dependency> |
| 452 | </dependencies> |
| 453 | </plugin> |
| 454 | <plugin> |
| 455 | <groupId>com.github.spotbugs</groupId> |
| 456 | <artifactId>spotbugs-maven-plugin</artifactId> |
egernug | 92f74d7 | 2023-07-17 13:45:51 +0100 | [diff] [blame^] | 457 | <version>4.4.2</version> |
shivasubedi | 55500c3 | 2021-06-23 16:31:02 +0100 | [diff] [blame] | 458 | <executions> |
| 459 | <execution> |
| 460 | <id>analyze-compile</id> |
| 461 | <phase>compile</phase> |
| 462 | <goals> |
| 463 | <goal>check</goal> |
| 464 | </goals> |
| 465 | </execution> |
| 466 | </executions> |
| 467 | <dependencies> |
| 468 | <dependency> |
| 469 | <groupId>${project.groupId}</groupId> |
| 470 | <artifactId>spotbugs</artifactId> |
| 471 | <version>${cps.version}</version> |
| 472 | <scope>compile</scope> |
| 473 | </dependency> |
| 474 | </dependencies> |
| 475 | <configuration> |
| 476 | <plugins> |
| 477 | <plugin> |
| 478 | <groupId>jp.skypencil.findbugs.slf4j</groupId> |
| 479 | <artifactId>bug-pattern</artifactId> |
shivasubedi | 275c1dc | 2021-07-07 16:39:34 +0100 | [diff] [blame] | 480 | <version>1.5.0</version> |
shivasubedi | 55500c3 | 2021-06-23 16:31:02 +0100 | [diff] [blame] | 481 | </plugin> |
| 482 | </plugins> |
| 483 | <effort>Max</effort> |
| 484 | <threshold>Low</threshold> |
| 485 | <failOnError>true</failOnError> |
| 486 | <excludeFilterFile>spotbugs-exclude.xml</excludeFilterFile> |
niamhcore | 4f43188 | 2021-09-21 16:08:29 +0100 | [diff] [blame] | 487 | <addSourceDirs>true</addSourceDirs> |
shivasubedi | 55500c3 | 2021-06-23 16:31:02 +0100 | [diff] [blame] | 488 | <xmlOutput>true</xmlOutput> |
| 489 | <xmlOutputDirectory>${basedir}/target/spotbugs</xmlOutputDirectory> |
| 490 | </configuration> |
| 491 | </plugin> |
| 492 | <plugin> |
| 493 | <groupId>org.jacoco</groupId> |
| 494 | <artifactId>jacoco-maven-plugin</artifactId> |
shivasubedi | 55500c3 | 2021-06-23 16:31:02 +0100 | [diff] [blame] | 495 | <configuration> |
| 496 | <excludes> |
tragait | 7c4a9aa | 2021-07-19 13:46:37 +0100 | [diff] [blame] | 497 | <exclude>org/onap/cps/ncmp/dmi/model/*</exclude> |
shivasubedi | 55500c3 | 2021-06-23 16:31:02 +0100 | [diff] [blame] | 498 | </excludes> |
| 499 | </configuration> |
| 500 | <executions> |
| 501 | <execution> |
| 502 | <id>default-prepare-agent</id> |
| 503 | <goals> |
| 504 | <goal>prepare-agent</goal> |
| 505 | </goals> |
| 506 | </execution> |
| 507 | <execution> |
| 508 | <id>coverage-check</id> |
| 509 | <goals> |
| 510 | <goal>check</goal> |
| 511 | </goals> |
| 512 | <configuration> |
| 513 | <dataFile>${basedir}/target/code-coverage/jacoco-ut.exec</dataFile> |
| 514 | <rules> |
| 515 | <rule> |
| 516 | <element>BUNDLE</element> |
| 517 | <limits> |
| 518 | <limit> |
| 519 | <counter>INSTRUCTION</counter> |
| 520 | <value>COVEREDRATIO</value> |
| 521 | <minimum>${jacoco.minimum.coverage}</minimum> |
| 522 | </limit> |
| 523 | </limits> |
| 524 | </rule> |
| 525 | </rules> |
| 526 | </configuration> |
| 527 | </execution> |
| 528 | <execution> |
| 529 | <id>report</id> |
| 530 | <phase>verify</phase> |
| 531 | <goals> |
| 532 | <goal>report-aggregate</goal> |
| 533 | </goals> |
| 534 | <configuration> |
| 535 | <dataFileIncludes> |
| 536 | <fileInclude>**/code-coverage/jacoco-ut.exec</fileInclude> |
| 537 | </dataFileIncludes> |
| 538 | </configuration> |
| 539 | </execution> |
| 540 | </executions> |
| 541 | </plugin> |
DylanB95EST | b5a2383 | 2021-06-02 19:45:46 +0100 | [diff] [blame] | 542 | </plugins> |
shivasubedi | f4b36ef | 2021-06-23 16:01:10 +0100 | [diff] [blame] | 543 | <pluginManagement> |
| 544 | <plugins> |
| 545 | <plugin> |
| 546 | <groupId>com.google.cloud.tools</groupId> |
| 547 | <artifactId>jib-maven-plugin</artifactId> |
shivasubedi | f4b36ef | 2021-06-23 16:01:10 +0100 | [diff] [blame] | 548 | <configuration> |
| 549 | <container> |
| 550 | <mainClass>${app}</mainClass> |
| 551 | <creationTime>USE_CURRENT_TIMESTAMP</creationTime> |
| 552 | </container> |
| 553 | <from> |
| 554 | <image>${base.image}</image> |
| 555 | </from> |
| 556 | <to> |
| 557 | <tags> |
ToineSiebelink | 98df7fc | 2022-10-27 11:06:53 +0100 | [diff] [blame] | 558 | <tag>latest</tag> |
JosephKeenan | 371ec2f | 2021-12-01 09:46:58 +0000 | [diff] [blame] | 559 | <tag>${project.version}-latest</tag> |
shivasubedi | f4b36ef | 2021-06-23 16:01:10 +0100 | [diff] [blame] | 560 | </tags> |
| 561 | <image>${docker.push.registry}/onap/${image.name}:${image.tag}</image> |
| 562 | </to> |
| 563 | </configuration> |
| 564 | <executions> |
| 565 | <execution> |
| 566 | <phase>package</phase> |
| 567 | <id>build</id> |
| 568 | <goals> |
| 569 | <goal>dockerBuild</goal> |
| 570 | </goals> |
| 571 | </execution> |
| 572 | <execution> |
| 573 | <phase>deploy</phase> |
| 574 | <id>buildAndPush</id> |
| 575 | <goals> |
| 576 | <goal>build</goal> |
| 577 | </goals> |
| 578 | </execution> |
| 579 | </executions> |
| 580 | </plugin> |
| 581 | </plugins> |
| 582 | </pluginManagement> |
DylanB95EST | b5a2383 | 2021-06-02 19:45:46 +0100 | [diff] [blame] | 583 | </build> |
shivasubedi | f4b36ef | 2021-06-23 16:01:10 +0100 | [diff] [blame] | 584 | <profiles> |
| 585 | <profile> |
puthuparambil.aditya | eddb3dd | 2021-07-27 15:57:19 +0100 | [diff] [blame] | 586 | <id>docker</id> |
shivasubedi | f4b36ef | 2021-06-23 16:01:10 +0100 | [diff] [blame] | 587 | <activation> |
| 588 | <activeByDefault>true</activeByDefault> |
| 589 | </activation> |
| 590 | <properties> |
| 591 | <image.name>ncmp-dmi-plugin</image.name> |
| 592 | </properties> |
| 593 | <build> |
| 594 | <plugins> |
| 595 | <plugin> |
| 596 | <groupId>com.google.cloud.tools</groupId> |
| 597 | <artifactId>jib-maven-plugin</artifactId> |
| 598 | </plugin> |
| 599 | </plugins> |
| 600 | </build> |
| 601 | </profile> |
| 602 | </profiles> |
lukegleeson | b208aeb | 2021-07-08 16:48:15 +0100 | [diff] [blame] | 603 | </project> |