After adding an Add-On such as
Vaadin Charts 2
, we must rebuild the WidgetSet.
How to rebuild the WidgetSet in the new multi-module Maven archetype such as is created by the
Vaadin Plugin For NetBeans
(plugin version 1.1.3) for new Vaadin 7.3.10 project?
I have spent hours today reading all kinds of such documentation – but all of it is out-dated or fails. I’ve tried doing clean-and-build within NetBeans. I’ve tried using mvn
command-line. But when I run my app, I get a message about “Widgetset … does not contain implementation…”.
One clue: Apparently using the context menu for Vaadin
> Open Add-ons Browser
to add an add-on is now broken under this new multi-module archetype. The Browser creates a “AppWidgetset.gwt.xml” file next to my “MyUI.java” file. This may be bad, as there is a “MyAppWidgetset.gwt.xml” (notice the difference, “My” prepended) already existing under the -widgetset
sub-module folder. My wild guess is that having two such gwt.xml
files is a problem.
See
this StackOverflow page
for details.