在ubuntu上安装findbugs

vohkndzv  于 2021-06-02  发布在  Hadoop
关注(0)|答案(1)|浏览(373)

为了构建hadoop,我需要安装findbugs。我试图通过以下链接安装它。我看到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

我被困在这一点上。我该怎么办?

72qzrwbm

72qzrwbm1#

"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,标准目录布局和apache maven资源插件简介:
资源插件处理项目资源到输出目录的复制。

相关问题