protoc did not exit cleanly. Review output for more information报错

编程入门 行业动态 更新时间:2024-10-25 10:25:32

最近在研究gRpc,在开发过程中遇到一个问题,做下记录。

Failed to execute goal org.xolstice.maven.plugins:protobuf-maven-plugin:0.5.1:compile (default-cli) on project demo: protoc did not exit cleanly. Review output for more information.

做了一些排查,最后发现是因为.proto文件写的有问题

 两个红框处的内容不能一样,否则就会报上述错误。

修改成不同编译通过。

syntax = "proto3";

option java_multiple_files = true;
option java_package = "com.demo";
option java_outer_classname = "AiServiceR";

service AiService {
    rpc SendLogMessage(LogMessage) returns (ResultResponse) ;
}
message ResultResponse {
    int32 result = 1;
}
message LogMessage {
    string proc_name = 1;
    int32 log_level = 2;
    string message = 3;
}

更多推荐

protoc did not exit cleanly. Review output for more information报错

本文发布于:2023-06-14 03:42:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1433983.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:报错   cleanly   exit   protoc   information

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!