I have installed version 3.2.6.v200903300643 of the PMD Plug-in for Eclipse (which is version 3.7.*).
When I try to run the Generate Abstract Syntax Tree, I get the following error
PMD Exception : net.sourceforge.pmd.ast.ParseException: Can't use static imports when running in JDK 1.4 mode
My question is: How can I configure which JDK compatibility mode PMD is running in when used through Eclipse ?
I can't find any configuration options for this in the properties overview.
Regards Esben
Most probably you need to configure the maven-pmd-plugin
to use the correct targetJdk option value. It does not explicitly say if this option defaults to 1.4
, but it seems so.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.