我正在尝试构建hadoop项目。我按照以下官方文件说明了如何做到这一点。
http://wiki.apache.org/hadoop/HowToContribute
https://wiki.apache.org/hadoop/EclipseEnvironment
我git clone
项目,maven install
它成功了,但是当我导入项目,甚至像'hadoop-yarn-api'这样的子项目时,我收到了以下错误:行家:
Description Resource Path Location Type
Plugin execution not covered by lifecycle configuration: org.apache.hadoop:hadoop-maven-plugins:3.0.0-SNAPSHOT:protoc (execution: compile-protoc, phase: generate-sources) pom.xml /hadoop-yarn-api line 73 Maven Project Build Lifecycle Mapping Problem
然后我在eclipse中通过mvn clean install
尝试External Tools Configuration
项目,它也失败了:
[ERROR] Failed to execute goal org.apache.hadoop:hadoop-maven-plugins:3.0.0-SNAPSHOT:protoc (compile-protoc) on project hadoop-yarn-api: org.apache.maven.plugin.MojoExecutionException: 'protoc --version' did not return a version -> [Help 1]
但奇怪的是,当我cd
进入'hadoop-yarn-api'的根目录并调用mvn clean install
时,它可以成功构建。
我在eclipse中使用m2ecipse,我确信我已经改为maven,这正是我在命令行中使用的那个,而不是嵌入式的。
我已经安装了协议缓冲区2.5.0:
$ protoc --version
libprotoc 2.5.0
有人能给我一些想法吗?非常感谢!
P.S。
Eclipse Java EE IDE - Juno Service Release 2
m2e - 1.4.1.20140328-1905
Mac 1- 0.9.4
maven - 3.0.5
Hadoop - 2.2.0