在NetBeans中,我在尝试为Maven项目生成JavaDocs时遇到以下错误。
Failed to execute goal org.apache.maven.plugins:maven-javadoc-plugin:2.9.1:javadoc
(default-cli) on project Heur: An error has occurred in JavaDocs report generation:
Exit code: 1 - C:UsersAdminJavaProjectsHeursrcmainjavacomheurApp.java:27:
error: malformed HTML
* @author MyName <myemail @ gmail.com>
我不明白错误,据我所知,@author
标签是正确的。为完整起见,特此报告:
/**
*
* @author MyName <myemail @ gmail.com>
* @version 1.0.0
* @since 4-apr-2014
*/
你需要
像这样转义<
、@
和>
:
{@literal <}myemail {@literal @} gmail.com{@literal >}
将<
和>
替换为(
和)
可能会更清楚,以便为您提供:
(myemail {@literal @} gmail.com)
编辑:
或者正如您所建议的,只需将批次标记为literal
{@literal (myemail @ gmail.com)}