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