Latest version of Atmosphere is 0.8. Project is growing fast and development is intensive.
In this post, I want to summarize steps I followed to get atmosphere-gwt-demo working.
I use Eclipse Helios (3.6 SR2), I've already Maven plugin installed (m2eclipse), and google-eclipse-plugin (even if this one will not be used for the purpose of this article)
Download atmosphere project:
git clone https://github.com/jfarcand/atmosphere.git
Wait few minutes for download to complete then go to eclipse and import the entire project as a maven project.
Fix some maven properties:
Go to atmosphere-gwt-demo, we'll be editing the pom.xml. Locate the declaration of gwt-maven-plugin (see the complete configuration) and add
Without this line, maven will not copy files located under src/main/META-INF/ (Most important atmosphere.xml) and the application will not work.
For more information see: http://mojo.codehaus.org/gwt-maven-plugin/debug-mojo.html
Now, if you try to run the demo, you will get errors. This happens because you didn't install atmosphere runtime dependencies.
For each error (missing class), find its containing sub-project, right click on it -> run as ... -> maven install
Run the demo:
Right click on atmosphere-gwt-demo -> Run as -> Maven build ... and enter in the goal field: gwt:run
Wait few seconds for the embedded jetty server to start and load your application, then open the hosted mode url into your favorite browser (I use Google Chrome with the GWT plugin installed).
This post shows how to debug a GWT application with the gwt-maven-plugin.
I just changed the port from 8000 to 8001 because for some reason this port was already in use (I think eclipse uses it)
Add the following line to the gwt-maven-plugin configuration in pom.xml of atmosphere-gwt-demo
Right click on atmosphere-gwt-demo->Run As->Maven build ...
In the following dialog, enter "gwt:debug" as goals, save it.
Click on the dropdown of the debug button on the toolbar, select "Debug Configurations".
In the left panel, find “Remote Java Application”, select it and click the icon for "New launch configuration" (top left corner). Accept defaults, save, and close.
Now, you are ready, start the debug server by running the debug launcher we just created. (the one with goal gwt:debug). When you see "Listening for transport dt_socket at address: 8001" in the console output, run the attach launcher we just created (the remote debugger).
Finally, here is the complete gwt-maven-plugin