在 eclipse 中安装 PMD 时出错

Error while installing PMD in eclipse

在 eclipse Luna 中安装 PMD 时,即使 jar 位于 zip 文件中,我也会收到类似 could not find jar 的错误。

我所做的是,从

下载 PMD eclipse 文件的 zip 文件
http://sourceforge.net/projects/pmd/files/latest/download?source=files

并在 eclipse > 帮助 > 安装新软件 >

安装 PMD for Eclipse 插件:

在 Eclipse 中,单击帮助 -> 安装新软件...

点击添加..

输入以下内容:名称:Eclipse 更新站点的 PMD URL:https://sourceforge.net/projects/pmd/files/pmd-eclipse/update-site/ 并单击“确定”。

您应该看到 Eclipse 的 PMD

Select 旁边的复选框,然后单击下一步 >。

您需要接受许可并确认您要安装未经过数字签名的插件。继续安装吧。

重新启动 eclipse。

它会起作用。