Nacos源码istio、entity包找不到
启动时报错找不到entity包
原因是entity模块下的代码由protobuf在编译时自动生成的,所以只需要编译一下让它生成出来就可以了。
前提代码路径是英文
操作
1、安装Protocol Buffers
file–>settings–>plugins
2、在 idea 中,我们在 nacos-consistency 的 lifecycle 下执行 compile
至此我们entity包缺失问题解决
istio包缺失问题
解决办法
mvn clean compile -Dmaven.test.skip=true
在nacos-istio模块下执行这个命令,等待编译完即可。
还不行的话可以在父项目目录下执行mvn clean compile -Dmaven.test.skip=true命令。