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