Saturday, December 21, 2013

Re: GWT project structure to reduce compile time

If you GWT-compiler a module, it (generally) means it's standalone. It might be "inherited" by other modules, but you'd generally extract an intermediate module to work as a "library" (vs. "application").

But that shouldn't really affect what you're seeing. If your problem is that module_1 is recompiled when compiling a module that inherits it, then it probably means you have a configuration issue in your POM. Are you using module auto-discovery with the gwt-maven-plugin? (from what I can see from the code, it shouldn't see module_1, but maybe I missed something).

But are you really sure the modules are recompiled? Keep in mind that GWT compilation is monolithic (for the time being, this will change).

On Wednesday, December 11, 2013 5:00:36 PM UTC+1, Beatriz Nombela wrote:

I'm trying to reduce the compile time of a GWT project on jenkins. My project structure can be summarized to the following one:

- module_1: jar and GWT module
- module_2: multimodule maven project, each submodule is a jar, and each one contains a GWT module. Each GWT module inherits from module_1
- module_3: war, contains a GWT module that inherits from module_2

The problem with this structure is the moment when everything is compiled on jenkins:
- module_1 compiles
- module_2 compiles, and accordingly module_1 is compiled again
- module_3 compiles, and accordingly each submodule in module_2 is compiled, and at the same time module_1 is compiled again some more times

My goal is to avoid recompiling some of the modules so many times. I'd like to know whether the GWT modules are well structured or not, so I could focus on restructuring GWT modules or in Jenkins side.

Thanks in advance!

You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
To post to this group, send email to
Visit this group at
For more options, visit

No comments:

Post a Comment