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