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