在 NetBeans Maven 项目中设置链接源 属性

Setting linksource property in NetBeans Maven project

在使用不断发展的 API 时,我经常使用 -linksource option of javadoc to add source links to the standard HTML documentation. In the particular case of JFreeChart,我可能

作为JFreeChart uses Maven的当前版本,我尝试在生成javadoc的动作中将linksource设置为yes,如下所示。

生成的文档没有源链接。我已经有一段时间没有使用 Maven 了。我哪里出错了?

你快到了。作为JB Nizet illustrates here, ant treats yes, on and true as the same value. In contrast, your Netbeans Maven project uses the javadoc:javadoc plugin, as can be seen under "Execute Goals" for the selected action. To meet the plugin's requirements, simply set the linksource属性给true,如下图。