【发布时间】:2012-11-20 07:58:20
【问题描述】:
我下载了 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 中尝试过,但我得到了同样的错误。
编辑1:
感谢 Lorand 的 cmets,我通过升级协议缓冲区解决了上述问题。我还安装了 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)
【问题讨论】:
-
看起来错误是由于单元测试代码中的一些Java通用代码语法造成的。