protobuf+grpc+examples
来源:互联网 发布:javascript有用吗 编辑:程序博客网 时间:2024/06/05 11:55
从下载后的grpc-java-master中的examples
pom.xml是有问题的
以下是修改后的pom.xml,注意JDK版本要在1.6或以上
<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><groupId>com.qifan</groupId><artifactId>qfgrpc</artifactId><version>0.0.1-qfgrpc</version><packaging>jar</packaging><name>qfgrpc</name><url>http://maven.apache.org</url><properties><project.build.sourceEncoding>UTF-8</project.build.sourceEncoding></properties><dependencies><dependency><groupId>junit</groupId><artifactId>junit</artifactId><version>4.11</version><scope>test</scope></dependency><dependency><groupId>io.grpc</groupId><artifactId>grpc-all</artifactId><version>1.4.0</version></dependency><dependency><groupId>io.grpc</groupId><artifactId>grpc-testing</artifactId><version>1.4.0</version><scope>test</scope></dependency><dependency><groupId>org.mockito</groupId><artifactId>mockito-core</artifactId><version>1.9.5</version><scope>test</scope></dependency></dependencies><build><extensions><extension><groupId>kr.motd.maven</groupId><artifactId>os-maven-plugin</artifactId><version>1.4.1.Final</version></extension></extensions><plugins><plugin><groupId>org.xolstice.maven.plugins</groupId><artifactId>protobuf-maven-plugin</artifactId><version>0.5.0</version><configuration><!-- The version of protoc must match protobuf-java. If you don't depend on protobuf-java directly, you will be transitively depending on the protobuf-java version that grpc depends on. --><protocArtifact>com.google.protobuf:protoc:3.2.0:exe:${os.detected.classifier}</protocArtifact><pluginId>grpc-java</pluginId><pluginArtifact>io.grpc:protoc-gen-grpc-java:1.3.0:exe:${os.detected.classifier}</pluginArtifact></configuration><executions><execution><goals><goal>compile</goal><goal>compile-custom</goal></goals></execution></executions></plugin></plugins></build></project>
阅读全文
0 0
- protobuf+grpc+examples
- Protobuf和GRPC(一)
- protobuf + grpc 使用入门 一
- protobuf + grpc 使用入门 二
- grpc+protobuf 的C++ service 实例解析
- galang 学习之grpc+ protobuf(一)
- galang 学习之grpc+ protobuf(二)
- java中使用grpc和protobuf
- 在python中使用grpc和protobuf
- 基于HTTP/2和protobuf的RPC框架GRPC
- ProtoBuf 与 gRPC 你需要知道的知识
- ProtoBuf 与 gRPC 你需要知道的知识
- ProtoBuf 与 gRPC 你需要知道的知识
- Android项目使用 protobuf和grpc简单例子
- Go(GoLang)配置Grpc+ProtoBuf所需的一些资源
- 在C#中使用gRPC及protobuf简介
- Go实战--golang中使用gRPC和Protobuf实现高性能api(golang/protobuf、google.golang.org/grpc)
- gRPC
- html5标签
- linux下查看可用登录用户名
- css3
- [POJ 2976] Dropping tests 二分答案+伪贪心规划
- Java基础-继承
- protobuf+grpc+examples
- linux远程连接注意防火墙
- Android代码判断当前设备是否为模拟器
- 初始化配置自己的vim编辑器
- 网页取数据bs4
- MySQL多张表关联查询
- 达夫设备 JavaScript
- C语言的命令行参数
- [leetcode]: 581. Shortest Unsorted Continuous Subarray