| <?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"> |
| <parent> |
| <artifactId>dubbo-samples-all</artifactId> |
| <groupId>org.apache.dubbo</groupId> |
| <version>1.0-SNAPSHOT</version> |
| </parent> |
| <modelVersion>4.0.0</modelVersion> |
| |
| <artifactId>dubbo-samples-triple</artifactId> |
| |
| <properties> |
| <source.level>1.8</source.level> |
| <target.level>1.8</target.level> |
| <dubbo.version>3.0.4</dubbo.version> |
| <grpc.version>1.40.1</grpc.version> |
| <junit.version>4.12</junit.version> |
| <spring-test.version>4.3.16.RELEASE</spring-test.version> |
| <maven-compiler-plugin.version>3.7.0</maven-compiler-plugin.version> |
| <maven-failsafe-plugin.version>2.21.0</maven-failsafe-plugin.version> |
| <spring-boot.version>1.5.13.RELEASE</spring-boot.version> |
| <protoc.version>3.7.1</protoc.version> |
| <dubbo.compiler.version>0.0.4-SNAPSHOT</dubbo.compiler.version> |
| </properties> |
| |
| <dependencies> |
| <dependency> |
| <groupId>org.apache.dubbo</groupId> |
| <artifactId>dubbo</artifactId> |
| <version>${dubbo.version}</version> |
| </dependency> |
| <dependency> |
| <groupId>com.google.protobuf</groupId> |
| <artifactId>protobuf-java</artifactId> |
| <version>3.14.0</version> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.dubbo</groupId> |
| <artifactId>dubbo-dependencies-zookeeper</artifactId> |
| <version>${dubbo.version}</version> |
| <type>pom</type> |
| </dependency> |
| <dependency> |
| <groupId>io.grpc</groupId> |
| <artifactId>grpc-all</artifactId> |
| <version>${grpc.version}</version> |
| <!-- <scope>test</scope>--> |
| </dependency> |
| <dependency> |
| <groupId>junit</groupId> |
| <artifactId>junit</artifactId> |
| <version>${junit.version}</version> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.springframework</groupId> |
| <artifactId>spring-test</artifactId> |
| <version>${spring-test.version}</version> |
| <scope>test</scope> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.testcontainers</groupId> |
| <artifactId>testcontainers</artifactId> |
| <version>1.12.3</version> |
| <scope>test</scope> |
| </dependency> |
| </dependencies> |
| |
| <profiles> |
| <!-- For jdk 11 above JavaEE annotation --> |
| <profile> |
| <id>javax.annotation</id> |
| <activation> |
| <jdk>[1.11,)</jdk> |
| </activation> |
| <dependencies> |
| <dependency> |
| <groupId>javax.annotation</groupId> |
| <artifactId>javax.annotation-api</artifactId> |
| <version>1.3.2</version> |
| </dependency> |
| </dependencies> |
| </profile> |
| </profiles> |
| |
| <build> |
| <extensions> |
| <extension> |
| <groupId>kr.motd.maven</groupId> |
| <artifactId>os-maven-plugin</artifactId> |
| <version>1.6.1</version> |
| </extension> |
| </extensions> |
| <plugins> |
| <plugin> |
| <groupId>org.xolstice.maven.plugins</groupId> |
| <artifactId>protobuf-maven-plugin</artifactId> |
| <version>0.6.1</version> |
| <configuration> |
| <protocArtifact>com.google.protobuf:protoc:${protoc.version}:exe:${os.detected.classifier}</protocArtifact> |
| <pluginId>grpc-java</pluginId> |
| <pluginArtifact>io.grpc:protoc-gen-grpc-java:${grpc.version}:exe:${os.detected.classifier}</pluginArtifact> |
| <protocPlugins> |
| <protocPlugin> |
| <id>dubbo</id> |
| <groupId>org.apache.dubbo</groupId> |
| <artifactId>dubbo-compiler</artifactId> |
| <version>${dubbo.compiler.version}</version> |
| <mainClass>org.apache.dubbo.gen.dubbo.Dubbo3Generator</mainClass> |
| </protocPlugin> |
| </protocPlugins> |
| </configuration> |
| <executions> |
| <execution> |
| <goals> |
| <goal>compile</goal> |
| <goal>test-compile</goal> |
| <goal>compile-custom</goal> |
| <goal>test-compile-custom</goal> |
| </goals> |
| </execution> |
| </executions> |
| </plugin> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-compiler-plugin</artifactId> |
| <version>${maven-compiler-plugin.version}</version> |
| <configuration> |
| <source>${source.level}</source> |
| <target>${target.level}</target> |
| </configuration> |
| </plugin> |
| </plugins> |
| </build> |
| |
| </project> |