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> |
sourabh_sourabh | 38becbc | 2024-11-20 10:37:59 +0000 | [diff] [blame^] | 34 | |
| 35 | <maven.deploy.plugin.version>3.1.2</maven.deploy.plugin.version> |
| 36 | |
| 37 | <!-- ONAP Nexus Repository Configuration --> |
| 38 | <onap.nexus.url>https://nexus.onap.org</onap.nexus.url> |
| 39 | <releaseNexusPath>/content/repositories/releases/</releaseNexusPath> |
| 40 | <snapshotNexusPath>/content/repositories/snapshots/</snapshotNexusPath> |
sourabh_sourabh | 436a8dc | 2024-11-12 13:12:02 +0000 | [diff] [blame] | 41 | </properties> |
| 42 | |
egernug | e703e34 | 2024-07-08 10:59:08 +0100 | [diff] [blame] | 43 | <dependencies> |
egernug | eef4efe | 2024-07-17 07:41:44 +0100 | [diff] [blame] | 44 | <dependency> |
| 45 | <groupId>org.springframework.boot</groupId> |
| 46 | <artifactId>spring-boot-starter-web</artifactId> |
| 47 | <exclusions> |
| 48 | <exclusion> |
| 49 | <groupId>org.slf4j</groupId> |
| 50 | <artifactId>slf4j-api</artifactId> |
| 51 | </exclusion></exclusions> |
| 52 | </dependency> |
| 53 | <dependency> |
| 54 | <groupId>ch.qos.logback</groupId> |
| 55 | <artifactId>logback-classic</artifactId> |
| 56 | <exclusions> |
| 57 | <exclusion> |
| 58 | <groupId>org.slf4j</groupId> |
| 59 | <artifactId>slf4j-api</artifactId> |
| 60 | </exclusion></exclusions> |
| 61 | </dependency> |
egernug | e703e34 | 2024-07-08 10:59:08 +0100 | [diff] [blame] | 62 | <dependency> |
| 63 | <groupId>org.onap.cps</groupId> |
| 64 | <artifactId>dmi-plugin-demo-and-csit-stub-service</artifactId> |
| 65 | <version>${project.version}</version> |
| 66 | <exclusions> |
| 67 | <exclusion> |
| 68 | <groupId>junit</groupId> |
| 69 | <artifactId>junit</artifactId> |
| 70 | </exclusion> |
| 71 | </exclusions> |
| 72 | </dependency> |
egernug | e703e34 | 2024-07-08 10:59:08 +0100 | [diff] [blame] | 73 | </dependencies> |
sourabh_sourabh | 436a8dc | 2024-11-12 13:12:02 +0000 | [diff] [blame] | 74 | |
| 75 | <build> |
| 76 | <pluginManagement> |
| 77 | <plugins> |
| 78 | <plugin> |
| 79 | <groupId>com.google.cloud.tools</groupId> |
| 80 | <artifactId>jib-maven-plugin</artifactId> |
| 81 | <configuration> |
| 82 | <container> |
| 83 | <mainClass>${app}</mainClass> |
| 84 | <creationTime>USE_CURRENT_TIMESTAMP</creationTime> |
| 85 | </container> |
| 86 | <from> |
| 87 | <image>${base.image}</image> |
| 88 | </from> |
| 89 | <to> |
| 90 | <tags> |
| 91 | <tag>latest</tag> |
| 92 | </tags> |
| 93 | <image>${docker.push.registry}/onap/${image.name}:${image.tag}</image> |
| 94 | </to> |
| 95 | </configuration> |
| 96 | <executions> |
| 97 | <execution> |
| 98 | <phase>package</phase> |
| 99 | <id>build</id> |
| 100 | <goals> |
| 101 | <goal>dockerBuild</goal> |
| 102 | </goals> |
| 103 | </execution> |
| 104 | <execution> |
| 105 | <phase>deploy</phase> |
| 106 | <id>buildAndPush</id> |
| 107 | <goals> |
| 108 | <goal>build</goal> |
| 109 | </goals> |
| 110 | </execution> |
| 111 | </executions> |
| 112 | </plugin> |
sourabh_sourabh | 38becbc | 2024-11-20 10:37:59 +0000 | [diff] [blame^] | 113 | <plugin> |
| 114 | <groupId>org.apache.maven.plugins</groupId> |
| 115 | <artifactId>maven-deploy-plugin</artifactId> |
| 116 | <version>${maven.deploy.plugin.version}</version> |
| 117 | </plugin> |
sourabh_sourabh | 436a8dc | 2024-11-12 13:12:02 +0000 | [diff] [blame] | 118 | </plugins> |
| 119 | </pluginManagement> |
| 120 | </build> |
| 121 | |
| 122 | <profiles> |
| 123 | <profile> |
sourabh_sourabh | d31e277 | 2024-11-18 15:41:26 +0000 | [diff] [blame] | 124 | <id>stub-docker</id> |
sourabh_sourabh | 436a8dc | 2024-11-12 13:12:02 +0000 | [diff] [blame] | 125 | <activation> |
| 126 | <activeByDefault>true</activeByDefault> |
| 127 | </activation> |
| 128 | <properties> |
sourabh_sourabh | 38becbc | 2024-11-20 10:37:59 +0000 | [diff] [blame^] | 129 | <image.name>dmi-plugin-demo-and-csit-stub</image.name> |
sourabh_sourabh | 436a8dc | 2024-11-12 13:12:02 +0000 | [diff] [blame] | 130 | </properties> |
| 131 | <build> |
| 132 | <plugins> |
| 133 | <plugin> |
| 134 | <groupId>com.google.cloud.tools</groupId> |
| 135 | <artifactId>jib-maven-plugin</artifactId> |
| 136 | <version>3.3.2</version> |
| 137 | </plugin> |
| 138 | </plugins> |
| 139 | </build> |
| 140 | </profile> |
| 141 | </profiles> |
sourabh_sourabh | 38becbc | 2024-11-20 10:37:59 +0000 | [diff] [blame^] | 142 | |
| 143 | <distributionManagement> |
| 144 | <repository> |
| 145 | <id>ecomp-releases</id> |
| 146 | <name>ECOMP Release Repository</name> |
| 147 | <url>${onap.nexus.url}${releaseNexusPath}</url> |
| 148 | </repository> |
| 149 | <snapshotRepository> |
| 150 | <id>ecomp-snapshots</id> |
| 151 | <name>ECOMP Snapshot Repository</name> |
| 152 | <url>${onap.nexus.url}${snapshotNexusPath}</url> |
| 153 | </snapshotRepository> |
| 154 | </distributionManagement> |
| 155 | |
egernug | e703e34 | 2024-07-08 10:59:08 +0100 | [diff] [blame] | 156 | </project> |