Monday, March 19, 2018

Re: GWT with App Engine (standard) and maven?

Thanks, that was the missing info I was looking for (just checked the maven-plugin help etc.)!!
What is the recommended setup nowadays when using Eclipse?
Is it recommended to use the Eclipse plugin(s) for GWT/GAE or is it better to run everything from the command line?

Thanks again, you are the man!

On Mon, Mar 19, 2018 at 3:41 PM, Thomas Broyer <t.broyer@gmail.com> wrote:


On Monday, March 19, 2018 at 2:31:34 PM UTC+1, dflorey wrote:
As I test I just created a blank test project from the archetype.
I did not manage to run it either using "maven gwt:devmode".
Is there some additional configuration required to tell the plugin where to find the webapp?
The server launches just fine, an ancient swing window pops up, but the index.html is not there when going to 127.0.0.1:8888

Any ideas?

gwt:devmode will not package the app, you need to first do a "mvn package" to prepare the webapp; and do a "mvn package" again anytime you change any source file and/or dependency (you can configure Maven and/or your IDE to directly place classes from the module into the webapp's WEB-INF/classes; this saves you a few "mvn package").

When using external servers (recommended), you can configure them to automatically reload the webapp when a class is changed, and to pick web resources right from src/main/webapp.
Webapp will be on http://localhost:8080 (by default), served by the jetty-maven-plugin (or tomcat7-maven-plugin), configured to pick up the shared classes right from *-shared/target/classes (where your IDE will put them).

--
You received this message because you are subscribed to a topic in the Google Groups "GWT Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-web-toolkit/-7o22adLgls/unsubscribe.
To unsubscribe from this group and all its topics, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
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 google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment