Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 1.6
-
Fix Version/s: 1.7
-
Component/s: None
-
Labels:None
-
Number of attachments :
Description
I'm getting the following issue when using the Maven PMD plugin when classes have the @Override annotations in there.
build:start:
pmd:cpd-report:
[echo] Running the CPD task with minimumTokenCount = 100 ...
[cpd] Tokenizing files
BUILD FAILED
File...... C:\Documents and Settings\extndgr\.maven\cache\maven-pmd-plugin-1.6\plugin.jelly
Element... cpd
Line...... 183
Column.... 58
Lexical error at line 235, column 10. Encountered: "@" (64), after : ""
Total time: 4 seconds
Finished at: Tue Apr 26 09:19:54 CEST 2005
It works fine when the Annotations are left out.
build:start:
pmd:cpd-report:
[echo] Running the CPD task with minimumTokenCount = 100 ...
[cpd] Tokenizing files
[cpd] Starting to analyze code
[cpd] Done analyzing code; that took 16 milliseconds
[cpd] Generating report
[cpd] No duplicates over 100 tokens found
[mkdir] Created dir: C:\Development\workspace\ikmo-core\target\generated-xdocs
BUILD SUCCESSFUL
Total time: 2 seconds
Finished at: Tue Apr 26 11:07:47 CEST 2005
Issue Links
| This issue depends upon: | ||||
| MPPMD-15 | Upgrade pmd version to 3.0 |
|
|
|
You need to use the latest version of PMD. Full 1.5 support is only introduced in PMD 3.0. The current PMD release is 3.2, so I would recommend that one. To override the version the PMD plugin uses, use this:
maven.jar.override=on
maven.jar.pmd=3.2
in your project.properties.
regards,
Wim