从Vaadin 7 8升级后构建失败

时间:2017-03-23 00:23:14

标签: maven vaadin maven-plugin

我刚从Vaadin 7升级到8.我们在7.7.7,现在我们在8.0.3。我的IDE显示没有编译时错误,但是当我运行mvn包时,我看到以下错误..

[INFO] --- vaadin-maven-plugin:8.0.3:compile (default) @ eagleportal ---
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 25.728 s
[INFO] Finished at: 2017-03-22T18:19:55-06:00
[INFO] Final Memory: 22M/142M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.vaadin:vaadin-maven-plugin:8.0.3:compile (default) on project eagleportal: GWT Module com.vaadin.terminal.gwt.DefaultWidgetSet not found in project sources or resources. -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException

我对Vaadin编译器的maven配置看起来像这样

    <plugin>
        <groupId>com.vaadin</groupId>
        <artifactId>vaadin-maven-plugin</artifactId>
        <version>${vaadin.plugin.version}</version>
        <configuration>
            <extraJvmArgs>-Xmx512M -Xss1024k</extraJvmArgs>
            <!-- <runTarget>mobilemail</runTarget> -->
            <!-- We are doing "inplace" but into subdir VAADIN/widgetsets. This
                way compatible with Vaadin eclipse plugin. -->
            <webappDirectory>${basedir}/src/main/webapp/VAADIN/widgetsets</webappDirectory>
            <hostedWebapp>${basedir}/src/main/webapp/VAADIN/widgetsets</hostedWebapp>
            <noServer>true</noServer>
            <!-- Remove draftCompile when project is ready -->
            <draftCompile>false</draftCompile>
            <compileReport>true</compileReport>
            <style>OBF</style>
            <runTarget>http://localhost:8080/</runTarget>
            <warSourceDirectory>${basedir}/src/main/webapp</warSourceDirectory>
        </configuration>
        <executions>
            <execution>
                <configuration>
                    <modules>
                        <module>com.eaglecopter.portal.EaglePortal</module>
                        <module>com.eaglecopter.portal.EaglePortalMobile</module>
                    </modules>
                </configuration>
                <phase>generate-resources</phase>
                <goals>
                    <goal>clean</goal>
                    <goal>resources</goal>
                    <goal>update-theme</goal>
                    <goal>update-widgetset</goal>
                    <goal>compile-theme</goal>
                    <goal>compile</goal>
                </goals>
            </execution>
        </executions>
    </plugin>

1 个答案:

答案 0 :(得分:2)

您正在使用的应用程序widgetset或某些加载项仍指向V6时代 com.vaadin.terminal.gwt.DefaultWidgetSet 。如果re是对应用程序.gwt.xml文件的直接引用,请将其切换为 com.vaadin.DefaultWidgetSet

如果有一些附加组件试图将其引入,请将它们升级到Vaadin 8兼容版本。如果还没有V8兼容版本,我需要帮助维护者升级或尝试在没有附件的情况下进行管理。

相关问题