sourabh_sourabh | 7cda5e9 | 2023-07-05 00:56:05 +0100 | [diff] [blame] | 1 | <?xml version="1.0" encoding="UTF-8"?> |
| 2 | <!-- |
| 3 | ============LICENSE_START======================================================= |
emaclee | ea7d1b4 | 2024-03-24 19:05:34 +0000 | [diff] [blame] | 4 | Copyright (C) 2023-2024 Nordix Foundation |
sourabh_sourabh | 7cda5e9 | 2023-07-05 00:56:05 +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 |
| 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> |
mpriyank | 964c5f6 | 2024-07-15 12:25:15 +0100 | [diff] [blame] | 25 | <version>3.5.2-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> |
egernug | 477bd46 | 2023-09-21 17:51:21 +0100 | [diff] [blame] | 94 | <version>3.3.2</version> |
sourabh_sourabh | 7cda5e9 | 2023-07-05 00:56:05 +0100 | [diff] [blame] | 95 | </plugin> |
| 96 | </plugins> |
| 97 | </build> |
| 98 | </profile> |
| 99 | </profiles> |
| 100 | <dependencies> |
| 101 | <dependency> |
| 102 | <groupId>org.onap.cps</groupId> |
| 103 | <artifactId>dmi-plugin-demo-and-csit-stub-service</artifactId> |
| 104 | <version>${project.version}</version> |
emaclee | ea7d1b4 | 2024-03-24 19:05:34 +0000 | [diff] [blame] | 105 | <exclusions> |
| 106 | <exclusion> |
| 107 | <groupId>junit</groupId> |
| 108 | <artifactId>junit</artifactId> |
| 109 | </exclusion> |
| 110 | </exclusions> |
mpriyank | a7f3568 | 2024-02-28 14:10:54 +0000 | [diff] [blame] | 111 | </dependency> |
sourabh_sourabh | 7cda5e9 | 2023-07-05 00:56:05 +0100 | [diff] [blame] | 112 | </dependencies> |
| 113 | </project> |