GenerateAsyncMojo ( and possibly others ) must be 
'@requiresDependencyResolution compile' annotated
---------------------------------------------------------------------------------------------------

                 Key: MGWT-36
                 URL: http://jira.codehaus.org/browse/MGWT-36
             Project: Maven 2.x GWT Plugin
          Issue Type: Bug
            Reporter: Ivan Yosifov


The GenerateAsyncMojo ( and maybe other mojos, I'm not sure ) needs the 
'@requiresDependencyResolution compile' annotation like this:

Index: src/main/java/org/codehaus/mojo/gwt/GenerateAsyncMojo.java
===================================================================
--- src/main/java/org/codehaus/mojo/gwt/GenerateAsyncMojo.java  (revision 9477)
+++ src/main/java/org/codehaus/mojo/gwt/GenerateAsyncMojo.java  (working copy)
@@ -44,6 +44,7 @@
  *
  * @goal generateAsync
  * @phase generate-sources
+ * @requiresDependencyResolution compile
  * @author <a href="mailto:[email protected]";>Nicolas De Loof</a>
  * @version $Id$
  */

Without it the following problem results: If the gwt libs are provided-scope 
dependecies they do NOT get added to project.getCompileClasspathElements() and 
hence NOT to getProjectClassLoader(). As a result the 
if ( "com.google.gwt.user.client.rpc.RemoteService".equals( 
implement.getFullyQualifiedName() ) )
            {
                isRemoteService = true;
                break;
            }
check fails on legitimate remote services since 
implement.getFullyQualifiedName() returns just "RemoteService" and NOT 
"com.google.gwt.user.client.rpc.RemoteService" because the QDox framework 
doesn't have the gwt API on its classpath and can't resolve the interface 
properly.


-- 
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 from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to