Monday, May 8, 2017

Re: Multiple GWT modules in one Maven module



On Monday, May 8, 2017 at 6:18:06 PM UTC+2, Frederik Van Hoyweghen wrote:
Hey everyone,

We are currently migrating our project away from using Ant, to Maven.

Along with this migration, we also tried to follow some of the project structuring that is recommended for a maven project.

Our Maven GWT module contains multiple GWT modules, but I'm struggling with making this work using Thomas Broyer's GWT plugin: https://github.com/tbroyer/gwt-maven-plugin
I feel like this was designed specifically with the idea of having only 1 GWT module inside a Maven module (please correct me if I'm wrong).

That's right.
 
At first I tried this plugin configuration:
<configuration>
   
<skipModule>true</skipModule>
   
<modules>
       
<module>
           
<moduleName>A</moduleName>
            <moduleName>B</moduleName>
            <moduleName>C</moduleName>
            <moduleName>D</moduleName>
       
</module>
   
</modules>
</configuration>


This doesn't work because ModuleName has to be underneath the <configuration> tag.
Listing the modules underneath the <configuration> tag also doesn't work, running gwt:compile only compiles the last module in the list:

<configuration>
   
<moduleName>A</moduleName>
   
<moduleName>B</moduleName>
   
<moduleName>C</moduleName>
   
<moduleName>D</moduleName>
   
<skipModule>true</skipModule>
</configuration>



Does anyone have any experience with this?

See https://github.com/tbroyer/gwt-maven-plugin/issues/57 

--
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment