java 无法执行目标 org.apache.maven.plugins:maven-javadoc-plugin

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/43123218/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-11-03 07:06:03  来源:igfitidea点击:

Failed to execute goal org.apache.maven.plugins:maven-javadoc-plugin

javamavennetbeans

提问by Choxmi

When I build the project with dependencies, it gives this error.

当我使用依赖项构建项目时,它会出现此错误。

Failed to execute goal org.apache.maven.plugins:maven-javadoc-plugin:2.10.4:jar (attach-javadocs) on project appointmentscheduling-api: MavenReportException: Error while generating Javadoc:

Failed to execute goal org.apache.maven.plugins:maven-javadoc-plugin:2.10.4:jar (attach-javadocs) on project appointmentscheduling-api: MavenReportException: Error while generating Javadoc:

Previously I could build it properly. I didn't change anything, I tried a backup sample as well. But this error come always. Tried re-installing javadoc plugin. There are some answers which says to change the pom.xml file. They didn't work for me either. Somebody help me to solve this please.

以前我可以正确构建它。我没有改变任何东西,我也尝试了一个备份样本。但是这个错误总是来的。尝试重新安装 javadoc 插件。有一些答案说要更改 pom.xml 文件。他们也没有对我来说有效。请有人帮我解决这个问题。

Thanks in advance

提前致谢

采纳答案by gpeche

Have you upgraded to JDK8 lately? You might be running into this problem. The solution would be one of:

你最近升级到JDK8了吗?您可能会遇到这个问题。解决方案是以下之一:

  • Launch Maven with JDK < 8
  • Apply workaround from link above
  • 使用 JDK < 8 启动 Maven
  • 从上面的链接应用解决方法