我下载了ElephantBird源并试图通过运行“mvn package”来构建,但是我收到以下错误:
[ERROR] Failed to execute goal com.github.igor-petruk.protobuf:protobuf-maven-plugin:0.4:run (default) on project elephant-bird-core: Unable to find 'protoc' -> [Help 1]
我正在使用mvn 3.0.3版本,我在Mac和Ubuntu中尝试但是我也遇到了同样的错误。
EDIT1:
感谢Lorand的评论,我通过升级协议缓冲区解决了上述问题。我还安装了Thrift 0.7.0,但现在我在大象猪的构建过程中又遇到了另一个编译故障:
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.3.2:testCompile (default-testCompile) on project elephant-bird-pig: Compilation failure: Compilation failure: [ERROR] /root/elephant-bird/pig/src/test/java/com/twitter/elephantbird/pig/util/TestThriftNameWritableConverter.java:[12,26] invalid inferred types for W; inferred type does not conform to declared bound(s)
答案 0 :(得分:2)
确保您之前已安装Protocol Buffers
(apt-get install protobuf-compiler)和Thrift
。您还必须在Elephant-bird的pom.xml中设置Thrift的位置。
答案 1 :(得分:0)
使用Java 7 JDK修复Java编译错误。