archetype-resources.README.txt Maven / Gradle / Ivy
Running:
$ mvn install
$ cd gwt-client
$ mvn -Dgwt.compiler.skip=true -Dprotostuff.compiler.skip=true jetty:run
Eclipse setup:
$ mvn eclipse:eclipse
Rapid development setup:
1. Using maven-jetty-plugin:
$ mvn jetty:run
This will do a "gwt-compile -> run-webapp" step with "overlays" from
the ${rootArtifactId}-server webapp
2. Using google-eclipse-plugin:
Edit the .project file:
1. Append the ff on the element:
com.google.gdt.eclipse.core.webAppProjectValidator
com.google.gwt.eclipse.core.gwtProjectValidator
2. Append the ff on the element:
com.google.gdt.eclipse.core.webAppNature
com.google.gwt.eclipse.core.gwtNature
Edit the .classpath file:
1. Append the ff on the element:
2. Change " " to:
3. Copy server/src/main/webapp/WEB-INF/web.xml to gwt-client/war/WEB-INF/
To explicitly compile only the gwt overlays:
$ mvn protostuff:compile
When developing on hosted mode, enable the protostuff compiler option "dev_mode".
If not, the GWT compiler will throw ClassCastException on an enum emulated by an integer (casting).
This affects only gwt overlays that have enums as declared in the .proto file.
If you want to test the compiled UI, execute:
$ mvn -Dgwt.compiler.skip=true -Dprotostuff.compiler.skip=true jetty:run