[ http://jira.codehaus.org/browse/MPPMD-16?page=comments#action_41849 ]
Wim Deblauwe commented on MPPMD-16: ----------------------------------- 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 > Failure when using annotations in classes. > ------------------------------------------ > > Key: MPPMD-16 > URL: http://jira.codehaus.org/browse/MPPMD-16 > Project: maven-pmd-plugin > Type: Bug > Versions: 1.6 > Reporter: Nico De Groote > > > 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 -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
