[ 
http://jira.codehaus.org/browse/MGWT-31?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=174237#action_174237
 ] 

Cheng Lee commented on MGWT-31:
-------------------------------

Verified and GWT version is retrieved correctly. Thanks for the fix!

> can't execute gwt:i18n in parent directory of a multi-module project
> --------------------------------------------------------------------
>
>                 Key: MGWT-31
>                 URL: http://jira.codehaus.org/browse/MGWT-31
>             Project: Maven 2.x GWT Plugin
>          Issue Type: Bug
>    Affects Versions: 1.1
>         Environment: Windows
>            Reporter: Cheng Lee
>            Assignee: nicolas de loof
>             Fix For: 1.1
>
>
> When running gwt:18n goal in the directory where the parent pom.xml resides, 
> I get:
> [INFO] [gwt:i18n]
> [ERROR] no gwtHome, gwtVersion or com.google.gwt:gwt-user dependency set
> [INFO] 
> ------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] Cannot resolve GWT version
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] For more information, run Maven with the -e switch
> [INFO] 
> ------------------------------------------------------------------------
> Checking on the source code I found that GWT plugin requires GWT dependencies 
> to be declared in <dependencies> tag which will not work for the parent of a 
> multi-module project. That is because I declared GWT dependencies in the 
> parent <dependencyManagement> section, and then in <dependencies> section of 
> the child.
> I verified this by running gwt:18n in a child project where I did declared 
> GWT dependency in <dependencies> section.
> I'm providing a patch to be applied to 
> org/codehaus/mojo/gwt/AbstractGwtMojo.java, method "public GwtRuntime 
> getGwtRuntime()":
>         // Autodetect
>         for ( Iterator iterator = 
> project.getDependencyManagement().getDependencies().iterator(); 
> iterator.hasNext(); )
>         {
>             Dependency dependency = (Dependency) iterator.next();
>             if ( AbstractGwtMojo.GWT_GROUP_ID.equals( dependency.getGroupId() 
> )
>                 && "gwt-user".equals( dependency.getArtifactId() ) )
>             {
>                 gwtVersion = dependency.getVersion();
>                 getLog().info( "using GWT jars from project 
> dependencyManagement section : " + gwtVersion );
>                 break;
>             }
>         }

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