赞
踩
在新入手一个项目时,protoc-maven编译一直不成功:
protoc did not exit cleanly. Review output for more information
由于之前遇到过这种,一般是由于proto文件写的不对,但是报错显示乱码:、
之后网上找到解决方法:
Setting->maven->runner
VMoptions: -Dfile.encoding=GB2312
显示命令行太长,但是咨询了同事,都没有这个报错,后来得知是由于windows会有这个问题,mac没有,有点意思。。
最后降低了protoc版本,从0.5.1降到0.5.0,问题顺利解决:
<groupId>org.xolstice.maven.plugins</groupId> <artifactId>protobuf-maven-plugin</artifactId> <version>0.5.0</version>
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。