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 <[email protected]> wrote:
> 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 well (nor will our SVN do) and I don't know how to
> make Eclipse/GPE properly create/fill WEB-INF/lib... for us it's
> simply maven who does it all.
>
> Launching the maven build configuration takes the same time as
> launching Hosted Mode via GPE from what I know. Anyway the launch time
> is not that important to me because the maven build mentioned above
> supports code change reflections upon refreshing the browser, so
> regarding client side code changes you can use one launch for several
> edit cycles. Even server side code changes can be reflected upon
> restarting the Hosted Mode server without relaunching the build. Only
> if you change/add static resources you have to terminate the build and
> launch it again so that the resource plugin does its job.
>
> Actually I did not make a lot of use of the Eclipse debugger. However
> your question made me curious and a quick search gave me this:
>
> http://claudiushauptmann.com/tutorial-gwt-maven-and-eclipse-with-m2ec...
>
> After 10 minutes of reading and applying I was able to use Debug
> perspective and halt our GWT application with breakpoints. It works
> just like debugging a normal Java application... pretty cool.
>
> Regards,
>
> Andreas
>
> On 16 Jul., 09:15, David Vree <[email protected]> wrote:
>
> > 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 when the SDK isn't in the
> > class path.  However, you still need to have the SDK lying around
> > somewhere.
>
> > These things help, but is not enough I think -- because it also
> > requires Eclipse to use "src/main/webapp/WEB-INF/classes" as the
> > output directory for all sources in the project.  This seems odd to
> > me.  Also I don't understand how GPE or Eclipse is to put stuff into /
> > WEB-INF/lib...do you?
>
> > On last question if you don't mind:  Can you comment on your edit/
> > build/debug cycle?  How long does it take for the "clean compile
> > war:exploded gwt:run" to execute so you can being another cycle and
> > how do you use the Eclipse debugger while running the web app?
>
> > On Jul 16, 1:57 am, andreas <[email protected]> wrote:
>
> > > 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 solution was to drop usage of GPE and use only maven
> > > together with maven gwt plugin and maven war plugin. We run our
> > > application in Hosted Mode using a maven build configuration. We
> > > configured our project to host static resources in src/main/webapp and
> > > src/main/resources and use the project build directory for the hosted
> > > web application. With this configuration which is basically default
> > > maven(-gwt) project layout we run Hosted Mode with these goals in
> > > maven build configuration: clean compile war:exploded gwt:run. That's
> > > all.
>
> > > There is no need to mix maven goals with launching of GPE or similar.
> > > As I said in the beginning I was trying to get GPE run with maven but
> > > that was actually because I did not know what maven and maven gwt
> > > plugin can allready do for you. You might want to give this a try...
>
> > > Andreas
>
> > > On 16 Jul., 06:29, David Vree <[email protected]> wrote:
>
> > > > 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 <[email protected]> wrote:
>
> > > > > 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 war directory) with the Google Plugin for
> > > > > Eclipse, there are some things you need to make sure of.
>
> > > > > 1. In the GWT Maven Plugin <configuration>, add <hostedWebapp>$
> > > > > {project.build.directory}/${project.build.finalName}</hostedWebapp>.
> > > > > That will cause the plugin to use target/my-example-project-1.0.0-
> > > > > SNAPSHOT (or whatever your project is called) instead of the war
> > > > > directory.
> > > > > 2. Configure the Google Plugin for Eclipse to use src/main/webapp
> > > > > instead of war
> > > > > 3. Before you can run the project in hosted mode, you'll need to run
> > > > > mvn package, to copy your static resources from your GWT public
> > > > > package and src/main/webapp to your hosted mode directory. You'll only
> > > > > need to do this the first time.
>
> > > > > On Jul 16, 5:17 am, David Vree <[email protected]> wrote:
>
> > > > > > 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:
>
> > > > > >                         <plugin>
> > > > > >                                 
> > > > > > <groupId>org.apache.maven.plugins</groupId>
> > > > > >                                 
> > > > > > <artifactId>maven-war-plugin</artifactId>
> > > > > >                                 <configuration>
> > > > > >                                         
> > > > > > <webappDirectory>war</webappDirectory>
> > > > > >                                 </configuration>
> > > > > >                         </plugin>
>
> > > > > > Thanks for the help.  The debugging stop points don't work, but I'll
> > > > > > start a new thread on that....
>
> > > > > > On Jul 15, 11:19 am, SalvadorDiaz <[email protected]> wrote:
>
> > > > > > > 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 <[email protected]> wrote:
>
> > > > > > > > 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, Thomas Broyer <[email protected]> wrote:
>
> > > > > > > > > On 14 juil, 19:25, David Vree <[email protected]> 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 I am trying to add a GWT client module to my 
> > > > > > > > > > multi-module maven
> > > > > > > > > > project that already contains various server maven-modules. 
> > > > > > > > > >  I used
> > > > > > > > > > the the "gwt-maven-plugin" archetype to create the module 
> > > > > > > > > > and the
> > > > > > > > > > directory structure seems fine, however, I cannot run in 
> > > > > > > > > > hosted mode.
>
> > > > > > > > > > When launching the debug web application I get an error in 
> > > > > > > > > > the
> > > > > > > > > > console:
>
> > > > > > > > > >      [WARN] No startup URLs supplied and no plausible ones 
> > > > > > > > > > found --
> > > > > > > > > > use -startupUrl
>
> > > > > > > > > > I noticed that the working application used the -startupUrl 
> > > > > > > > > > argument
> > > > > > > > > > to the launch and so I added "-startupUrl index.html" to 
> > > > > > > > > > mine but when
> > > > > > > > > > browsing to that location with firefox I get a 404.
>
> > > > > > > > > >      
> > > > > > > > > > http://127.0.0.1:8888/index.html?gwt.codesvr=127.0.0.1:9997
>
> > > > > > > > > > I picked index.html as the URL because the archetype 
> > > > > > > > > > created that file
> > > > > > > > > > in the "src/main/mywebapp/" directory -- which also 
> > > > > > > > > > contains my WEB-
> > > > > > > > > > INF directory.   I'm not sure this part of the directory 
> > > > > > > > > > structure is
> > > > > > > > > > correct.  Another potential problem is that the "war" 
> > > > > > > > > > directory in
> > > > > > > > > > this module does not contain the index.html.  So perhaps 
> > > > > > > > > > the resources
> > > > > > > > > > are not getting copied correctly.   Any guidance here is 
> > > > > > > > > > appreciated!
>
> > > > > > > > > I'm primarily a GWT user, and only started using Maven very 
> > > > > > > > > recently.
> > > > > > > > > My project uses a "standard GWT project" layout where there's 
> > > > > > > > > a war/
> > > > > > > > > folder at the "top level", and "standard Maven project" 
> > > > > > > > > otherwise (src/
> > > > > > > > > main/java, src/test/java, etc.)
> > > > > > > > > It works with the Eclipse plugin because this one expects (by
> > > > > > > > > default!) a war/ folder with some HTML (or JSP) page in it.
> > > > > > > > > Unfortunately, I can't really tell if it works "in Maven", as 
> > > > > > > > > I
> > > > > > > > > haven't really tried a "mvn gwt:compile" (I'm prototyping and 
> > > > > > > > > haven't
> > > > > > > > > yet committed enough things to our
>
> ...
>
> read more »

-- 
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