Nic, that's a PMD bug. I'm assuming this might be the problem:
http://pmd.sourceforge.net/future.html
Some of the code is a bit sloppy:
* The grammar has some odd bits:
o Some complicated annotations are currently broken
You might query the bugs in the PMD project on sourceforge for more
info.
-----Original Message-----
From: Nic Holbrook [mailto:[EMAIL PROTECTED]
Sent: Friday, January 13, 2006 11:05 AM
To: Maven Users List
Subject: Re: [ANN] Maven PMD plugin 2.0-beta-1
I thought it would go. I got this error.
------------------------------------------------------------------------
------------------------------------------------------
Line 58 is this one.
@ManyToOne(cascade = {}, fetch = FetchType.EAGER)
Encountered "}" at line 58, column 31.
Was expecting one of:
"boolean" ...
"byte" ...
"char" ...
"double" ...
"false" ...
"float" ...
"int" ...
"long" ...
"new" ...
"null" ...
"short" ...
"super" ...
"this" ...
"true" ...
"void" ...
<INTEGER_LITERAL> ...
<FLOATING_POINT_LITERAL> ...
<CHARACTER_LITERAL> ...
<STRING_LITERAL> ...
<IDENTIFIER> ...
"(" ...
"{" ...
"@" ...
"!" ...
"~" ...
"++" ...
"--" ...
"+" ...
"-" ...
------------------------------------------------------------------------
------------------------------------------------------------------------
---------------------
Mike Perham wrote:
>Nic, put this in your plugin configuration:
>
><targetJdk>1.5</targetJdk>
>
>-----Original Message-----
>From: Nic Holbrook [mailto:[EMAIL PROTECTED]
>Sent: Friday, January 13, 2006 10:39 AM
>To: Maven Users List
>Subject: Re: [ANN] Maven PMD plugin 2.0-beta-1
>
>This plugin doesn't seem to like annotations. Is there something I can
>do to get it to ignore mine or are you planning to have support anytime
>soon?
>
>Mike Perham wrote:
>
>
>
>>A new version of the PMD plugin for Maven 2 has been released. PMD is
>>a source code quality analysis tool and the plugin allows for
>>automated
>>
>>
>
>
>
>>quality reports to be generated with your project's site
documentation.
>>
>>Highlights:
>>- Upgrade to PMD 3.4
>>- Report can be emitted in HTML, XML, CSV or TXT
>>- Added CPD (Copy/Paste Detector) report
>>- JXR integration
>>
>>To update your plugin, just run 'mvn -U pmd:pmd' in an m2 project to
>>pull down the latest version.
>>
>>Documentation:
>>http://maven.apache.org/plugins/maven-pmd-plugin/
>>
>>About PMD:
>>http://pmd.sourceforge.net/
>>
>>JIRA issues closed:
>>http://jira.codehaus.org/secure/IssueNavigator.jspa?reset=true&mode=hi
>>d
>>e
>>&sorter/order=ASC&sorter/field=priority&pid=11140&fixfor=12176
>>
>>mike
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: [EMAIL PROTECTED]
>>For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>>[tch]
>>
>>
>>
>>
>>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>[tch]
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]