Does gwt 2.7 maven project must be multi moduled?

93 Views Asked by At

I don't remember where I've red that, for gwt 2.7.0 sdk maven module must consist of 3 submodules: server, shared and client.

But on github I've seen different projects for 2.7

Can any one can answer me this question?

1

There are 1 best solutions below

0
On BEST ANSWER
  1. Code in server - runs in servlet container (for example access to DB)
  2. Code in shared - can be used in client and in server codebase (for example DTOs - data transfer objects)
  3. Code in client - will be compiled to JavaScript and runs in browser

So you must decide yourself how much modules you need. If you code is a simple widget that does not communicate with server, you need only client module