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> |
| 22 | <parent> |
| 23 | <groupId>org.onap.cps</groupId> |
| 24 | <artifactId>dmi-plugin-demo-and-csit-stub</artifactId> |
| 25 | <version>1.6.0-SNAPSHOT</version> |
| 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.controller.DmiDemoApplication</app> |
| 32 | <maven.build.timestamp.format>yyyyMMdd'T'HHmmss'Z'</maven.build.timestamp.format> |
| 33 | <base.image>${docker.pull.registry}/onap/integration-java17:12.0.0</base.image> |
| 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 | <version>3.3.2</version> |
| 95 | </plugin> |
| 96 | </plugins> |
| 97 | </build> |
| 98 | </profile> |
| 99 | </profiles> |
| 100 | <dependencies> |
egernug | eef4efe | 2024-07-17 07:41:44 +0100 | [diff] [blame^] | 101 | <dependency> |
| 102 | <groupId>org.springframework.boot</groupId> |
| 103 | <artifactId>spring-boot-starter-web</artifactId> |
| 104 | <exclusions> |
| 105 | <exclusion> |
| 106 | <groupId>org.slf4j</groupId> |
| 107 | <artifactId>slf4j-api</artifactId> |
| 108 | </exclusion></exclusions> |
| 109 | </dependency> |
| 110 | <dependency> |
| 111 | <groupId>ch.qos.logback</groupId> |
| 112 | <artifactId>logback-classic</artifactId> |
| 113 | <exclusions> |
| 114 | <exclusion> |
| 115 | <groupId>org.slf4j</groupId> |
| 116 | <artifactId>slf4j-api</artifactId> |
| 117 | </exclusion></exclusions> |
| 118 | </dependency> |
egernug | e703e34 | 2024-07-08 10:59:08 +0100 | [diff] [blame] | 119 | <dependency> |
| 120 | <groupId>org.onap.cps</groupId> |
| 121 | <artifactId>dmi-plugin-demo-and-csit-stub-service</artifactId> |
| 122 | <version>${project.version}</version> |
| 123 | <exclusions> |
| 124 | <exclusion> |
| 125 | <groupId>junit</groupId> |
| 126 | <artifactId>junit</artifactId> |
| 127 | </exclusion> |
| 128 | </exclusions> |
| 129 | </dependency> |
egernug | eef4efe | 2024-07-17 07:41:44 +0100 | [diff] [blame^] | 130 | |
| 131 | |
egernug | e703e34 | 2024-07-08 10:59:08 +0100 | [diff] [blame] | 132 | </dependencies> |
| 133 | </project> |