pom.xml 2.4 KB
Newer Older
S
shenhongxi 已提交
1 2 3 4 5 6
<?xml version="1.0" encoding="UTF-8"?>
<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>whatsmars-parent</artifactId>
武汉红喜's avatar
武汉红喜 已提交
7
        <groupId>org.hongxi</groupId>
S
shenhongxi 已提交
8 9 10 11
        <version>1.0-SNAPSHOT</version>
    </parent>
    <modelVersion>4.0.0</modelVersion>

S
shenhongxi 已提交
12
    <artifactId>whatsmars-rpc</artifactId>
S
shenhongxi 已提交
13 14 15 16
    <packaging>jar</packaging>
    <name>${project.artifactId}</name>
    <url>http://maven.apache.org</url>

武汉红喜's avatar
武汉红喜 已提交
17
    <properties>
武汉红喜's avatar
武汉红喜 已提交
18
        <grpc.version>1.15.1</grpc.version>
武汉红喜's avatar
武汉红喜 已提交
19 20
    </properties>

S
shenhongxi 已提交
21 22 23 24
    <dependencies>
        <dependency>
            <groupId>io.grpc</groupId>
            <artifactId>grpc-netty</artifactId>
武汉红喜's avatar
武汉红喜 已提交
25
            <version>${grpc.version}</version>
S
shenhongxi 已提交
26 27 28 29
        </dependency>
        <dependency>
            <groupId>io.grpc</groupId>
            <artifactId>grpc-protobuf</artifactId>
武汉红喜's avatar
武汉红喜 已提交
30
            <version>${grpc.version}</version>
S
shenhongxi 已提交
31 32 33 34
        </dependency>
        <dependency>
            <groupId>io.grpc</groupId>
            <artifactId>grpc-stub</artifactId>
武汉红喜's avatar
武汉红喜 已提交
35
            <version>${grpc.version}</version>
S
shenhongxi 已提交
36 37 38 39 40 41 42 43 44
        </dependency>
    </dependencies>

    <build>
        <finalName>${project.artifactId}</finalName>
        <extensions>
            <extension>
                <groupId>kr.motd.maven</groupId>
                <artifactId>os-maven-plugin</artifactId>
武汉红喜's avatar
武汉红喜 已提交
45
                <version>1.5.0.Final</version>
S
shenhongxi 已提交
46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70
            </extension>
        </extensions>
        <plugins>
            <plugin>
                <groupId>org.xolstice.maven.plugins</groupId>
                <artifactId>protobuf-maven-plugin</artifactId>
                <version>0.5.0</version>
                <configuration>
                    <protocArtifact>com.google.protobuf:protoc:3.0.0:exe:${os.detected.classifier}</protocArtifact>
                    <pluginId>grpc-java</pluginId>
                    <pluginArtifact>io.grpc:protoc-gen-grpc-java:1.0.0:exe:${os.detected.classifier}</pluginArtifact>
                </configuration>
                <executions>
                    <execution>
                        <goals>
                            <goal>compile</goal>
                            <goal>compile-custom</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>
        </plugins>
    </build>


武汉红喜's avatar
武汉红喜 已提交
71
</project>