为了构建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
我被困在这一点上。我该怎么办?
1条答案
按热度按时间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资源插件简介:
资源插件处理项目资源到输出目录的复制。