Vaadin + Springboot = widgetset error

I create one Vaadin + Springboot with this video (https://www.youtube.com/watch?v=3ibM46HYB-k)

but now I need to add one add-ons, and when I try to run

mvn vaadin:update-widgetset I got this error:

ERROR] No plugin found for prefix ‘vaadin’ in the current project and in the plugin groups [org.apache.maven.plugins, org.codehaus.mojo]
available from the repositories [local (/Users/fabioebner/.m2/repository), central (https://repo.maven.apache.org/maven2)]
→ [Help 1]

I need to create one file or something else?

tks

Hi,

You need to add the Maven Vaadin plugin in your pom.xml:

<plugins>
    ...
    <plugin>
        <groupId>com.vaadin</groupId>
        <artifactId>vaadin-maven-plugin</artifactId>
        <version>7.6.7</version>
        <configuration>
            <extraJvmArgs>-Xmx512M -Xss1024k</extraJvmArgs>
            <webappDirectory>${basedir}/target/classes/VAADIN/widgetsets</webappDirectory>
            <draftCompile>false</draftCompile>
            <compileReport>false</compileReport>
            <style>OBF</style>
            <strict>true</strict>
        </configuration>
        <executions>
            <execution>
                <goals>
                    <goal>update-theme</goal>
                    <goal>update-widgetset</goal>
                    <goal>compile</goal>
                    <!-- Comment out compile-theme goal to use on-the-fly theme compilation -->
                    <goal>compile-theme</goal>
                </goals>
            </execution>
        </executions>
    </plugin>
</plugins>

And you most likely need to add the following dependencies as well:

<dependencies>
    ....
    <dependency>
        <groupId>com.vaadin</groupId>
        <artifactId>vaadin-client</artifactId>
        <scope>provided</scope>
    </dependency>
    <dependency>
        <groupId>com.vaadin</groupId>
        <artifactId>vaadin-client-compiler</artifactId>
        <scope>provided</scope>
    </dependency>
</dependencies>