Eclipse Kepler,PMD5遇到麻烦

时间:2014-04-10 19:50:15

标签: eclipse pmd eclipse-kepler

我已经在此页面中安装了插件PMD5:http://sourceforge.net/projects/pmd/files/pmd-eclipse/update-site/ ...在eclipse kepler中。

当我尝试在版本5中导入我自己的xml文件时,"确定"按钮无效。它是什么?怎么了?我尝试了不同的方法,仍然无法正常工作。

enter image description here

1 个答案:

答案 0 :(得分:1)

我解决了这个问题。

在使用此页面安装PMD时,在我的Windows XP 32位中: http://sourceforge.net/projects/pmd/files/pmd-eclipse/update-site/ 安装的PMD的最新版本是5.05。 虽然它已经是5.1版,但我不知道为什么不在我的Eclipse Kepler中安装.......在版本PMD 5.1中,只有5.05。

在我的xml文件中出现行:

<rule ref="rulesets/design.xml/UseUtilityClass" />

在我们发布5.1版之前,使用名称UseSingleton。在版本5.1中,名称在UseUtilityClass上更改。

摘要: 在版本PMD 5.05中,行应如下所示:

<rule ref="rulesets/design.xml/UseSingleton" />

以上版本PMD 5.1行应如下所示:

<rule ref="rulesets/design.xml/UseUtilityClass" />