Kar*_*arl 7 java eclipse pmd eclipse-juno
尝试在Eclipse/Juno中为项目运行pmd时,我收到此错误.
An internal error occurred during: "ReviewCode".
Couldn't find the class Can't find resource rulesets/basic.xml. Make sure the resource is a valid file or URL or is on the CLASSPATH. Here's the current classpath: C:\eclipsejuno\eclipse\\plugins/org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar
Run Code Online (Sandbox Code Playgroud)
有谁知道如何解决这个问题?
Sco*_*ris 10
我也看到了命令行版本的这个问题.在最新版本中,类路径是rulesets/java/basic.xml
它们似乎改变了版本之间的默认路径.您需要手动更新PMD配置中的路径,或更新到最新版本.
小智 5
如果项目中存在".pmd"文件并使用ruleset.xml指示,则可以在上述解决方案之间选择解决问题.
<rule ref="rulesets/basic.xml" />
Run Code Online (Sandbox Code Playgroud)
至
<rule ref="rulesets/java/basic.xml" />
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
9738 次 |
| 最近记录: |