If you are using Vue GWT beta-6, please refer to the following guide to update to beta-7. You can also checkout the Vue GWT beta-7 Release note.
Annotation Processors are now used for template processing, this has several advantages:
- Errors in HTML templates are caught by your IDE at build time.
- Less boilerplate classes are generated.
- No more dependency on GWT 2.x generators. Should make Vue GWT compatible with GWT 3.x out of the box.
Here is how to upgrade from beta-6:
Add the following to your pom.xml
:
<build>
<resources>
<resource>
<directory>src/main/java</directory>
<includes>
<include>**/*.html</include>
</includes>
</resource>
</resources>
</build>
When using GWT 2.x generators GWT was responsible for watching your template file changes. With Annotation Processor you need a plugin to make your IDE process your templates when you change them.
Check here how to configure IntelliJ to enable auto build when changing your Components Templates.
Check here how to configure Eclipse to enable auto build when changing your Components Templates and Annotation Processing and make the Template Annotation processor work.
Run on your project:
mvn clean