egernug | e703e34 | 2024-07-08 10:59:08 +0100 | [diff] [blame] | 1 | <?xml version="1.0" encoding="UTF-8"?> |
| 2 | <!-- |
| 3 | ============LICENSE_START======================================================= |
| 4 | Copyright (C) 2023-2024 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> |
sourabh_sourabh | 436a8dc | 2024-11-12 13:12:02 +0000 | [diff] [blame] | 22 | |
egernug | e703e34 | 2024-07-08 10:59:08 +0100 | [diff] [blame] | 23 | <parent> |
| 24 | <groupId>org.onap.cps</groupId> |
| 25 | <artifactId>dmi-plugin-demo-and-csit-stub</artifactId> |
sourabh_sourabh | 33f9afa | 2024-11-19 13:36:26 +0000 | [diff] [blame^] | 26 | <version>3.5.5-SNAPSHOT</version> |
egernug | e703e34 | 2024-07-08 10:59:08 +0100 | [diff] [blame] | 27 | </parent> |
| 28 | |
| 29 | <artifactId>dmi-plugin-demo-and-csit-stub-app</artifactId> |
sourabh_sourabh | d7ed9f0 | 2024-11-18 13:22:35 +0000 | [diff] [blame] | 30 | <packaging>jar</packaging> |
egernug | e703e34 | 2024-07-08 10:59:08 +0100 | [diff] [blame] | 31 | |
sourabh_sourabh | 436a8dc | 2024-11-12 13:12:02 +0000 | [diff] [blame] | 32 | <properties> |
| 33 | <app>org.onap.cps.ncmp.dmi.rest.stub.DmiDemoApplication</app> |
| 34 | </properties> |
| 35 | |
egernug | e703e34 | 2024-07-08 10:59:08 +0100 | [diff] [blame] | 36 | <dependencies> |
egernug | eef4efe | 2024-07-17 07:41:44 +0100 | [diff] [blame] | 37 | <dependency> |
| 38 | <groupId>org.springframework.boot</groupId> |
| 39 | <artifactId>spring-boot-starter-web</artifactId> |
| 40 | <exclusions> |
| 41 | <exclusion> |
| 42 | <groupId>org.slf4j</groupId> |
| 43 | <artifactId>slf4j-api</artifactId> |
| 44 | </exclusion></exclusions> |
| 45 | </dependency> |
| 46 | <dependency> |
| 47 | <groupId>ch.qos.logback</groupId> |
| 48 | <artifactId>logback-classic</artifactId> |
| 49 | <exclusions> |
| 50 | <exclusion> |
| 51 | <groupId>org.slf4j</groupId> |
| 52 | <artifactId>slf4j-api</artifactId> |
| 53 | </exclusion></exclusions> |
| 54 | </dependency> |
egernug | e703e34 | 2024-07-08 10:59:08 +0100 | [diff] [blame] | 55 | <dependency> |
| 56 | <groupId>org.onap.cps</groupId> |
| 57 | <artifactId>dmi-plugin-demo-and-csit-stub-service</artifactId> |
| 58 | <version>${project.version}</version> |
| 59 | <exclusions> |
| 60 | <exclusion> |
| 61 | <groupId>junit</groupId> |
| 62 | <artifactId>junit</artifactId> |
| 63 | </exclusion> |
| 64 | </exclusions> |
| 65 | </dependency> |
egernug | e703e34 | 2024-07-08 10:59:08 +0100 | [diff] [blame] | 66 | </dependencies> |
sourabh_sourabh | 436a8dc | 2024-11-12 13:12:02 +0000 | [diff] [blame] | 67 | |
| 68 | <build> |
| 69 | <pluginManagement> |
| 70 | <plugins> |
| 71 | <plugin> |
| 72 | <groupId>com.google.cloud.tools</groupId> |
| 73 | <artifactId>jib-maven-plugin</artifactId> |
| 74 | <configuration> |
| 75 | <container> |
| 76 | <mainClass>${app}</mainClass> |
| 77 | <creationTime>USE_CURRENT_TIMESTAMP</creationTime> |
| 78 | </container> |
| 79 | <from> |
| 80 | <image>${base.image}</image> |
| 81 | </from> |
| 82 | <to> |
| 83 | <tags> |
| 84 | <tag>latest</tag> |
| 85 | </tags> |
| 86 | <image>${docker.push.registry}/onap/${image.name}:${image.tag}</image> |
| 87 | </to> |
| 88 | </configuration> |
| 89 | <executions> |
| 90 | <execution> |
| 91 | <phase>package</phase> |
| 92 | <id>build</id> |
| 93 | <goals> |
| 94 | <goal>dockerBuild</goal> |
| 95 | </goals> |
| 96 | </execution> |
| 97 | <execution> |
| 98 | <phase>deploy</phase> |
| 99 | <id>buildAndPush</id> |
| 100 | <goals> |
| 101 | <goal>build</goal> |
| 102 | </goals> |
| 103 | </execution> |
| 104 | </executions> |
| 105 | </plugin> |
| 106 | </plugins> |
| 107 | </pluginManagement> |
| 108 | </build> |
| 109 | |
| 110 | <profiles> |
| 111 | <profile> |
sourabh_sourabh | d31e277 | 2024-11-18 15:41:26 +0000 | [diff] [blame] | 112 | <id>stub-docker</id> |
sourabh_sourabh | 436a8dc | 2024-11-12 13:12:02 +0000 | [diff] [blame] | 113 | <activation> |
| 114 | <activeByDefault>true</activeByDefault> |
| 115 | </activation> |
| 116 | <properties> |
| 117 | <image.name>dmi-plugin-demo-and-csit-stub</image.name> |
| 118 | </properties> |
| 119 | <build> |
| 120 | <plugins> |
| 121 | <plugin> |
| 122 | <groupId>com.google.cloud.tools</groupId> |
| 123 | <artifactId>jib-maven-plugin</artifactId> |
| 124 | <version>3.3.2</version> |
| 125 | </plugin> |
| 126 | </plugins> |
| 127 | </build> |
| 128 | </profile> |
| 129 | </profiles> |
egernug | e703e34 | 2024-07-08 10:59:08 +0100 | [diff] [blame] | 130 | </project> |