We use Maven with GWT in a big project with multiple modules. It work's
pretty nice. We split our code in different Maven modules, which are build
as separate JARs (incl. source code). Our web application (build as a WAR)
has a dependency on the module containing the 'main' GWT module. This
dependency is configured as provided, so the JAR won't be included in the
WAR. The GWT compiler is configured in the web app's POM and compiles all
the GWT code to a directory in 'main/web-app/', so it's included in the WAR.
This allows us to keep the WAR clean from GWT related code at runtime
(except the RPC related stuff).
We're using Eclipse with m2eclipse plugin for development and the GWT plugin
for hosted mode (Maven GWT integration is only used for final compiling).
This works great, since we can run our web app like any other on a Tomcat
and point the hosted browser to this web-app.
The GWT plugin isn't configured by Maven, instead we've to enable it
manually, but it is only required on one project (containing the 'main' GWT
module).

On Fri, Nov 27, 2009 at 9:55 AM, philippe <[email protected]> wrote:

> YES, Maven will do you save time, but you have to integrate properly
> into Eclipse.
>
> I advise you:
> - http://m2eclipse.sonatype.org/
> - define the maven commands in "Eclipse Run"
>
> After, you can build and integrate easily into your application
> systems integration continued.
>
> regards,
> Philippe
>
>
> On 26 nov, 23:19, CI-CUBE <[email protected]> wrote:
> > I found maven pretty heavy and can live w/o it. If some day I feel the
> > need to have something like that I can use it anyway, no problem. Just
> > my personal opinion.
> >
> >    Ekki
> >
> > * GWT Rocks! * SmartGWT Rocks Even Harder! * SmartGWT EE 1.2.1/LGPL
> > 1.3,
> > GWT 1.7.1, GAE 1.2.6, Jetty 7.0.0, Eclipse 3.5.1, JRE 1.6.0_16
> >
> > CI-CUBE.BIZ feat. CubeBrowser.AppSpot.comwww.EasternGraphics.com/X-4GPL
> >
> > On Nov 26, 10:46 pm, jbdhl <[email protected]> wrote:
> >
> > > I'm about to start a new GWT project but can't decide weather to use
> > > maven or not - partly because I'm completely new to maven. Are there
> > > really large benefits from using maven? I've heard, that not even
> > > google is using it, and this worries me a little.
> >
> > > Our project will be a bit of a mix of various stuff and I don't know
> > > how well this fits into the maven structure:
> >
> > >   * besides the usual client/servlet code, we will build a few smaller
> > > java tools to be run periodically by cron.
> >
> > >   * we will use a bunch of scripts written in various languages to
> > > solve different tasks
> >
> > >   * the project will include a bunch of documentation and text
> > > documents
> >
> > > All in all: what is your recomendation? Maven or not?
> >
> >
>
> --
>
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<google-web-toolkit%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>
>

--

You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.


Reply via email to