| <?xml version="1.0" encoding="UTF-8"?> |
| <!-- |
| Licensed to the Apache Software Foundation (ASF) under one or more |
| contributor license agreements. See the NOTICE file distributed with |
| this work for additional information regarding copyright ownership. |
| The ASF licenses this file to You under the Apache License, Version 2.0 |
| (the "License"); you may not use this file except in compliance with |
| the License. You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, software |
| distributed under the License is distributed on an "AS IS" BASIS, |
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| See the License for the specific language governing permissions and |
| limitations under the License. |
| --> |
| <project xmlns="http://maven.apache.org/POM/4.0.0" |
| xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> |
| <modelVersion>4.0.0</modelVersion> |
| <parent> |
| <groupId>org.springframework.boot</groupId> |
| <artifactId>spring-boot-starter-parent</artifactId> |
| <version>3.0.0</version> |
| <relativePath/> <!-- lookup parent from repository --> |
| </parent> |
| |
| <groupId>org.apache.dubbo.samples</groupId> |
| <artifactId>dubbo-samples-rpc-basic-consumer</artifactId> |
| <version>0.0.1-SNAPSHOT</version> |
| |
| <name>Dubbo RPC Basic Task - Consumer</name> |
| <description>Dubbo RPC Basic Task - Consumer</description> |
| |
| <properties> |
| <java.version>17</java.version> |
| <dubbo.version>3.2.0</dubbo.version> |
| <nacos.version>2.2.0</nacos.version> |
| </properties> |
| |
| <dependencies> |
| <!-- common api --> |
| <dependency> |
| <groupId>org.apache.dubbo.samples</groupId> |
| <artifactId>dubbo-samples-rpc-basic-api</artifactId> |
| <version>${project.version}</version> |
| </dependency> |
| |
| <!-- registry dependency --> |
| <dependency> |
| <groupId>com.alibaba.nacos</groupId> |
| <artifactId>nacos-client</artifactId> |
| <version>${nacos.version}</version> |
| </dependency> |
| |
| <!-- dubbo dependency--> |
| <dependency> |
| <groupId>org.apache.dubbo</groupId> |
| <artifactId>dubbo-spring-boot-starter</artifactId> |
| <version>${dubbo.version}</version> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.springframework.boot</groupId> |
| <artifactId>spring-boot-starter</artifactId> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.springframework.boot</groupId> |
| <artifactId>spring-boot-starter-test</artifactId> |
| <scope>test</scope> |
| </dependency> |
| </dependencies> |
| |
| <build> |
| <plugins> |
| <plugin> |
| <groupId>org.graalvm.buildtools</groupId> |
| <artifactId>native-maven-plugin</artifactId> |
| </plugin> |
| <plugin> |
| <groupId>org.springframework.boot</groupId> |
| <artifactId>spring-boot-maven-plugin</artifactId> |
| </plugin> |
| <plugin> |
| <groupId>com.google.cloud.tools</groupId> |
| <artifactId>jib-maven-plugin</artifactId> |
| <version>3.2.1</version> |
| <configuration> |
| <to> |
| <image>apache/dubbo-demo:dubbo-samples-rpc-basic-consumer_0.0.1</image> |
| </to> |
| <container> |
| <jvmFlags> |
| <jvmFlag>-Dnacos.address=nacos.dubbo-system.svc</jvmFlag> |
| </jvmFlags> |
| <ports> |
| <port>20880</port> |
| <port>22222</port> |
| </ports> |
| </container> |
| </configuration> |
| </plugin> |
| </plugins> |
| </build> |
| |
| </project> |