sourabh_sourabh | 7cda5e9 | 2023-07-05 00:56:05 +0100 | [diff] [blame] | 1 | <?xml version="1.0" encoding="UTF-8"?> |
| 2 | <!-- |
| 3 | ============LICENSE_START======================================================= |
| 4 | Copyright (C) 2023 Nordix Foundation |
| 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 |
| 9 | http://www.apache.org/licenses/LICENSE-2.0 |
| 10 | Unless required by applicable law or agreed to in writing, software |
| 11 | distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | See the License for the specific language governing permissions and |
| 14 | limitations under the License. |
| 15 | SPDX-License-Identifier: Apache-2.0 |
| 16 | ============LICENSE_END========================================================= |
| 17 | --> |
| 18 | |
| 19 | <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 20 | xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd"> |
| 21 | <modelVersion>4.0.0</modelVersion> |
| 22 | <parent> |
| 23 | <groupId>org.onap.cps</groupId> |
| 24 | <artifactId>dmi-plugin-demo-and-csit-stub</artifactId> |
egernug | bdac440 | 2023-07-21 13:27:24 +0100 | [diff] [blame] | 25 | <version>3.3.6-SNAPSHOT</version> |
sourabh_sourabh | 7cda5e9 | 2023-07-05 00:56:05 +0100 | [diff] [blame] | 26 | </parent> |
| 27 | |
| 28 | <artifactId>dmi-plugin-demo-and-csit-stub-app</artifactId> |
| 29 | |
| 30 | <properties> |
| 31 | <app>org.onap.cps.ncmp.dmi.rest.stub.DmiDemoApplication</app> |
| 32 | <maven.build.timestamp.format>yyyyMMdd'T'HHmmss'Z'</maven.build.timestamp.format> |
egernug | 6c9621a | 2023-07-19 11:05:00 +0100 | [diff] [blame] | 33 | <base.image>${docker.pull.registry}/onap/integration-java17:12.0.0</base.image> |
sourabh_sourabh | 7cda5e9 | 2023-07-05 00:56:05 +0100 | [diff] [blame] | 34 | <image.tag>${project.version}-${maven.build.timestamp}</image.tag> |
| 35 | <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
| 36 | </properties> |
| 37 | |
| 38 | <build> |
| 39 | <pluginManagement> |
| 40 | <plugins> |
| 41 | <plugin> |
| 42 | <groupId>com.google.cloud.tools</groupId> |
| 43 | <artifactId>jib-maven-plugin</artifactId> |
| 44 | <configuration> |
| 45 | <container> |
| 46 | <mainClass>${app}</mainClass> |
| 47 | <creationTime>USE_CURRENT_TIMESTAMP</creationTime> |
| 48 | </container> |
| 49 | <from> |
| 50 | <image>${base.image}</image> |
| 51 | </from> |
| 52 | <to> |
| 53 | <tags> |
| 54 | <tag>latest</tag> |
| 55 | </tags> |
| 56 | <image>${docker.push.registry}/onap/${image.name}:${image.tag}</image> |
| 57 | </to> |
| 58 | </configuration> |
| 59 | <executions> |
| 60 | <execution> |
| 61 | <phase>package</phase> |
| 62 | <id>build</id> |
| 63 | <goals> |
| 64 | <goal>dockerBuild</goal> |
| 65 | </goals> |
| 66 | </execution> |
| 67 | <execution> |
| 68 | <phase>deploy</phase> |
| 69 | <id>buildAndPush</id> |
| 70 | <goals> |
| 71 | <goal>build</goal> |
| 72 | </goals> |
| 73 | </execution> |
| 74 | </executions> |
| 75 | </plugin> |
| 76 | </plugins> |
| 77 | </pluginManagement> |
| 78 | </build> |
| 79 | |
| 80 | <profiles> |
| 81 | <profile> |
| 82 | <id>docker</id> |
| 83 | <activation> |
| 84 | <activeByDefault>true</activeByDefault> |
| 85 | </activation> |
| 86 | <properties> |
| 87 | <image.name>dmi-plugin-demo-and-csit-stub</image.name> |
| 88 | </properties> |
| 89 | <build> |
| 90 | <plugins> |
| 91 | <plugin> |
| 92 | <groupId>com.google.cloud.tools</groupId> |
| 93 | <artifactId>jib-maven-plugin</artifactId> |
| 94 | </plugin> |
| 95 | </plugins> |
| 96 | </build> |
| 97 | </profile> |
| 98 | </profiles> |
| 99 | <dependencies> |
| 100 | <dependency> |
| 101 | <groupId>org.onap.cps</groupId> |
| 102 | <artifactId>dmi-plugin-demo-and-csit-stub-service</artifactId> |
| 103 | <version>${project.version}</version> |
| 104 | </dependency> |
| 105 | </dependencies> |
| 106 | </project> |