在 Ubuntu 上安装 findbugs
Installing findbugs on Ubuntu
为了构建hadoop,我需要安装findbugs。我尝试按照 link 安装它。我看到 findbugs 已正确安装。但是当我 运行 hadoop 的 maven build 命令时,我仍然在 hadoop-common 看到同样的错误:
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-antrun-plugin:1.7:run (site) on project hadoop-common: An Ant BuildException has occured: input file /home/raghuveer/Downloads/hadoop-2.6.0-src/hadoop-common-project/hadoop-common/target/findbugsXml.xml does not exist
[ERROR] around Ant part ...<xslt in="/home/raghuveer/Downloads/hadoop-2.6.0-src/hadoop-common-project/hadoop-common/target/findbugsXml.xml" style="${env.FINDBUGS_HOME}/src/xsl/default.xsl" out="/home/raghuveer/Downloads/hadoop-2.6.0-src/hadoop-common-project/hadoop-common/target/site/findbugs.html"/>... @ 44:277 in /home/raghuveer/Downloads/hadoop-2.6.0-src/hadoop-common-project/hadoop-common/target/antrun/build-main.xml
我卡在这一点上了。我该如何进行?
"input file /home/raghuveer/Downloads/hadoop-2.6.0-src/hadoop-common-project/hadoop-common/target/findbugsXml.xml does not exist"
资源文件通常应位于 <your project>/src/main/resources/
中,以便在构建期间复制到 /target
。
参见Maven, Introduction to the Standard Directory Layout and Apache Maven Resources Plugin:
The Resources Plugin handles the copying of project resources to the output directory.
为了构建hadoop,我需要安装findbugs。我尝试按照 link 安装它。我看到 findbugs 已正确安装。但是当我 运行 hadoop 的 maven build 命令时,我仍然在 hadoop-common 看到同样的错误:
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-antrun-plugin:1.7:run (site) on project hadoop-common: An Ant BuildException has occured: input file /home/raghuveer/Downloads/hadoop-2.6.0-src/hadoop-common-project/hadoop-common/target/findbugsXml.xml does not exist
[ERROR] around Ant part ...<xslt in="/home/raghuveer/Downloads/hadoop-2.6.0-src/hadoop-common-project/hadoop-common/target/findbugsXml.xml" style="${env.FINDBUGS_HOME}/src/xsl/default.xsl" out="/home/raghuveer/Downloads/hadoop-2.6.0-src/hadoop-common-project/hadoop-common/target/site/findbugs.html"/>... @ 44:277 in /home/raghuveer/Downloads/hadoop-2.6.0-src/hadoop-common-project/hadoop-common/target/antrun/build-main.xml
我卡在这一点上了。我该如何进行?
"input file /home/raghuveer/Downloads/hadoop-2.6.0-src/hadoop-common-project/hadoop-common/target/findbugsXml.xml does not exist"
资源文件通常应位于 <your project>/src/main/resources/
中,以便在构建期间复制到 /target
。
参见Maven, Introduction to the Standard Directory Layout and Apache Maven Resources Plugin:
The Resources Plugin handles the copying of project resources to the output directory.