我正试图在Windows7x64上构建ApacheHadoop2.5.0,但一直遇到未知错误

r1zk6ea1  于 2021-05-30  发布在  Hadoop
关注(0)|答案(2)|浏览(192)
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-javadoc-plugin:2.8
.1:jar (module-javadocs) on project hadoop-maven-plugins: MavenReportException:
Error while creating archive:

[ERROR] Exit code: 1 - C:\hsc\hadoop-maven-plugins\src\main\java\org\apache\hado
op\maven\plugin\util\Exec.java:45: error: unknown tag: String

[ERROR] * @param command List<String> containing command and all arguments

[ERROR] ^

[ERROR] C:\hsc\hadoop-maven-plugins\src\main\java\org\apache\hadoop\maven\plugin
\util\Exec.java:46: error: unknown tag: String

[ERROR] * @param output List<String> in/out parameter to receive command output

[ERROR] ^

[ERROR] C:\hsc\hadoop-maven-plugins\src\main\java\org\apache\hadoop\maven\plugin
\util\FileSetUtils.java:50: error: unknown tag: File

[ERROR] * @return List<File> containing every element of the FileSet as a File

[ERROR] ^

[ERROR]

[ERROR] Command line was: C:\Progra~1\Java\jdk1.8.0_20\jre\..\bin\javadoc.exe @o
ptions @packages

[ERROR]

[ERROR] Refer to the generated Javadoc files in 'C:\hsc\hadoop-maven-plugins\tar
get' dir.

[ERROR] -> [Help 1]

[ERROR]

[ERROR] To see the full stack trace of the errors, re-run Maven with the -e swit
ch.

[ERROR] Re-run Maven using the -X switch to enable full debug logging.

[ERROR]

[ERROR] For more information about the errors and possible solutions, please rea
d the following articles:

[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionE
xception

[ERROR]

[ERROR] After correcting the problems, you can resume the build with the command

[ERROR]   mvn <goals> -rf :hadoop-maven-plugins

在此之前,我遇到了一个常见的错误,它要求对文件进行读/写访问。我已经通过chmod授予了它所有的权限,并且在windows的文件属性中手动更改了权限设置。
wiki链接将我发送到一个页面,该页面基本上表示插件有问题。不幸的是,那里没有任何东西可以说明如何解决这个问题。
我在windows7x64上,尝试使用src和maven 3.2.3和jdk1.8.0的最新版本构建hadoop2.5.0

kadbb459

kadbb4591#

您还可以在父pom中添加以下属性来解决此问题-

<properties>
    <additionalparam>-Xdoclint:none</additionalparam>
</properties>
6mzjoqzu

6mzjoqzu2#

我在构建源代码时遇到了类似的问题。而不是使用以下命令进行编译:

mvn package -Pdist,native -DskipTests=true -Dtar

我用过:

mvn package -Pdist,native -Dmaven.javadoc.skip=true -DskipTests -Dtar

试试这个!

相关问题