For client side only and lib only project (so only one module) you can see an example here: https://github.com/tbroyer/gwt-maven-plugin/tree/master/src/it Quite simple, maybe adding this use cases as archetype is a good idea, but IMO it's so simple that using the simple maven archetype and adding those changes is not a problem either.
On Mon, Feb 13, 2017 at 10:26 AM David <[email protected]> wrote: > There is an alternative, like they do in guava for example. They have a > pure java guava.jar and then create a guava-gwt.jar that includes the > sources, supersources and fieldserializers for gwt projects. This requires > that you use annotations like GwtCompatible or GwtIncompatible and filter > the sources to be included in the gwt jar. > > I tend to use this approach for reusable components since it makes it > easier to avoid transitive dependencies that you don't need on the server. > > For the main application I use the tbroyer multimodule archetype. Although > often the shared module is no longer needed since most of the shared code > is already in the gwt-lib modules. > > Yes that is a lot of modules but I'm not talking about a small project. > Lots of these modules are reused in other projects, so its best to have > them clearly isolated. > > > On Mon, 13 Feb 2017 at 09:55, Freddy Boucher <[email protected]> > wrote: > > The recommended GWT Archetypes nowadays is one of > https://github.com/tbroyer/gwt-maven-archetypes > > It uses https://github.com/tbroyer/gwt-maven-plugin > > And why you should use one of them: > > Splitting your server / shared / client code in different module will make > your life easier if you do it at the beginning of your project. > > > > On Monday, February 13, 2017 at 1:56:25 AM UTC+11, Magnus wrote: > > Hello, > > I am looking for a suitable archetype for building GWT applications with > maven. > > I have tried "Codehaus" and "modular-webapp": > > - Codehaus > With the codehaus archetype, I get a lot of errors when importing the > generated project in eclipse. > It seems that there are plugins missing > > - modular-web-app > This would be my favorite one, but after importing it into eclipse, it > leaves me with 4 (!) top-level projects (1 main and 3 sub-projects). > Maybe the archetype is good, but this is a behavior that I cannot > accept when dealing with many projects. (Can you avoid this?) > > I know that there are several methods of using maven with eclipse and that > there are different plugins. > Maybe the errors I saw with Codehaus result from this. > > However, what can you recommend? > > Thanks > Magnus > > -- > 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 [email protected]. > To post to this group, send email to [email protected]. > Visit this group at https://groups.google.com/group/google-web-toolkit. > For more options, visit https://groups.google.com/d/optout. > > -- > 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 [email protected]. > To post to this group, send email to [email protected]. > Visit this group at https://groups.google.com/group/google-web-toolkit. > For more options, visit https://groups.google.com/d/optout. > -- 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 [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/d/optout.
