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