1
+ <?xml version =" 1.0" encoding =" UTF-8" ?>
2
+ <project xmlns =" http://maven.apache.org/POM/4.0.0"
3
+ xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
4
+ xsi : schemaLocation =" http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" >
5
+ <modelVersion >4.0.0</modelVersion >
6
+
7
+ <groupId >me.zaccoding</groupId >
8
+ <artifactId >demo</artifactId >
9
+ <version >1.0-SNAPSHOT</version >
10
+
11
+ <properties >
12
+ <io .grpc.version>1.16.1</io .grpc.version>
13
+ <os-maven-plugin .version>1.6.1</os-maven-plugin .version>
14
+ <protobuf-maven-plugin .version>0.6.1</protobuf-maven-plugin .version>
15
+ <grpc .version>1.20.0</grpc .version>
16
+ </properties >
17
+
18
+
19
+ <dependencies >
20
+ <dependency >
21
+ <groupId >io.grpc</groupId >
22
+ <artifactId >grpc-netty</artifactId >
23
+ <version >${grpc.version} </version >
24
+ </dependency >
25
+ <dependency >
26
+ <groupId >io.grpc</groupId >
27
+ <artifactId >grpc-protobuf</artifactId >
28
+ <version >${grpc.version} </version >
29
+ </dependency >
30
+ <dependency >
31
+ <groupId >io.grpc</groupId >
32
+ <artifactId >grpc-stub</artifactId >
33
+ <version >${grpc.version} </version >
34
+ </dependency >
35
+ </dependencies >
36
+
37
+ <build >
38
+ <extensions >
39
+ <extension >
40
+ <groupId >kr.motd.maven</groupId >
41
+ <artifactId >os-maven-plugin</artifactId >
42
+ <version >1.6.1</version >
43
+ </extension >
44
+ </extensions >
45
+
46
+ <plugins >
47
+ <plugin >
48
+ <groupId >org.apache.maven.plugins</groupId >
49
+ <artifactId >maven-compiler-plugin</artifactId >
50
+ <configuration >
51
+ <source >1.8</source >
52
+ <target >1.8</target >
53
+ </configuration >
54
+ </plugin >
55
+
56
+ <plugin >
57
+ <groupId >org.xolstice.maven.plugins</groupId >
58
+ <artifactId >protobuf-maven-plugin</artifactId >
59
+ <version >0.6.1</version >
60
+ <configuration >
61
+ <protocArtifact >
62
+ com.google.protobuf:protoc:3.3.0:exe:${os.detected.classifier}
63
+ </protocArtifact >
64
+ <pluginId >grpc-java</pluginId >
65
+ <pluginArtifact >
66
+ io.grpc:protoc-gen-grpc-java:1.4.0:exe:${os.detected.classifier}
67
+ </pluginArtifact >
68
+ <attachProtoSources >false</attachProtoSources >
69
+ </configuration >
70
+ <executions >
71
+ <execution >
72
+ <goals >
73
+ <goal >compile</goal >
74
+ <goal >compile-custom</goal >
75
+ </goals >
76
+ </execution >
77
+ </executions >
78
+ </plugin >
79
+ </plugins >
80
+ </build >
81
+
82
+ </project >
0 commit comments