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