You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Brett Porter (JIRA)" <ji...@codehaus.org> on 2006/12/23 02:49:42 UTC

[jira] Closed: (MPLUGIN-21) Use of Java 5 annotations in Mojos produce error in QDox Parser

     [ http://jira.codehaus.org/browse/MPLUGIN-21?page=all ]

Brett Porter closed MPLUGIN-21.
-------------------------------

      Assignee: Brett Porter
    Resolution: Duplicate

> Use of Java 5 annotations in Mojos produce error in QDox Parser
> ---------------------------------------------------------------
>
>                 Key: MPLUGIN-21
>                 URL: http://jira.codehaus.org/browse/MPLUGIN-21
>             Project: Maven 2.x Plugin Plugin
>          Issue Type: Bug
>    Affects Versions: 2.1
>         Environment: Windows 2000
> JAVA5 1.5.0_06
>            Reporter: Chris Wewerka
>         Assigned To: Brett Porter
>
> If you use Java5 annotations in Mojos, the java extractor throws the following exception:
> com.thoughtworks.qdox.parser.ParseException: syntax error @[16,5] in file:/E:/prj/o2/o2-sg/sd_area51_3/OcToPuS/tools/maven/plugins/maven-jax
> wstools-plugin/src/main/java/com/o2/m2/plugins/jaxwstools/TestMojo.java
>         at com.thoughtworks.qdox.parser.impl.Parser.yyerror(Parser.java:504)
> [...]
> The mojo I've used:
> package com.o2.m2.plugins.jaxwstools;
> import org.apache.maven.plugin.AbstractMojo;
> import org.apache.maven.plugin.MojoExecutionException;
> import org.apache.maven.plugin.MojoFailureException;
> /**
>  * @goal testgoal
>  * @phase process-classes
>  *
>  */
> public class TestMojo extends AbstractMojo
> {
>     @Override
>     public boolean equals(Object obj)
>     { return super.equals(obj); }
>     
>     public void execute() throws MojoExecutionException, MojoFailureException
>     {}
> }

-- 
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