We’re trying to combine GWT and Polymer like in this project: https://github.com/7MinDev/polymergwt
(Work in progress)
New elements are installed using Bower, e.g. the core-toolbar element:
cd src/main/webapp/polymer
bower install --save Polymer/core-toolbar
Running it with --save will add the dependencies to the src/main/webapp/polymer/bower.json file.
The component has to be added to the src/main/webapp/GWTPolymer.html, here:
<link rel="import" href="/polymer/bower_components/core-toolbar/core-toolbar.html">
After that run the package Maven task to update the dependencies for the war directory:
mvn package
TODO: add manual for writing java polymer stub (like CoreIconButton)
Run initially and every time you change something in the war directory or add a new Polymer component:
mvn package # generate a .war package ready to deploy
mvn gwt:run # run development mode
A window will appear. Hit the "Launch Default Browser" button or "Copy to clipboard" and use another browser. If you changed something, you need to reload the page to recompile.
mvn test # run all the tests (gwt and junit)
mvn clean # delete temporary stuff
For more information about other available goals, read Maven and gwt-maven-plugin documentation.
mvn package