Re: GWT client as Maven module in multi-module project

2010-09-08 Thread Ted Malaska
I have made a step by step walk through of how to make a multi maven module project using gwt and gxt. I use the event bus pattern to support two war modules. One for off line and one for on line. I implement my custom widget in sub maven modules so they can be re used through out my company.

Re: GWT client as Maven module in multi-module project

2010-07-16 Thread David Vree
Thanks Andreas -- it makes a lot of sense to me. A couple of thoughts: In the 1.3.3 version of GPE they fixed a few thing: 1) For what its worth, GPE now has the ability to point to any directory for the WAR...I have it pointing to /src/main/webapp. 2) You can disable GPE from complaining

Re: GWT client as Maven module in multi-module project

2010-07-16 Thread andreas
Hi David, I did not try using the latest GPE with the changes/fixes you mentioned. I remember that configuration of the war directory was introduced, however like you say it wasn't enough and I still was not able to get it run. I wouldn't want to use anything in src/ as an output directory as

Re: GWT client as Maven module in multi-module project

2010-07-16 Thread David Vree
Andreas -- thank you very much for the HUGE help...been struggling with all this for almost 4 days now! On Jul 16, 4:51 am, andreas horst.andrea...@googlemail.com wrote: Hi David, I did not try using the latest GPE with the changes/fixes you mentioned. I remember that configuration of the war

Re: GWT client as Maven module in multi-module project

2010-07-16 Thread andreas
Good to hear... I think the output .class files have nothing to do with what you see in the browser. What you see in action there is JavaScript. What Hosted Mode does (afaik) is take the Java code, not the .class files, and sort of just in time compiles them into JavaScript, but I'm not an expert

Re: GWT client as Maven module in multi-module project

2010-07-16 Thread David Vree
That makes sense that they would just-in-time compile it, but its pretty cool that hosted mode even detects the changed java source file! It would also explain why, when started with gwt:debug you can attach a remote debugger, but you can't modify the running debug code. On Jul 16, 2:56 pm,

Re: GWT client as Maven module in multi-module project

2010-07-15 Thread SalvadorDiaz
Hi, You might want to take a look at the GWT maven plugin documentation (there are lots of useful tips): http://mojo.codehaus.org/gwt-maven-plugin/ Hope that helps, Salvador On 15 juil, 03:35, David Vree david.h.v...@gmail.com wrote: Manually moving index.html to the WEB-INF directory solver

Re: GWT client as Maven module in multi-module project

2010-07-15 Thread David Vree
The documentation is very complex, but ultimately it provided the answer. I needed to configure the maven-war-plugin to filter (e.g. copy) the files from my webapp directory to the war directory. I accomplished this via the following snippet in my module level POM:

Re: GWT client as Maven module in multi-module project

2010-07-15 Thread Daniel
The GWT Maven plugin deviates from the standard Maven directory structure by default, to accommodate the Google Plugin for Eclipse's default directory structure. If you want to use the standard Maven directory layout (with the static resources for your War file in src/ main/webapp instead of the

Re: GWT client as Maven module in multi-module project

2010-07-15 Thread David Vree
Thanks -- makes sense, although I hate the idea of having to do a mvn package everytime before running in host mode. If I punt on the maven directory structure and go with the war directory can I shorten my edit-debug cycle? What do most maven users do? On Jul 15, 6:25 pm, Daniel

Re: GWT client as Maven module in multi-module project

2010-07-15 Thread andreas
Hey David, I was trying to get our newly introduced maven based build cycle to work with GPE a few months ago. At that time GPE had some issues regarding flexibility in configuration to work with maven-gwt project layout (in particular no war/ directory, which GPE was expecting). After all our

Re: GWT client as Maven module in multi-module project

2010-07-14 Thread Thomas Broyer
On 14 juil, 19:25, David Vree david.h.v...@gmail.com wrote: Total GWT newbie here trying to get the first app up and running.  I'm using Eclipse 3.5.2 and have created and run the sample app you get with New-Google-Web Application.  The app and the GWT plugin for Eclipse all work great. Now

Re: GWT client as Maven module in multi-module project

2010-07-14 Thread David Vree
Manually moving index.html to the WEB-INF directory solver the 404 problem. But there is still something wrong. The pop-up window I get with the regular GWT application doesn't pop- up in my application. And the debugging stop point I added for onModuleLoad doesn't catch. On Jul 14, 6:40 pm,