seata源码初始启动报错(protobuf)

seata,前身fescar,是一款开源的分布式事务解决方案,致力于提供高性能和简单易用的分布式事务服务。

Seata 将为用户提供了 AT、TCC、SAGA 和 XA 事务模式,为用户打造一站式的分布式解决方案。

seata源码导入到idea中第一次启动server端的时候,编译会报错如下:

seata源码初始启动报错(protobuf)_第1张图片

很明显就是protobuf包下generated不存在,其实这是由于seata的serializer项目么有编译造成的,只需要我们idea下载安装Protobuf Support插件,然后重启idea,然后在idea右侧maven菜单中,双击如下protobuf-compile执行就可以生成protobuf项目的java代码了。

seata源码初始启动报错(protobuf)_第2张图片

[INFO] seata-serializer 1.4.0 ............................. SUCCESS [  0.127 s]
[INFO] seata-serializer-seata 1.4.0 ....................... SUCCESS [  0.044 s]
[INFO] seata-serializer-protobuf 1.4.0 .................... SUCCESS [  0.342 s]
[INFO] seata-serializer-kryo 1.4.0 ........................ SUCCESS [  0.022 s]
[INFO] seata-serializer-hessian 1.4.0 ..................... SUCCESS [  0.010 s]
[INFO] seata-serializer-fst 1.4.0 ......................... SUCCESS [  0.013 s]
[INFO] seata-serializer-all 1.4.0 ......................... SUCCESS [  0.011 s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  1.131 s
[INFO] Finished at: 2020-11-28T22:01:59+08:00
[INFO] ------------------------------------------------------------------------
[WARNING] The requested profile "release-seata" could not be activated because it does not exist.
​
Process finished with exit code 0

重新启动server成功即可。

你可能感兴趣的:(seata,seata)