Good day to you, Davis,

Filing a jira issue:
1. Login in [1] ( or create an account if you don't have one )
2. Click "Create new issue:
3. Choose "Plexus Components" for the project
4. Choose "bug" for the issue type
5. Click next
6. Type in the summary of the bug
7. Select plexus-compiler for the components
8. Fill in the other details
9. and click Create :)

Sounds like there's a lot to do..but it's actually quite easy :)

Happy filing :)

Cheers,
Franz

[1] http://jira.codehaus.org/browse/PLXCOMP


davis wrote:
> 
> Hi Eric, thanks for pointing that out.  Unfortunately that is just my typo
> in trying to express the post.  The real file does not have that comma. 
> This really is an issue with mvn plexus compiler.  It's simple to
> reproduce, just try it in a blank new maven project with package-info.java
> the only file with an annotation like that (w/o the comma).
> 
> I'd file a JIRA issue if I knew how.
> 
> I wish there was a fix for this b/c it is really a problem for me.  If
> anyone has a fix, let me know.
> 
> Regards,
> Davis
> 
> 
> Eric Redmond wrote:
>> 
>> Remove the last comma before the "})" tokens.
>> 
>> Eric
>> 
>> On 2/8/07, David Ford <[EMAIL PROTECTED]> wrote:
>>>
>>> Hi, I'm doing a hibernate project where we set up a package-info.java
>>> file that looks like this
>>>
>>>
>>>
>>> @org.hibernate.annotations.NamedQueries( {
>>>
>>>
>>>
>>>       @org.hibernate.annotations.NamedQuery(name = "someQuery", query =
>>> "from User u"),
>>>
>>> })
>>>
>>> package some.package;
>>>
>>>
>>>
>>> The annotation is at the top, the package declaration is at the bottom.
>>>
>>>
>>>
>>> Unfortunately, plexus-compiler-javac croaks when trying to parse this.
>>> I just tried 1.6-SNAPSHOT and it still has the problem...
>>>
>>>
>>>
>>> [parsing started
>>> C:\SVN\diamond\orm-tracer\src\main\java\com\teleatlas\global\orm\domain\
>>> package-info.java]
>>>
>>> C:\SVN\diamond\orm-tracer\src\main\java\com\teleatlas\global\orm\domain\
>>> package-info.java:116: illegal start of expression
>>>
>>> })
>>>
>>> ^
>>>
>>>
>>>
>>> However, this works fine in Eclipse, and so I tried
>>> plexus-compiler-eclipse.  With that, I get by the parsing issue above,
>>> but I get a build failure b/c it cannot seem to find any of my domain
>>> classes.
>>>
>>>
>>>
>>> I've yet to find any documentation on how to configure
>>> plexus-compiler-eclipse.  I tried giving it <source>1.5</source> and
>>> <target>1.5</source> but still no luck.
>>>
>>>
>>>
>>> Has anyone else run into this - and have they found a workaround???
>>>
>>>
>>>
>>> Thx in advance,
>>>
>>> Davis
>>>
>>>
>>>
>>> PS - can you please cc me on a reply
>>>
>>>
>>>
>>>
>> 
>> 
>> -- 
>> Eric Redmond
>> http://codehaus.org/~eredmond
>> 
>> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/plexus-compiler-issues-with-annotations-tf3197100s177.html#a8883375
Sent from the Maven - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to