File tree 1 file changed +7
-5
lines changed
polaris-common/polaris-protobuf
1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change 29
29
</dependencies >
30
30
31
31
<build >
32
- <!-- 这个是为了下载下面的工具用的,他可以提供一些变量,os.detected.classifier变量可以根据当前系统的类型来下载对应的工具-->
32
+ <!--
33
+ generates various useful platform-dependent project properties,
34
+ eg: generates os.detected.classifier for protobuf-maven-plugin
35
+ -->
33
36
<extensions >
34
37
<extension >
35
38
<groupId >kr.motd.maven</groupId >
38
41
</extension >
39
42
</extensions >
40
43
<plugins >
44
+ <!-- protobuf compile plugin -->
41
45
<plugin >
42
46
<groupId >org.xolstice.maven.plugins</groupId >
43
47
<artifactId >protobuf-maven-plugin</artifactId >
44
48
<version >0.6.1</version >
45
- <!-- 添加.proto文件的编译工具-->
46
49
<configuration >
47
50
<protocArtifact >
48
51
com.google.protobuf:protoc:3.12.0:exe:${os.detected.classifier}
51
54
<pluginArtifact >
52
55
io.grpc:protoc-gen-grpc-java:1.38.0:exe:${os.detected.classifier}
53
56
</pluginArtifact >
54
- <!-- 这是生成grpc工具类存放的文件夹的名字 -->
55
- <pluginId >grpc-java</ pluginId >
57
+ <!-- The source directories containing the .proto definitions to be compiled. -->
58
+ <protoSourceRoot > ${basedir} /src/main/proto</ protoSourceRoot >
56
59
</configuration >
57
60
<executions >
58
- <!-- 这是上面两个编译工具用到的命令-->
59
61
<execution >
60
62
<goals >
61
63
<goal >compile</goal >
You can’t perform that action at this time.
0 commit comments